|
-
May 21st, 2002, 02:44 AM
#1
Custom ASP.NET server controls
Hi,
How do you set the values of attributes of a custom server control?
The following code doesn't compile
<CustomControl:LoginControl LoginID="<%= Session["empid"] %>" Password="<%= Session["password"] %>" runat="server"/>
why?
How can I set the attributes then?
-
May 21st, 2002, 02:48 AM
#2
Here's the code that is not working
<CustomControl:LoginControl LoginID=<%= Session["empid"] %> Password=<%= Session["password"] %> runat="server"/>
basically assigning a c# variable to a parameter
-
May 21st, 2002, 09:16 AM
#3
Hello,
this site is having problem with asp code being copy pasted here. Neways, I will post my query without the code. How do u assign C# variable's value to a custom server control? We can do it very easily in jsp tags, using scriptlets.
Thanks,
Nikhil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|