Applet with ASP .Net v2.0.

P

Peregrin

Hello World,
I want to use a web control like an applet. On my Html page, we can see
the lines
<object id="myID" height="150" width="300"
classid="http:bin/release/MyApplet.dll#MyApplet.MyApplet" VIEWASTEXT>

In Visual Studio 2005, the token VIEWSTATE is not a good choice in a XHTML
page. How can we change it to build ok ?

And if someone, a good mind, can give me some exemple to use user control
like applet but in dotnet version 2.0, i can found solution in the web (only
version 1.0)?

Thanks,
 
G

Guest

Peregrin,
It is done exactly the same way in .NET 2.0. If you put your assembly (we'll
say it's "ctrl.dll" in your wwwroot folder, and the namespace is
ctrl.UserControl1,
then a web page in wwwroot with the following object tag will display it:

<object id="myID" height="150" width="300"
classid="ctrl.dll#ctrl.UserControl1" VIEWASTEXT>

If your "VIEWSTATE" is referring to the "VIEWASTEXT" attribute, that has
nothing to do with VIEWSTATE.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top