Monday, March 12, 2012

WebClass

I created a Webclass using VS.Net and dropped it on my .aspx page. How do you reference the control from the code behind in VB? Whenever I try to reference it by the ID it shows as undefined.not sure what you meant but i think you would do something like:

VB
Imports YourWebClass

or

C#
using YourWebClass;

Is that what you meant? HTH
Excuse my ignorane but isn't webclass more of a vb6 component concept[1]? Can you please elaborate on creating one in VS.NET?

You can upgrade a web class project to VS.NET [2] or if your question is regarding adding references, information can be found here [3]

[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconwebclasses.asp

[2] http://support.microsoft.com/default.aspx?scid=kb;EN-US;835389

[3] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskaddingremovingreferences.asp

0 comments:

Post a Comment