Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i create one object in asp.net like this Form2 f=new form2()... another form name is can't declared in the form.. Pls Help me..
Posted
Comments
Ankur\m/ 5-Feb-14 8:05am    
You seem to have come from Windows App background. It doesn't work this way in ASP.NET. If you explain what you actually want to do, we may be able to help you out with that.
vignesh war 5-Feb-14 8:06am    
I need one gridview value to another form text box..
vignesh war 5-Feb-14 8:07am    
can u send sample code..
Ankur\m/ 5-Feb-14 8:13am    
How do you navigate to that page? There are client side and server side state management techniques that you can use to get the value.
vignesh war 5-Feb-14 8:17am    
Sorry am new to this technology.. i opened gridview form. but how to click gridview and that datas goes to another form i dont knw. pls share some sample codes.

Web sites don't use forms - they use pages, and you don't switch between them in that way because the whole architecture is different.

So if you are using ASP.NET, you need to rethink what you are doing: forms are not the way to go.
 
Share this answer
 
Quote:
I need one gridview value to another form text box..
Answering as per your comments

You can use QueryString to pass Gridview Value to another page and assign to the TextBox Control.

http://stackoverflow.com/questions/17189798/selecting-a-row-in-gridview-then-passing-the-selected-row-to-another-page

http://stackoverflow.com/questions/5393942/passing-value-when-select-on-gridview-to-another-page[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900