I saw a sample app at the VS live conference in San Francisco this year, the
y
had a gridview control on a web form, but when .net 2.0 was detected on the
PC it actually rendered a .net form control in place of the web control.
I am playing around with beta 2 and trying to replicate that behavior. Does
anyone know how to do this'
Any help would be appreciated!!!
Thanks!I haven't seen the presentation you saw, but...
You can check the CLR version with this property:
Request.Browser.ClrVersion.Major
You can embed a windows forms control in an ASP.NET form with HTML like
this:
<OBJECT id="MyControl1" height="20" width="192"
classid="http:MyCustom.dll#MyNamespace.MyClassName">
<PARAM NAME="Backcolor" VALUE="blue">
You have an unsupported browser.
</OBJECT>
Here's more info:
http://samples.gotdotnet.com/quicks...IeSourcing.aspx
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Bryan ZM" <BryanZM@.discussions.microsoft.com> wrote in message
news:C7513471-EDA5-4B2C-BD8C-7A7B292ADC1A@.microsoft.com...
>I saw a sample app at the VS live conference in San Francisco this year,
>they
> had a gridview control on a web form, but when .net 2.0 was detected on
> the
> PC it actually rendered a .net form control in place of the web control.
> I am playing around with beta 2 and trying to replicate that behavior.
> Does
> anyone know how to do this'
> Any help would be appreciated!!!
> Thanks!
>
the simple method is to test the agent string (or browsercaps) for .net
support. then render the page different. i belive this will fail if the user
turns active/x support off on the browser. the safe method, is to write a
sniffer page that detects .net supported by creating a small control, and
returning the success to the server.
-- bruce (sqlwork.com)
"Bryan ZM" <BryanZM@.discussions.microsoft.com> wrote in message
news:C7513471-EDA5-4B2C-BD8C-7A7B292ADC1A@.microsoft.com...
>I saw a sample app at the VS live conference in San Francisco this year,
>they
> had a gridview control on a web form, but when .net 2.0 was detected on
> the
> PC it actually rendered a .net form control in place of the web control.
> I am playing around with beta 2 and trying to replicate that behavior.
> Does
> anyone know how to do this'
> Any help would be appreciated!!!
> Thanks!
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment