asp.net MVC3 razor webgrid EditColumn

I have a Webgrid which is bounded and also has an edit "LinkButton" column.

I want it so that when the user clicks "LinkButton", it will fill a TextBox (below the WebGrid) with some value from the database.

Answers


You can use jquery for this, on click of the link button call a jquery.

From the jquery call an action and make that action do whatever work you want and return THAT value to the jquery and then use this value to fill the textbox.

Here is a link, that shows how to call an action from jquery

http://yassershaikh.com/how-to-call-an-action-from-javascript-or-jquery-in-mvc-3-razor/


Need Your Help

Resetting scale in Phaser

javascript game-engine phaser-framework

I have a game made in phaser and we're trying to add fullscreen functionality to it. When I call just

How do I know when a variable is accessed within my code?

c++

I'm using VS2008 to write a program. There's one specific line in my code that causes a numerical error. It is: