Click here to Skip to main content
15,173,031 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a view page where I have a textbox and a actionlink. I want to transfer the data entered in the textbox to another conrtoller . The text box is not attached to any model. How will I do that? Is it something to do with creating a model class and declaring a property? If so how will I pass textbox data?



Thanks in Advance..........
Posted

1 solution

There are two common approaches to this:
1) use JavaScript (likely jQuery) to post the data to an URL
2) use Html.BeginForm and set the appropriate values to target the other controller

Cheers.
   
Comments
vinodkalanji 23-Jul-10 1:44am
   
Thanks James....I am new to asp.net mvc...This helped me....
TheyCallMeMrJames 23-Jul-10 9:02am
   
No worries, glad I could help!

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