Click here to Skip to main content
15,890,882 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: new line in nvarchar Pin
Christian Graus13-Feb-09 10:58
protectorChristian Graus13-Feb-09 10:58 
GeneralRe: new line in nvarchar Pin
radupopescu77713-Feb-09 10:27
radupopescu77713-Feb-09 10:27 
GeneralRe: new line in nvarchar Pin
Jörgen Andersson13-Feb-09 10:44
professionalJörgen Andersson13-Feb-09 10:44 
GeneralRe: new line in nvarchar Pin
radupopescu77713-Feb-09 11:11
radupopescu77713-Feb-09 11:11 
GeneralRe: new line in nvarchar Pin
Jörgen Andersson13-Feb-09 11:36
professionalJörgen Andersson13-Feb-09 11:36 
GeneralRe: new line in nvarchar Pin
Christian Graus13-Feb-09 10:59
protectorChristian Graus13-Feb-09 10:59 
AnswerRe: new line in nvarchar Pin
Guffa14-Feb-09 9:12
Guffa14-Feb-09 9:12 
QuestionFrozen Listview Headers + IE Resize issue Pin
nathan bisges13-Feb-09 9:27
nathan bisges13-Feb-09 9:27 
I have created a page that has frozen listview headers and it works in IE and FF. The problem is in IE 6 and 7 when you try resize the browser window, change screen resolutions, or sometimes when changing browser tabs; the relative positioned table headers jump up to the top of the page or disappear completely. FF is working correctly in all instances. I have read that there is a bug in ie 6 and 7 that causes this. All the solutions I have read have not worked for me. I have tried giving the body relative positioning and also wrapping the listview in a div and giving it absolute or relative positioning. Here is the css and asp.net code. Any help would be GREATLY appreciated.

<pre>
<head id="Head1" runat="server">
<link href="~/Styles/StyleSheet.css" rel="stylesheet" type="text/css"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ListView ID="lvJOA" runat="server" EnableViewState="False" >
<LayoutTemplate>
<div id="lvTableWrapper">
<table id="JOATable" border="1" cellpadding="5" cellspacing="0" summary="Holds the Job Listing.">
<thead>
<tr>
<th>
<asp:LinkButton runat="server" ID="lnkbtnJobClass" OnClientClick="setSortBy('JobClass')">Job Classification</asp:LinkButton>
</th>
<th>
<asp:LinkButton runat="server" ID="lnkbtnSalary" OnClientClick="setSortBy('Salary')">Semi-Monthly Salary</asp:LinkButton>
</th>
<th>
<asp:LinkButton runat="server" ID="lnkbtnApplicationProcess" OnClientClick="setSortBy('AppProcess')">Application Process</asp:LinkButton>
</th>
<th>
<asp:LinkButton runat="server" ID="lnkbtnClosingDate" OnClientClick="setSortBy('ClosingDate')">Closing Date</asp:LinkButton>
</th>
<th>
<asp:LinkButton runat="server" ID="lnkbtnVacancies" OnClientClick="setSortBy('Vacancies')">Vacancies</asp:LinkButton>
</th>
<th>
<asp:LinkButton runat="server" ID="lnkbtnLocation" OnClientClick="setSortBy('Location')">Location</asp:LinkButton>
</th>
<th>
<asp:LinkButton runat="server" ID="lnkbtnAgency" OnClientClick="setSortBy('Agency')">Agency</asp:LinkButton>
</th>
<th>
<asp:LinkButton runat="server" ID="lnkbtnJobCategory" OnClientClick="setSortBy('JobCategory')">Job Category</asp:LinkButton>
</th>
</tr>
</thead>
<tbody id="JOAtbody" runat="server">
<div runat="server" id="itemPlaceholder" />
</tbody>
</table>
</div>
</LayoutTemplate>
<EmptyDataTemplate>
<table style="width: 100%">
<tr><td> </td></tr>
<tr>
<td class="EmptyDataText" align="center">
No jobs found
</td>
</tr>
</table>
</EmptyDataTemplate>
<ItemTemplate>
<tr>
<td width="0px">
<asp:HyperLink ID="hlJobClass" Target="_blank" NavigateUrl='<%# Eval("JobClassURL") %>' runat="server"><%# Eval("JobClass") %></asp:HyperLink>
</td>
<td width="0px">
<asp:Label ID="lblSalary" runat="server" Text='<%# Eval("Salary") %>'></asp:Label>
</td>
<td width="0px">
<asp:HyperLink ID="hlApplicationProcess" Target="_blank" NavigateUrl='<%# Eval("ApplicationProcessURL") %>' runat="server"><%# Eval("ApplicationProcess") %></asp:HyperLink>
</td>
<td width="0px">
<asp:Label ID="lblClosingDate" runat="server" Text='<%# Eval("ClosingDate") %>'></asp:Label>
</td>
<td width="0px">
<asp:Label ID="lblVacancies" runat="server" Text='<%# Eval("Vacancies") %>'></asp:Label>
</td>
<td width="0px">
<asp:Label ID="lblLocation" runat="server" Text='<%# Eval("Location") %>'></asp:Label>
</td>
<td width="0px">
<asp:Label ID="lblAgency" runat="server" Text='<%# Eval("Agency") %>'></asp:Label>
</td>
<td width="0px" style="padding-right: 15px;">
<asp:HyperLink ID="hlJobCategory" Target="_blank" NavigateUrl='<%# Eval("JobCategoryURL") %>' runat="server"><%# Eval("JobCategory")%></asp:HyperLink>
</td>
</tr>
</ItemTemplate>
</asp:ListView>
<asp:Button ID="btnShowAll" runat="server" Text="Show All Jobs" onclick="btnShowAll_Click" visible="false"/>
<asp:Label ID="lblCategory" runat="server" Text="Search by Job Category: "></asp:Label>
<asp:DropDownList ID="ddlJobCategory" runat="server" AutoPostBack="True" onselectedindexchanged="ddlJobCategory_SelectedIndexChanged"></asp:DropDownList>
<asp:HiddenField ID="hdnSortBy" runat="server" />
</form>
</body>
</html>
</pre>

body
{
margin-left: 10px;
font-family:Arial, Helvetica, sans-serif;
min-width: 769px;
max-width: 990px;
height: 1170px;
position: relative;
}
#lvTableWrapper
{
width: 99%;
height: 420px;
overflow: auto;
font-size: small;
}
#lvTableWrapper #JOATable
{
border-collapse: separate;
border-top: none;
width: 98%;

/* IE Only */
#border-collapse: collapse;
}
#lvTableWrapper th
{
background-color: #000066;
color: White;
height: 30px;
text-align:center;
position: relative;
}
#lvTableWrapper tbody
{
overflow: auto;
height: 350px;
overflow-x: hidden;
}
#lvTableWrapper tr
{
height: 1px;
}
#lvTableWrapper th a:visited
{
color: White;
}
#lvTableWrapper th a:link
{
color: White;
}
AnswerRe: Frozen Listview Headers + IE Resize issue [modified] Pin
nathan bisges18-Feb-09 5:31
nathan bisges18-Feb-09 5:31 
GeneralRe: Frozen Listview Headers + IE Resize issue Pin
nathan bisges18-Feb-09 6:15
nathan bisges18-Feb-09 6:15 
QuestionConvert Custom Collection Object into Xml Pin
dayakar_dn13-Feb-09 7:51
dayakar_dn13-Feb-09 7:51 
AnswerRe: Convert Custom Collection Object into Xml Pin
Christian Graus13-Feb-09 8:23
protectorChristian Graus13-Feb-09 8:23 
AnswerRe: Convert Custom Collection Object into Xml Pin
Scott Dorman13-Feb-09 9:24
professionalScott Dorman13-Feb-09 9:24 
Questionexport html table in asp.net to excel [modified] Pin
saurabh2006713-Feb-09 5:12
saurabh2006713-Feb-09 5:12 
QuestionReturning current page Pin
dptalt13-Feb-09 3:46
dptalt13-Feb-09 3:46 
AnswerRe: Returning current page Pin
Mokai13-Feb-09 5:13
Mokai13-Feb-09 5:13 
GeneralRe: Returning current page Pin
Calin Tatar13-Feb-09 8:49
Calin Tatar13-Feb-09 8:49 
QuestionFile Upload Control Pin
Saba0213-Feb-09 3:36
Saba0213-Feb-09 3:36 
AnswerRe: File Upload Control Pin
Calin Tatar13-Feb-09 8:36
Calin Tatar13-Feb-09 8:36 
Questionasp:panel -&gt; table when? [modified] Pin
livez13-Feb-09 2:36
livez13-Feb-09 2:36 
AnswerRe: asp:panel -&gt; table when? Pin
Abhijit Jana13-Feb-09 3:17
professionalAbhijit Jana13-Feb-09 3:17 
GeneralRe: asp:panel -&gt; table when? Pin
livez13-Feb-09 3:33
livez13-Feb-09 3:33 
AnswerRe: asp:panel -&gt; table when? Pin
vaghelabhavesh13-Feb-09 4:02
vaghelabhavesh13-Feb-09 4:02 
GeneralRe: asp:panel -&gt; table when? Pin
livez13-Feb-09 4:09
livez13-Feb-09 4:09 
QuestionHow can we open the Popup window while clicking SWF Object Pin
Robymon13-Feb-09 2:16
Robymon13-Feb-09 2:16 

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.