Click here to Skip to main content
16,007,814 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridview Event Problem Pin
ais0713-Feb-09 18:25
ais0713-Feb-09 18:25 
AnswerRe: Gridview Event Problem Pin
Calin Tatar14-Feb-09 14:15
Calin Tatar14-Feb-09 14:15 
QuestionHow to avoid Videos being cached [modified] Pin
.NET- India 13-Feb-09 17:49
.NET- India 13-Feb-09 17:49 
AnswerRe: How to avoid Videos being cached Pin
ABitSmart13-Feb-09 21:17
ABitSmart13-Feb-09 21:17 
GeneralRe: How to avoid Videos being cached [modified] Pin
.NET- India 13-Feb-09 21:22
.NET- India 13-Feb-09 21:22 
QuestionDOMAttrModified(firefox) vs propertychange(ie) Pin
Alomgir Miah A13-Feb-09 11:31
Alomgir Miah A13-Feb-09 11:31 
AnswerRe: DOMAttrModified(firefox) vs propertychange(ie) Pin
ABitSmart13-Feb-09 21:03
ABitSmart13-Feb-09 21:03 
GeneralRe: DOMAttrModified(firefox) vs propertychange(ie) Pin
Alomgir Miah A14-Feb-09 7:54
Alomgir Miah A14-Feb-09 7:54 
Questionshow each user pages which can access, without using membership or roles Pin
hnj_judge13-Feb-09 10:29
hnj_judge13-Feb-09 10:29 
AnswerRe: show each user pages which can access, without using membership or roles Pin
Christian Graus13-Feb-09 11:00
protectorChristian Graus13-Feb-09 11:00 
GeneralRe: show each user pages which can access, without using membership or roles Pin
hnj_judge13-Feb-09 11:31
hnj_judge13-Feb-09 11:31 
GeneralRe: show each user pages which can access, without using membership or roles Pin
Christian Graus13-Feb-09 22:35
protectorChristian Graus13-Feb-09 22:35 
Questionnew line in nvarchar Pin
radupopescu77713-Feb-09 10:03
radupopescu77713-Feb-09 10:03 
AnswerRe: new line in nvarchar Pin
Christian Graus13-Feb-09 10:15
protectorChristian Graus13-Feb-09 10:15 
GeneralRe: new line in nvarchar Pin
radupopescu77713-Feb-09 10:17
radupopescu77713-Feb-09 10:17 
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 

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.