Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to Pass two parameters using Eval in a javascript fuction

how to Pass two parameters using Eval in a javascript fuction

Scheduled Pinned Locked Moved ASP.NET
helpjavascripttutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    unil Dhiman
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • U unil Dhiman

      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.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      U 1 Reply Last reply
      0
      • C Christian Graus

        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 )

        U Offline
        U Offline
        unil Dhiman
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups