CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Location
    India
    Posts
    6

    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?

  2. #2
    Join Date
    May 2002
    Location
    India
    Posts
    6

    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

  3. #3
    Join Date
    May 2002
    Location
    India
    Posts
    6
    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
  •  





Click Here to Expand Forum to Full Width

Featured