Using user-control and web.

M

Mr. X.

Isn't any quick way to auto-create a web-page code, that reference my
user-control, by the IDE of VS 2008 (C#) ?

Thanks :)
 
M

Mr. X.

Mr. X. said:
Look at this : http://www.codeproject.com/KB/dotnet/CSharpApplet.aspx
I don't know if this is 100% correct for doing applications, that are like
the java-applets,
but still it is something.
It seems simple : just making a user control, and link it to web site.

Thanks :)

For that sample I put on my web-site folder, and open in browser :
http://localhost/MyApplet.htm

For following (for the sample, I gave)
==========================
<OBJECT id="myID" height="150" width="300"
classid="http://localhost/CSharpApplet.dll#CSharpApplet.MyApplet"
VIEWASTEXT>
</OBJECT>

Things work fine.

When I need my own user control, which use some dll of mine, there is a
problem, since I got the message when running in the browser :
Could not load file or assembly 'CashRegCntrls, Version = 1.0.0.0, Culture =
neutral,
PublicKeyToken = null' or one of its dependencies. Failed to grant minimum
permission request. (Exception from HResult : 0x80131417)

What to do in order to use my own dlls, from my user-control?
(I put the dlls on my web_site directory (my own computer - Windows 7.
Framework 3.5).

Thanks :)
 
A

andy

Isn't any quick way to auto-create a web-page code, that reference my
user-control, by the IDE of VS 2008 (C#) ?

Thanks :)

I'm not sure what you mean.
With silverlight then when you create a new silverlight solution the
ide creates a test form for you.
 

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