N
.Net Sports
I'm trying to insert HTML elements (tags like <br> , or even links tags
<a href> etc) into a datagrid module that updates articles in sql
dbase. The actual field "articletext" that contains the content for the
article is configured in the datagrid as such below:
<asp:TemplateColumn headertext="Article Text">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "ArticleText") %>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="ArticleText" runat="server" Height="250px"
TextMode="MultiLine" text='<%# DataBinder.Eval(Container.DataItem,
"ArticleText") %>' ></asp:TextBox>
</EditItemTemplate> </asp:TemplateColumn>
works fine when submitting regular text, but get this error when adding
html:
A potentially dangerous Request.Form value was detected from the client
(MyDataGrid:_ctl6:ArticleText="...7TH GAME!!<br> Welcome to o...").
???? .NetSports
<a href> etc) into a datagrid module that updates articles in sql
dbase. The actual field "articletext" that contains the content for the
article is configured in the datagrid as such below:
<asp:TemplateColumn headertext="Article Text">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "ArticleText") %>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="ArticleText" runat="server" Height="250px"
TextMode="MultiLine" text='<%# DataBinder.Eval(Container.DataItem,
"ArticleText") %>' ></asp:TextBox>
</EditItemTemplate> </asp:TemplateColumn>
works fine when submitting regular text, but get this error when adding
html:
A potentially dangerous Request.Form value was detected from the client
(MyDataGrid:_ctl6:ArticleText="...7TH GAME!!<br> Welcome to o...").
???? .NetSports