Reputation: 3945
So each time a button is clicked a new page loads. But the URl passed the BOQId with this URL
protected string GetURLForEditingBoqPricelist()
{
return ResolveUrl(@"~/Boq.aspx?BOQ_Id=" + this.boqId.ToString());
}
loads the BOQ page and stores the BoqID so..
http://localhost:28889/Project/Boq.aspx?BOQ_Id=124
Then in the BOQ.aspx page how can i get the BOQid Value just create a new int in the cs and make it equal to ?? Any ideas? Thanks
Upvotes: 0
Views: 1563
Reputation: 23113
int id;
Int32.TryParse(Request.QueryString["BOQ_Id"], out id);
Upvotes: 2
Reputation: 144
U can use, int BOQid = Convert.ToInt32(Request.QueryString["BOQ_Id"]);
Upvotes: 1