Get IDs from URL

1 view
Skip to first unread message

Ana

unread,
Feb 1, 2010, 6:20:51 PM2/1/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,

In my application I'm sending an email with a link to a page to
confirm the user have read the email. In the body of the email, I have
a line similar to this:

<p><a href='http://www.mydomain.com/FolderName/ConfirmRead.aspx?icId="
& icID & "&sId=" & statusID & "&uId=" & uniqueId & "'>Click here to
confirm response.</p>

When the user clicks on the link, I have to get the icId, sId and uId
to update the database. So, my question is: how do I get this IDs from
the URL?

Thanks in advance for the help.

Ana

khan abuzaid noorulhaque

unread,
Feb 1, 2010, 9:07:09 PM2/1/10
to dotnetde...@googlegroups.com
hi
Request.QueryString.Get("icID").ToString()
Request.QueryString.Get("sId").ToString()
Request.QueryString.Get("statusID").ToString()
Request.QueryString.Get("uId").ToString()
Request.QueryString.Get("uniqueId").ToString()
--
Regards

Khan Abuzaid
Mob# :09664541886
Mumbai

Ana

unread,
Feb 2, 2010, 3:52:32 PM2/2/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi Khan,

Thanks a lot! The solution you gave was exactly what I was looking
for! :)

Ana

On Feb 1, 7:07 pm, khan abuzaid noorulhaque <khan.abuz...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages