well you can do something like this
<TEXTAREA cols="20" id="TextArea1">
</TEXTAREA>
<br>
<INPUT type="text" id="TextBox1">
in your code behind at reference to the html objects
protected System.Web.UI.HtmlControls.HtmlInputText TextBox1;
protected System.Web.UI.HtmlControls.HtmlTextArea TextArea1;
and then you can use them like anywhere in codebehind.
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
string textBoxVal = TextBox1.Value;
string textAreaVal = TextArea1.Value;
}
also if you are looking for modal dialog then you might want to check
www.asp.net site... and go to control gallery
--
Regards,
Hermit Dave
(
http://hdave.blogspot.com)
"Dave" <Da**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
Actually I'm doing all my work in the HTML source. And I've considered
using a plain text field, however, the entire scenario is:
User enters value in text box. Then presses button to post the adjustment.
The JavaScript tests the value to see if its less than 200. When its less,
the code action is to proceed straight to an ASP C# event handler (via the
fireEvent method). When its greater (and this is the real need for
JavaScript) the showModalDialog function is called to collect a username
password. These values are then returned via parameters and inserted into
hidden fields so that my C# handler can pick up and verify those fields.
Now if I knew how to initiate a Modal Dialog box server side, I might
(given what a pain this is turning out to be) just reconsider using JavaScript.
Since I'm still a rookie with ASP.net, I would need to know how I can bind
a standard input text box to the server side ASP web control.
Thanks So Much for your help so, far.
Dave
"Hermit Dave" wrote:
my bad.. .my bad..
sorry onClick button and this would pass reference to the button and not
the text box.
another problem would be the actual ids of the textbox in the rendered
html. have a look at those. you might have to do it the hard way ie ur the
names as rendered not the ids as in designer. (do a vew >> source )
if this is too messed up consider using plain old html control <input
type=text maxlength=50 name="mytextbox1"> etc
hth
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"Dave" <Da**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...