Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How do I get the input from a user web cotnrol and build the control based on that?

Reply
Thread Tools

How do I get the input from a user web cotnrol and build the control based on that?

 
 
Alex Stevens
Guest
Posts: n/a
 
      10-20-2004
Hi,

I'm building a user login control, which will accept a username and password
in textboxes and a checkbox to keep logged in - pretty much your
conventional login control.
When the user logs in, it writes a cookie to remember them, and if this
cookie exists when the control is run it just says, "Welcome back. - Click
here to logout"
It also has a hidden field, which indicates on postback the action the user
has selected, login / logout using an enum.

I've implemented INamingContainer, and IPostBackDataHandler to get the
information on postback.

The problem I have is that the control calls the CreateChildControls event
(in which I build the control in which ever form it should be) before it
calls the LoadPostData event.
This poses the problem that I can't build the control to look how it should
because I don't know what the action is until the LoadPostData event is run.

Interestingly, the order of the events changed once I implemented
INamingConatiner. Before I did that the LoadPostData event ran before the
CreateChildControls event???

So the question is, how do I dynamically build a control based on the
information retrieved in the LoadPostData event??

Thanks

Alex





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 1 10-04-2005 12:29 PM
Hi I have one web application and i want to get the number of users who are currently accessing the application. Also I want to get the user details of each user, which is stored in a database. How can I do this? Pls help. Getting No: and anu Java 11 05-12-2005 03:25 PM
How do I get the input from a user web cotnrol and build the control based on that? Alex Stevens ASP .Net Building Controls 1 10-23-2004 01:55 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM



Advertisments