get control properties after postback

M

mr. App

I know how to create a custom control by using the Render method. the
question is, if I have 2 properties, for example:
protected override void Render(HtmlTextWriter output)
{
output.Write("<input type=text name=" + this.UniqueID + " ");
output.Write("value=" + this.value + " text=" + this.Text);
}

the question is how to I get the new values of this.value and this.text
properties after postback?

Thanks
 
S

Steve C. Orr [MVP, MCSD]

Look in the Form collection. Try code similar to this:

string s = Request.Form(this.UniqueID).ToString();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top