Click here to Skip to main content
15,881,172 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to custom function into reportviewer Pin
lav naphade29-Mar-08 6:59
lav naphade29-Mar-08 6:59 
AnswerRe: How to custom function into reportviewer Pin
pmarfleet29-Mar-08 12:11
pmarfleet29-Mar-08 12:11 
QuestionAccess the image from MS ACCESS,how? Pin
zeeShan anSari29-Mar-08 6:23
zeeShan anSari29-Mar-08 6:23 
GeneralDynamically Adding Javascript Files [modified] Pin
Brendan Vogt29-Mar-08 3:41
Brendan Vogt29-Mar-08 3:41 
GeneralRe: Dynamically Adding Javascript Files Pin
pmarfleet29-Mar-08 12:26
pmarfleet29-Mar-08 12:26 
GeneralRe: Dynamically Adding Javascript Files Pin
John-ph29-Mar-08 21:43
John-ph29-Mar-08 21:43 
QuestionWebServices question.. Pin
som.nitk29-Mar-08 3:31
som.nitk29-Mar-08 3:31 
GeneralSetting Meta values in .aspx Page Pin
Brendan Vogt29-Mar-08 3:29
Brendan Vogt29-Mar-08 3:29 
Hi,

I have master page Website.master, and a Default.aspx that uses this master page. I will need to set the meta tags of each page dynamically. This was how I normally do it, but for some or other reason it does not work now:

Website.master.cs

public HtmlHead PageHeader
{
get { return (HtmlHead)Page.Header; }
}

public string MetaKeywords
{
set
{
HtmlMeta keywords = new HtmlMeta();
keywords.Name = "keywords";
keywords.Content = value;
PageHeader.Controls.AddAt(2, keywords);
}
}

Default.aspx.cs

Master.MetaDescription = "TEST";

The error that I keep on getting is:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

I have no idea what I am doing wrong here??

Thanks
Brendan
QuestionHow this is done ? Pin
Krazy Programmer29-Mar-08 2:53
Krazy Programmer29-Mar-08 2:53 
GeneralRe: How this is done ? Pin
farazsk1129-Mar-08 3:01
farazsk1129-Mar-08 3:01 
GeneralRe: How this is done ? Pin
Bradml30-Mar-08 0:34
Bradml30-Mar-08 0:34 
Generalneed to generate a list of Spanish Alphabets Pin
Rocky#29-Mar-08 2:51
Rocky#29-Mar-08 2:51 
GeneralCustom Paging Pin
.NET- India 29-Mar-08 2:09
.NET- India 29-Mar-08 2:09 
GeneralRe: Custom Paging Pin
Rocky#29-Mar-08 2:52
Rocky#29-Mar-08 2:52 
QuestionOpen a grid view in edit mode? Pin
docsoft28-Mar-08 23:50
docsoft28-Mar-08 23:50 
GeneralRe: Open a grid view in edit mode? Pin
Rocky#29-Mar-08 1:24
Rocky#29-Mar-08 1:24 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 7:28
docsoft29-Mar-08 7:28 
GeneralRe: Open a grid view in edit mode? Pin
Rocky#30-Mar-08 20:43
Rocky#30-Mar-08 20:43 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 2:11
farazsk1129-Mar-08 2:11 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 7:18
docsoft29-Mar-08 7:18 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 8:04
farazsk1129-Mar-08 8:04 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 8:40
docsoft29-Mar-08 8:40 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 9:54
farazsk1129-Mar-08 9:54 
Generalhelp Pin
V.Sen...28-Mar-08 23:43
V.Sen...28-Mar-08 23:43 
GeneralRe: help Pin
farazsk1129-Mar-08 2:48
farazsk1129-Mar-08 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.