Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Access html control value from code-behind
Riddhi Valecha
Jan 7 2016 7:18 AM
259
Reply
Hi all...
I have HTML Controls as -
<div class="cont-input fl"><input name="" type="text" value="Name" onBlur="if(this.value=='') this.value='Name';" onFocus="if(this.value=='Name') this.value='';" id="txtName" runat="server" ></div>
Issue - When I type a name say "Mahesh Sharma" , then I want to access the value "Mahesh Sharma" in code-behind (aspx.cs file).
When I type - txtName.Value - I get "Name" as Value.
How to access the user-entered value from backend ?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
asp.net gridview
C# Daily task Scheduler