Click here to Skip to main content
15,887,676 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how i get the html page in the iframe using java script(its urgent plz help me) Pin
M LN Rao5-Nov-07 18:27
M LN Rao5-Nov-07 18:27 
GeneralRe: how i get the html page in the iframe using java script(its urgent plz help me) Pin
jagan1235-Nov-07 18:59
jagan1235-Nov-07 18:59 
QuestionAn application that will get the updates from server automatically Pin
payback5-Nov-07 17:21
payback5-Nov-07 17:21 
AnswerRe: An application that will get the updates from server automatically Pin
Christian Graus5-Nov-07 17:31
protectorChristian Graus5-Nov-07 17:31 
QuestionProduce Graph Pin
solarthur015-Nov-07 15:06
solarthur015-Nov-07 15:06 
AnswerRe: Produce Graph Pin
Christian Graus5-Nov-07 15:41
protectorChristian Graus5-Nov-07 15:41 
GeneralRe: Produce Graph Pin
solarthur016-Nov-07 2:50
solarthur016-Nov-07 2:50 
QuestionFormatting Gridview Pin
simsen5-Nov-07 11:05
simsen5-Nov-07 11:05 
Hi,

I have two problems formatting my gridview:

1) In IE7 the gridview doesn't show underlines for the headertext in the gridview - in Firefox it is shown.
2) In Firefox the gridlines for Columns are shown. In IE7 they are gone.

I need it so, that I get the underlines for the headertext in IE7 and that the gridlines for the columns are not shown in Firefox.

I cann't figure out, wich settings I need to make, to make this happens.

I hope somebody can help me.

My code for the gridview are:
<asp:GridView SkinID="GeneralView" ID="grdEmployeeList" runat="server" DataKeyNames="employeeId" OnRowCommand="grdEmployeeList_RowCommand" OnPageIndexChanging="grdEmployeeList_PageIndexChanging" OnRowDataBound="grdEmployeeList_RowDataBound" OnSorting="grdEmployeeList_Sorting" AutoGenerateColumns="False" Width="850px" AllowPaging="True" PageSize="3" AllowSorting="True"><br />
                                                    <Columns><br />
                                                        <asp:BoundField DataField="employeeId" HeaderText="Bruger id" SortExpression="employeeId"><br />
                                                            <HeaderStyle Width="70px" BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
                                                            <ItemStyle BorderStyle="None" BorderWidth="0" BorderColor="Transparent" /><br />
                                                        </asp:BoundField><br />
                                                        <asp:BoundField DataField="employeeName" HeaderText="Brugernavn" SortExpression="employeeName"><br />
                                                            <HeaderStyle Width="150px" BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
                                                            <ItemStyle BorderStyle="None" BorderWidth="0" BorderColor="Transparent" /><br />
                                                        </asp:BoundField><br />
                                                        <asp:BoundField DataField="employeeType" HeaderText="Brugertype" SortExpression="employeeType"><br />
                                                            <HeaderStyle Width="200px" BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
                                                            <ItemStyle BorderStyle="None" BorderWidth="0" /><br />
                                                        </asp:BoundField><br />
                                                        <asp:TemplateField><br />
                                                            <ItemTemplate><br />
                                                                <asp:ImageButton ID="ibtnDeleteEmployee" runat="server" CommandArgument='<%# Eval("employeeId")%>' CommandName="DeleteEmployee" ImageUrl="../Images/Delete.gif" OnClientClick="return confirm('Er du sikker på, du vil slette produktet?');" /><br />
                                                            </ItemTemplate><br />
                                                            <HeaderStyle Width="80px" BorderStyle="None" ForeColor="#2F5673" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
                                                            <ItemStyle HorizontalAlign="Center" BorderStyle="None" BorderWidth="0" /><br />
                                                        </asp:TemplateField><br />
                                                        <asp:TemplateField><br />
                                                            <ItemTemplate><br />
                                                                <asp:ImageButton ID="ibtnShowEmployee" runat="server" CommandArgument='<%# Eval("employeeId")%>' CommandName="ShowEmployee" ImageUrl="../Images/Vis.gif" /><br />
                                                            </ItemTemplate><br />
                                                            <HeaderStyle Width="80px"  BorderStyle="None" ForeColor="#2F5673" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
                                                            <ItemStyle HorizontalAlign="Center" BorderStyle="None" BorderWidth="0" /><br />
                                                        </asp:TemplateField><br />
                                                    </Columns><br />
                                                    <PagerTemplate><br />
                                                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%"><br />
                                                            <tr><br />
                                                                <td id="firstcell" runat="server" colspan="4" style="text-align: right; border-top-style: none; border-top-width: 0px;"><br />
                                                                    <asp:Label ID="Label2" runat="server" CssClass="pagingtext" Text="Viser"></asp:Label> <asp:Label ID="LabelStartRowNo" runat="server" CssClass="pagingtext" Text=""></asp:Label><asp:Label ID="Label3" runat="server" CssClass="pagingtext" Text="-"></asp:Label><asp:Label ID="LabelEndRowNo" runat="server" CssClass="pagingtext" Text=""></asp:Label> <asp:Label ID="Label4" runat="server" CssClass="pagingtext" Text="af"></asp:Label> <asp:Label ID="LabelRowCount" runat="server" CssClass="pagingtext" Text=""></asp:Label> <asp:Label ID="Label5" runat="server" CssClass="pagingtext" Text="brugere"></asp:Label><br />
                                                                </td><br />
                                                            </tr><br />
                                                            <tr style="height: 4px;"><br />
                                                                <td colspan="3"><br />
                                                                </td><br />
                                                            </tr><br />
                                                            <tr><br />
                                                                <td style="width: 700px"></td><br />
                                                                <td id="lastcell" runat="server" style="text-align: right; border-top-style: none; border-top-width: 0px;"><br />
                                                                    <asp:LinkButton ID="LinkButtonPreviousPage" ForeColor="#FFFFFF" runat="server" CssClass="pagingtext" CommandName="ChangePage" Text="Forrige"></asp:LinkButton> <br />
                                                                </td><br />
                                                                <td id="paginglinks" runat="server" style="text-align: right"></td><br />
                                                                <td id="lastcel2" runat="server" style="text-align: right;"><asp:LinkButton ID="LinkButtonNextPage" ForeColor="#FFFFFF" CssClass="pagingtext" runat="server" CommandName="ChangePage" Text="Næste"></asp:LinkButton> </td><br />
                                                            </tr><br />
                                                        </table>                                                    <br />
                                                    </PagerTemplate><br />
                                                    <HeaderStyle /><br />
                                                    <PagerStyle /><br />
                                                    <AlternatingRowStyle />   <br />
                                                    <RowStyle /><br />
                                                </asp:GridView>

My Code in the skin file is:
<asp:GridView SkinID="GeneralView" runat="server"><br />
<br />
    <PagerStyle BackColor="#2F5673" ForeColor="#FFFFFF" HorizontalAlign="Center" Height="15px" /><br />
    <RowStyle BackColor="#FFFFFF" BorderStyle="None" /><br />
    <AlternatingRowStyle BackColor="#F3F7FA" /><br />
    <HeaderStyle BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" />           <br />
    <br />
</asp:GridView>


Kind regards,
simsen Smile | :)
QuestionGridview delete giving "Specified argument was out of the range of valid values" exception Pin
AdamMcKee5-Nov-07 10:46
AdamMcKee5-Nov-07 10:46 
AnswerRe: Gridview delete giving "Specified argument was out of the range of valid values" exception Pin
Imran Khan Pathan5-Nov-07 18:36
Imran Khan Pathan5-Nov-07 18:36 
AnswerRe: Gridview delete giving "Specified argument was out of the range of valid values" exception Pin
krubin925-Jun-10 12:46
krubin925-Jun-10 12:46 
QuestionHow i can import tables from another DB ? Pin
sofy20085-Nov-07 10:32
sofy20085-Nov-07 10:32 
AnswerRe: How i can import tables from another DB ? Pin
Colin Angus Mackay5-Nov-07 11:07
Colin Angus Mackay5-Nov-07 11:07 
GeneralRe: How i can import tables from another DB ? Pin
sofy20086-Nov-07 23:32
sofy20086-Nov-07 23:32 
QuestionPopulating Hidden Fields Pin
ffowler5-Nov-07 7:37
ffowler5-Nov-07 7:37 
AnswerRe: Populating Hidden Fields Pin
Christian Graus5-Nov-07 8:12
protectorChristian Graus5-Nov-07 8:12 
GeneralRe: Populating Hidden Fields Pin
ffowler5-Nov-07 8:41
ffowler5-Nov-07 8:41 
GeneralRe: Populating Hidden Fields Pin
Christian Graus5-Nov-07 8:50
protectorChristian Graus5-Nov-07 8:50 
GeneralRe: Populating Hidden Fields Pin
ffowler5-Nov-07 8:52
ffowler5-Nov-07 8:52 
GeneralRe: Populating Hidden Fields Pin
Christian Graus5-Nov-07 8:59
protectorChristian Graus5-Nov-07 8:59 
Questionhow can emulate button click in a site in my ASP.NET code? Pin
B.A5-Nov-07 7:04
B.A5-Nov-07 7:04 
AnswerRe: how can emulate button click in a site in my ASP.NET code? Pin
Christian Graus5-Nov-07 8:54
protectorChristian Graus5-Nov-07 8:54 
GeneralRe: how can emulate button click in a site in my ASP.NET code? Pin
B.A5-Nov-07 9:31
B.A5-Nov-07 9:31 
Questionreload page after filewatcher event Pin
Barbarus5-Nov-07 5:57
Barbarus5-Nov-07 5:57 
AnswerRe: reload page after filewatcher event Pin
Pete O'Hanlon7-Nov-07 1:58
mvePete O'Hanlon7-Nov-07 1:58 

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.