Hi,

In my asp.net page, I have the following line inside an UpdatePanel:

<input type="text" id="userInput" onblur="DisplayWord()" onkeyup="SearchWord(event, this.value)" />

Is there a way to retrieve the input value in the code behind (VB.NET)?

Thanks,

Ana

Handles the Enter, Leave, and KeyPress events.

Handles the Enter, Leave, and KeyPress events.

What the heck? this has nothing to do with what Ana asked...

I am also interested in learning how to get the input value from the code behind without making the INPUT control have the "RUNAT server" code.

Thanks

I think I got it, use this to get the value of the input from the code behind:

String.Format("{0}", Request.Form["MyInputBox"])

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.