Click here to Skip to main content
15,904,655 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
i'm getting this error :

Error    50    'System.Web.HttpRequest' does not contain a definition for 'Querystring' and no extension method 'Querystring' accepting a first argument of type 'System.Web.HttpRequest' could be found (are you missing a using directive or an assembly reference?)



this place :



<a href="newpost.aspx?ForumID=<% = Request.Querystring["Id"] %>">New Post</a>
Posted

no sir it's my small mistake . i used Querystring behalf of QueryString..

i correct tat n my project executes successfully.
 
Share this answer
 
Use single quotes after href=

HTML
<a href="newpost.aspx?ForumID=<% = Request.Querystring["Id"] %>">

</a>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900