Click here to Skip to main content
16,009,407 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to store values to tables.... Pin
Sherin Iranimose24-May-07 19:20
Sherin Iranimose24-May-07 19:20 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 19:36
Member 387988124-May-07 19:36 
GeneralRe: how to store values to tables.... Pin
Sherin Iranimose24-May-07 22:48
Sherin Iranimose24-May-07 22:48 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 22:59
Member 387988124-May-07 22:59 
AnswerRe: how to store values to tables.... Pin
N a v a n e e t h24-May-07 18:16
N a v a n e e t h24-May-07 18:16 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 18:40
Member 387988124-May-07 18:40 
GeneralRe: how to store values to tables.... [modified] Pin
N a v a n e e t h24-May-07 20:12
N a v a n e e t h24-May-07 20:12 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 20:18
Member 387988124-May-07 20:18 
GeneralRe: how to store values to tables.... Pin
N a v a n e e t h24-May-07 20:35
N a v a n e e t h24-May-07 20:35 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 22:38
Member 387988124-May-07 22:38 
Questionhow to get value selected in templatefiled of gridview Pin
mohd imran abdul aziz24-May-07 17:28
mohd imran abdul aziz24-May-07 17:28 
AnswerRe: how to get value selected in templatefiled of gridview Pin
Member 387988124-May-07 17:52
Member 387988124-May-07 17:52 
QuestionList of Controls--why does this work? Pin
Bob Vila24-May-07 12:50
Bob Vila24-May-07 12:50 
AnswerRe: List of Controls--why does this work? Pin
kubben24-May-07 14:10
kubben24-May-07 14:10 
GeneralRe: List of Controls--why does this work? Pin
Bob Vila24-May-07 18:45
Bob Vila24-May-07 18:45 
GeneralRe: List of Controls--why does this work? Pin
kubben25-May-07 1:38
kubben25-May-07 1:38 
QuestionBeginner question - HTML tags in database? Pin
scottnkerr24-May-07 11:23
scottnkerr24-May-07 11:23 
Hi there,

I'm brand new to ASP.net...currently building my first data-driven site. I've created my database and successfully connected to it. When the data is displayed, however, all my html tags that are in the database record are written out rather than being interpretted as html. For example, I want "<br>" to produce a line break, but it just displays "<br>". Is this by design? I have some ColdFusion experience and CF does not behave in this manner. I expect the same would be true for ASP, but I haven't been able to find any information about it.

I'm connecting to a SQLExpress database on my local machine. I am using a details view to display the information...don't know if that matters. I'm also using a dataset currently, but a direct connection to the database yielded the same results. Here's the code:

<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
DataKeyNames="Content_ID" DataSourceID="ObjectDataSource1" BorderWidth="0">
<Fields>
<asp:BoundField DataField="Content_ID" HeaderText="Content_ID" InsertVisible="False"
ReadOnly="True" SortExpression="Content_ID" Visible="False" />
<asp:BoundField DataField="Content_Title" HeaderText="Content_Title" ShowHeader="False"
SortExpression="Content_Title" ItemStyle-CssClass="mainhead" ItemStyle-VerticalAlign="Top" />
<asp:BoundField DataField="Content_Text" HeaderText="Content_Text" ShowHeader="False"
SortExpression="Content_Text" />
</Fields>
</asp:DetailsView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
TypeName="GTGDataSetTableAdapters.ContentTableAdapter" UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_Content_ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Content_Title" Type="String" />
<asp:Parameter Name="Content_Text" Type="String" />
<asp:Parameter Name="Original_Content_ID" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:Parameter DefaultValue="2" Name="Content_ID" Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="Content_Title" Type="String" />
<asp:Parameter Name="Content_Text" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>

Is there anyway of getting this to work the way I want? Thanks in advance for your help. It's much appreciated.

Scott
Questionfiles on a linux box? Pin
MaryAnne24-May-07 9:21
MaryAnne24-May-07 9:21 
AnswerRe: files on a linux box? Pin
eggsovereasy24-May-07 10:22
eggsovereasy24-May-07 10:22 
GeneralRe: files on a linux box? Pin
MaryAnne25-May-07 3:53
MaryAnne25-May-07 3:53 
GeneralRe: files on a linux box? Pin
eggsovereasy25-May-07 5:22
eggsovereasy25-May-07 5:22 
GeneralRe: files on a linux box? Pin
MaryAnne25-May-07 6:18
MaryAnne25-May-07 6:18 
AnswerRe: files on a linux box? Pin
Vasudevan Deepak Kumar24-May-07 22:15
Vasudevan Deepak Kumar24-May-07 22:15 
GeneralRe: files on a linux box? Pin
MaryAnne25-May-07 3:55
MaryAnne25-May-07 3:55 
Questionminimize SSL Pin
KBTibbs24-May-07 7:46
KBTibbs24-May-07 7:46 

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.