Passing values in hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmagesh
    New Member
    • Nov 2008
    • 119

    Passing values in hyperlink

    Hi,

    i have a mail template which will be send when the user clicks send mail. Inside the mail i have some hyperlinks like

    Code:
    <asp:hyperlink id="refer" runat="server" cssclass="MERefer" target="_blank" navigateurl="/DesktopModules/SelfReporting/ExportPDF.aspx?Username=magesh?value=12345?content=test content">click here</asp:hyperlink>
    The above said will be available in the mail template, which will have dynamic values in the username, value and content values.

    if the user click the link which is in that mail, it needs to take that values in post method and pass through?

    can anyone help me how to implement this function in C sharp, i am using C# based web services.

    Kindly give me some idea in this,

    thanks in advance

    Regards,
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You should be using proper url formating.
    The ? is used to seperate page from query arguments. The & is used to seperate parameters.
    MyPage.aspx?agr 1=val1&arg2=val 2

    Comment

    • phpmagesh
      New Member
      • Nov 2008
      • 119

      #3
      Thanks Plator,

      But i would like to send the values in post method, i mean the query string which passing should not be visible in the address bar.

      Is there any way to accomplish this.?

      Thanks in advance.

      Regards,

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Not in a hyperlink.
        You're in a web application yes? You could pass them in the Session object if you wanted.

        Comment

        • phpmagesh
          New Member
          • Nov 2008
          • 119

          #5
          Hi,

          Can you please guide me how to do using session, since i don't have idea on that.

          if any sample will be very helpful for me.?

          Thanks in advance,

          Regards,

          Comment

          Working...