Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

Need urgent help!!!!

get value from jprompt before calling rowcommand event of gridview in asp.net c#

please help.

Thanks in advance.
Posted

1 solution

If you want get data at clientside you can use onClientClick propery of control that is causing postback/rowcommand

I guess you are using jpromt from http://labs.abeautifulsite.net/archived/jquery-alerts/demo/[^]

So you can have something like

JavaScript
jPrompt('Type something:', 'Prefilled value', 'Prompt Dialog', function(r) {
    if( r ) 
    {
         $('#MyhiddenField').val(r);
    }
});
 
Share this answer
 
v2

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