You must Sign In to post a response.
  • Category: ASP.NET

    Hoow to Pass Query string parameters in crystal report Hyperlink?

    Hi Guys...
    i have crystal report in which i have used Hyperlink field (Formula) to redirect from there to another page
    here is my code
    ("../Pages/Admin/EditEmployeeAttendanceData.aspx?PageAction=View&Id="+{indi_attendance_aheet.EmployeeAttendanceId})

    and its working fine in my local machine but when i'm deploying same source code at my uat machine the url becoming like this
    http://uat/trac/Pages/Admin/EditEmployeeAttendanceData.aspx?PageAction
    the other part of the url is missing which contain the Id and page mode

    any help will be appreciated
  • #764106
    Can you try to get the host name and assign URL.
    You can try to use

    HttpContext.Current.Request.Url.Host

    you can try the following code

    (HttpContext.Current.Request.Url.Host +"/Pages/Admin/EditEmployeeAttendanceData.aspx?PageAction=View&Id="+{indi_attendance_aheet.EmployeeAttendanceId})

    By Nathan
    Direction is important than speed

  • #764107
    Actually Problem occurring after = symbol its escaping remaining all url after =

  • #764128
    Hai Ameer,
    There should not be any space when using the query string. So you need to make sure that there is no space before and after the = sign.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


Sign In to post your comments