I am new to asp and I am having hard time to find a way of what I am intending
1.I want a link button to be placed on form
2.When this button gets clicked, I need to get some values from form which have already shown in the page.For example when page loads I can see a page with a linkbutton mentioned above and value.I need to capture this value
What should I do
Since you mention a linkbutton, this is actually a .NET question. I’m afraid I’m not able to understand what it is you’re asking though?
Are you looking for guidance on how to get the value of a form element?
If you go into design mode. You can double click on the button. VS will then create the button click event and hook the two up for you.
You can get all the values from the form fields that are marked as runat=“server”. <input type=“text” id=“txtName” runat=“server” />
You can access it via its id: txtName.Value;
I hope that helps