C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » HTML »

How to call Html input controls in code behind file?


Posted Date: 13 Jul 2006      Posted By: Kalyan      Member Level: Gold     Points: 2   Responses: 1




Hi,
When I am designing a web page I used some Html input controls(input type text,button etc.) in html view.I have given id,name,value fiels for these controls.And also added runat="server" attribute.Now my doubt is how can we access these controls in code behind file.
For example a button name(id)=btnsubmit.For this i hav given a function name for onclick="function1()" which i wrote in code behind file.But that function is not responsing when the button was clicked.And also when i want to read or assign text for the input type text box,
It is not working.What could be wrong?
Please any one u help to solve this ,as it is urgent.
I am not comfortable with javascript.

Thanks in advance.
Kalyan.






Responses

Author: Sandeep     17 Jul 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

remove old button_click event and double click onn button again then right your code there.Hope it works

Thanks,
Sandeep
Software Engineer
Wire2Air



Post Reply
You must Sign In to post a response.
Next : How to call Html input controls in code behind file?
Previous : How to call Html input controls in code behind file?
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use