You have tagged your question in C# and your requirement is in VB.NET, first update your question.
vb.net
Dim query as Integer =Convert.ToInteger(Request.QueryString("rid"))
if query=6 than
//do your stuff
else
//do your stuff
end
c#
if (Request.QueryString.Count > 0) {
int Query = Convert.ToInt32(Request.QueryString["rid"]);
if (Query == 6)
{
}
else {
}
}
Modify this code according to your need.