Hi all,

I have created text box server controls dynamically on my aspx page but I do
not know how to access them. Some of my code is as:

Dim c5 As New TableCell
                Dim InputBoxAmt As WebControl
                InputBoxAmt = New WebControl(HtmlTextWriterTag.Input)
                InputBoxAmt.Attributes.Add("type", "text")
                InputBoxAmt.Attributes.Add("ID", "txtAmt" & ctr)
                  InputBoxAmt.Attributes.Add("Value",
FormatNumber(dar.Item("ExpectedAmt"), 2))
                InputBoxAmt.Width = InputBoxAmt.Width.Parse("100")
                c5.HorizontalAlign = HorizontalAlign.Center
                c5.Controls.Add(InputBoxAmt)

This code adds the text box on the page with all the properties etc. ctr in
the above code is the counter that gives each textbox a unique id. So my
text box will have ids as txtAmt1, txtAmt2 etc. The question is how do I
read the values or change values in this text box programmatically.

Your help is much appreciated,
Ash



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to