Click here to Skip to main content
16,011,578 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Bind User Control Pin
leppie22-Oct-02 13:48
leppie22-Oct-02 13:48 
GeneralRe: Bind User Control Pin
Mazdak22-Oct-02 20:21
Mazdak22-Oct-02 20:21 
GeneralRe: Bind User Control Pin
leppie22-Oct-02 22:03
leppie22-Oct-02 22:03 
GeneralRe: Bind User Control Pin
Mazdak23-Oct-02 9:07
Mazdak23-Oct-02 9:07 
GeneralRe: Bind User Control Pin
leppie23-Oct-02 12:19
leppie23-Oct-02 12:19 
GeneralRe: Bind User Control Pin
leppie23-Oct-02 13:06
leppie23-Oct-02 13:06 
GeneralRe: Bind User Control Pin
Mazdak24-Oct-02 9:13
Mazdak24-Oct-02 9:13 
GeneralRe: Bind User Control Pin
leppie25-Oct-02 7:58
leppie25-Oct-02 7:58 
Mazdak wrote:
Could you please send me all your code?User Control and your aspx with its code-behind.

Erm no, sorry Hmmm | :|

But like I said it quite easy. Just do what I said.

- Define a property (Username) in the code-behind class (LoginControl) like this:
public string Username { get { return userTextBox.Text;} {set {userTextBox.Text = value;}}

- In the ascx file, "bind" it like this:

<uc1:LoginControl id="LoginControl1" Username='databind expression' runat=server></uc1:LoginControl>


Have a look on MSDN at databinding on web forms aka late-binding.

I find it easier to just map the data from the dataset to the control at a page event.

Hope this helps Smile | :)

"There are no stupid question's, just stupid people."
GeneralFeedback form Pin
Sarvesvara (BVKS) Dasa21-Oct-02 19:57
Sarvesvara (BVKS) Dasa21-Oct-02 19:57 
GeneralRe: Feedback form Pin
Paul Watson21-Oct-02 21:23
sitebuilderPaul Watson21-Oct-02 21:23 
GeneralRe: Feedback form Pin
Sarvesvara (BVKS) Dasa30-Oct-02 0:09
Sarvesvara (BVKS) Dasa30-Oct-02 0:09 
GeneralRe: Feedback form Pin
Vasudevan Deepak Kumar29-Oct-02 0:52
Vasudevan Deepak Kumar29-Oct-02 0:52 
GeneralRe: Feedback form Pin
Sarvesvara (BVKS) Dasa30-Oct-02 0:06
Sarvesvara (BVKS) Dasa30-Oct-02 0:06 
GeneralScaling graphics - Solved nevermind Pin
leppie20-Oct-02 12:00
leppie20-Oct-02 12:00 
GeneralRe: Scaling graphics - Solved nevermind Pin
Paul Watson20-Oct-02 21:56
sitebuilderPaul Watson20-Oct-02 21:56 
GeneralRe: Scaling graphics - Solved nevermind Pin
leppie21-Oct-02 7:10
leppie21-Oct-02 7:10 
GeneralRe: Scaling graphics - Solved nevermind Pin
Paul Riley21-Oct-02 7:19
Paul Riley21-Oct-02 7:19 
GeneralRe: Scaling graphics - Solved nevermind Pin
leppie21-Oct-02 7:50
leppie21-Oct-02 7:50 
GeneralRe: Scaling graphics - Solved nevermind Pin
Paul Riley21-Oct-02 8:16
Paul Riley21-Oct-02 8:16 
GeneralRe: Scaling graphics - Solved nevermind Pin
leppie21-Oct-02 8:54
leppie21-Oct-02 8:54 
GeneralRe: Scaling graphics - Solved nevermind Pin
David Stone21-Oct-02 20:13
sitebuilderDavid Stone21-Oct-02 20:13 
GeneralRe: Scaling graphics - Solved nevermind Pin
leppie22-Oct-02 7:23
leppie22-Oct-02 7:23 
GeneralRe: Scaling graphics - Solved nevermind Pin
David Stone22-Oct-02 10:13
sitebuilderDavid Stone22-Oct-02 10:13 
Generalchanging http and https urls Pin
Shaun Wilde19-Oct-02 10:53
Shaun Wilde19-Oct-02 10:53 
GeneralRe: changing http and https urls Pin
alex.barylski19-Oct-02 13:34
alex.barylski19-Oct-02 13:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.