Search

parse url parameter in asp.net

This is how to get URL parameters in asp.net



//parse url parameter in asp.net
//EX: default.aspx?file= new file&query=search
string file = Request.QueryString["file"].ToString();
string query = Request.QueryString["query"].ToString();





Hope it helps