Need some C# code for a couple of if's

Job ID: 37214116

Budget: $10 – $30 USD

I have an aspx page written in C#-- I'm a VB.net person so I need a little help. My page redirects based upon the MemberID in the query string.

All I want is If querystring is MemberID=117 go the Https:// Researchers.hcc.musc.edu/?MemberID=117

It's just a couple of lines of code. Bellow is my entire code

<script runat="server">
protected override void OnLoad(EventArgs e)
{
String currurl = HttpContext.Current.Request.RawUrl;
String querystring = null ;

int iqs = currurl.IndexOf('?');
if (iqs == -1)
{

Response.Redirect("HTTPS://Researchers.hcc.musc.edu", true);
}
// If query string variables exist, put them in
// a string.
else if (iqs >= 0)
{
// querystring = (iqs < currurl.Length - 1) ? currurl.Substring(iqs + 1) : String.Empty;

Response.Redirect("HTTPS://Researchers.hcc.musc.edu?MemberID=175", true);
}





}
</script>
Related categories: PHP .NET C# Programming C++ Programming VB.NET