Connect with Expertise | Find Experts, Get Answers, Share Insights

Passing values in hyperlink

C
 
Join Date: Nov 2008
Location: Chennai, India
Posts: 103
#1: Feb 8 '10
Hi,

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

Expand|Select|Wrap|Line Numbers
  1. <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>
  2.  
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's Avatar
E
M
C
 
Join Date: Apr 2007
Location: New England
Posts: 7,463
#2: Feb 8 '10

re: Passing values in hyperlink


You should be using proper url formating.
The ? is used to seperate page from query arguments. The & is used to seperate parameters.
MyPage.aspx?agr1=val1&arg2=val2
C
 
Join Date: Nov 2008
Location: Chennai, India
Posts: 103
#3: Feb 9 '10

re: Passing values in hyperlink


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,
Plater's Avatar
E
M
C
 
Join Date: Apr 2007
Location: New England
Posts: 7,463
#4: Feb 10 '10

re: Passing values in hyperlink


Not in a hyperlink.
You're in a web application yes? You could pass them in the Session object if you wanted.
C
 
Join Date: Nov 2008
Location: Chennai, India
Posts: 103
#5: Feb 10 '10

re: Passing values in hyperlink


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,
Reply