how to Pass two parameters using Eval in a javascript fuction
-
Hi All, I am facing some problem in passing tweo parameters using Eval in GridView. I tried like this, but there is some javascript error- ' Text= <%# Bind("AcceptNumber") %> /asp:HyperLink> function OpenDialog(rid,AcceptNumber) { window.showModalDialog( "PopupAcceptfrm.htm?ReturnList?ReportNumber= "+ rid+ "&AcceptNumber="+ AcceptNumber+ " ',window, 'dialogWidth:800px;pxcenter:yes;help:no;resizable:no;status:no ") } when i click on hyperlink in GridView, it shows some havascript error. this error says that the second parameter i passed , is not identified. can anybody tell me how to pass two parameters in a javascript function using Eval. Please help me.
-
Hi All, I am facing some problem in passing tweo parameters using Eval in GridView. I tried like this, but there is some javascript error- ' Text= <%# Bind("AcceptNumber") %> /asp:HyperLink> function OpenDialog(rid,AcceptNumber) { window.showModalDialog( "PopupAcceptfrm.htm?ReturnList?ReportNumber= "+ rid+ "&AcceptNumber="+ AcceptNumber+ " ',window, 'dialogWidth:800px;pxcenter:yes;help:no;resizable:no;status:no ") } when i click on hyperlink in GridView, it shows some havascript error. this error says that the second parameter i passed , is not identified. can anybody tell me how to pass two parameters in a javascript function using Eval. Please help me.
And what is the URL pointing to ? I see only one parameter, but it's all messed up, did you get your formatting wrong ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
And what is the URL pointing to ? I see only one parameter, but it's all messed up, did you get your formatting wrong ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
here i m trying to describe with more focus-- I am facing some problem in passing two parameters using Eval in GridView. I tried like this, but there is some javascript error- this hyperlink column is in Grigview. which is bind with SQL server Databse. ]]>' Text= '<%# Bind("AcceptNumber") %>'> //the javascript function-- function OpenDialog(rid,AcceptNumber) { window.showModalDialog( "PopupAccept.aspx?ReturnList?ReportNumber= "+ rid+ "&AcceptNumber="+ AcceptNumber+ " ',window, 'dialogWidth:800px;pxcenter:yes;help:no;resizable:no;status:no ") } when i click on hyperlink in GridView, it shows some havascript error. this error says that the second parameter i passed , is not identified. can anybody tell me how to pass two parameters in a javascript function using Eval. Please help me.