Cybercrux

Everything is achievable through technology

Query string

using System.Web.UI.WebControls;

string Upperstring =Request.Url.PathAndQuery.ToString().ToUpper();

#region Price Analysis
///total 8 menu sections
if (Upperstring.IndexOf((“Equity/TopGainersAndLosers.aspx”).ToUpper()) > 0)
{
pageLink = “Price Analysis”; PageHeading = “Gainers & Losers”;
}
id = (Request.QueryString[“id”] != null) ? Request.QueryString[“id”] : “”;

 

Virtual Row URL Query String

Uri theRealURL = new Uri(HttpContext.Current.Request.Url.Scheme + “://” + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.RawUrl);

string yourValue = HttpUtility.ParseQueryString(theRealURL.Query).Get(“campaignemail”);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s