Hello, i have some web site with one page call genPage.aspx for all regular site pages, the title and the content of the page is changing by the pageId on the url (queryString). All the page looks the same (title, content and images and the same structure) im want to add contact form to the page with the pageId=7 only and dont have idea how to do this. (i know in classic asp it was : <if pageId = 7> html code and then <end if> but in asp.net i cant find the way. any idea?
protected void Page_Load(object sender, EventArgs e)
{
ShowContext();
}
private void ShowContext()
{
dbClassDataContext db = new dbClassDataContext();
var slinks = from sl in db.sitePages
where sl.pageId == Convert.ToInt32(Request.QueryString["pageId"])
select sl;
contextFV.DataSource = slinks;
contextFV.DataBind();
}
&n ...
Go to the complete details ...