TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hibaq Hashi
NA
1
0
Asp.net - DetailView
Oct 18 2008 7:03 PM
I have created a Gridview and a Detailview. However, I have a problem on displaying one of my fields in the Detailview. My data is coming from Oracle database table which I have created. The field I am having trouble with has about 2000 characters displayed in my Oracle table however it is not displaying as seeing in the oracle form which I generated. I need this field to have paragraphs, line spacing as seeing in the form.
Is there anyway I can read this field's characters one by one somewhere in the detailview?
DetailView: (the field I'm trying to modify is "Qualifications")
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Details.aspx.cs" Inherits="Details" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="
http://www.w3.org/1999/xhtml
" >
<head runat="server">
<title>DetailsView</title>
<style type="text/css">
iframe
{overflow-x:hidden; overflow-y: scroll;
}
</style>
</head>
<body>
<form id="form1" runat="server" method="post" onsubmit="location.href='MAILTO:?subject='">
<div>
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4"
DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None" Height="50px"
Width="550px">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
<RowStyle BackColor="#EFF3FB" VerticalAlign="Top" />
<FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" ForeColor="ActiveCaption" VerticalAlign="Top" />
<PagerStyle BackColor="#2461BF" ForeColor="White" VerticalAlign="Top" />
<Fields>
<asp:BoundField HeaderText="Job Title" DataField="JOB_TITLE" SortExpression="JOB_TITLE" />
<asp:BoundField HeaderText="Posted Date" DataField="POSTED_DATE" SortExpression="POSTED_DATE" DataFormatString="{0:M/dd/yy}" HtmlEncode="False"/>
<asp:BoundField HeaderText="Posting Nbr" DataField="POSTING_NBR" SortExpression="POSTING_NBR" />
<asp:BoundField HeaderText="Pay" DataField="PAY" SortExpression="PAY" />
<asp:BoundField HeaderText="Department" DataField="DEPARTMENT" SortExpression="DEPARTMENT" />
<asp:BoundField HeaderText="Qualifications" DataField="QUALIFICATIONS" SortExpression="QUALIFICATIONS" >
<ItemStyle HorizontalAlign="Justify" Wrap="True" />
</asp:BoundField>
<asp:BoundField HeaderText="Contact" DataField="CONTACT" SortExpression="CONTACT" />
</Fields>
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" VerticalAlign="Top" />
<EditRowStyle BackColor="#2461BF" ForeColor="RoyalBlue" VerticalAlign="Top" />
<AlternatingRowStyle BackColor="White" />
<InsertRowStyle VerticalAlign="Top" />
</asp:DetailsView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand='SELECT DISTINCT "JOB_TITLE", "POSTED_DATE", "POSTING_NBR", "POSITION_NBR", "JOB_CODE", "PAY", "DEPARTMENT", "QUALIFICATIONS", "DUTIES", "CONTACT" FROM "FAC_PHYS_ACTIVE_POSTINGS" WHERE ("JOB_TITLE" = :JOB_TITLE)'>
<SelectParameters>
<asp:QueryStringParameter Name="JOB_TITLE" QueryStringField="ID" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<br />
<asp:Button ID="Submit" runat="server" Text="Submit CV" /></div>
</form>
</body>
</html>
Reply
Answers (
0
)
data grid
Best way to delete permanently a control from the parent container