Pass Value(databinder.eval) to Javascript Function

In some scenario we have to call Javascript Function with dynamic parameter values.

Take a scenario in which we have to pass variables to javascript on ‘onchange; event of Textbox which is in TemplateColumn of gridview.

Here is the Small Example for the same.

I have a Javascript Function with the name ‘processRequest’ with three Parameters like sender of type object, columnName of type string and ID of type int. i want to call this function while user has changed text in Gridview Textbox.

Here is my Javascript Function’s Decalration:
function processRequest(sender,columnName,ID)
var Values =”/@,@,@/”+sender.value+”/@,@,@/”+columnName+”/@,@,@/”+Qid;


now to call this function i have added ‘onchange’ event of the Textbox like this:


Thats it!!!!

Note : i have known the ASCII character for the Single Quote from HERE


One Response to Pass Value(databinder.eval) to Javascript Function

  1. Hola! I’ve been reading your web site for some time now and finally got the bravery to go ahead and give you a shout out from Atascocita Tx! Just wanted to say keep up the good work!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: