By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,304 Members | 3,201 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,304 IT Pros & Developers. It's quick & easy.

Fieldset

P: 73
hi all,
am working on a project in asp.net
in designing means in source code i used fieldsets. while design time it is appering normally, but in run time the positions of that fildsets were changing. sometimes one fieldset is overlaping with other fieldset, some times the controls which are in that fieldset were not appearing, and the positions of the controls also changing. some times fieldsets were disappearing.
please solve why this is happening.

Thank You
Naren
Jan 19 '08 #1
Share this Question
Share on Google+
2 Replies


kenobewan
Expert 2.5K+
P: 4,871
The simpliest exlanation is that you have inserted the tags incorrectly, please show us. Thanks.
Jan 19 '08 #2

P: 73
hi all,
am working on a project in asp.net
in designing means in source code i used fieldsets. while design time it is appering normally, but in run time the positions of that fildsets were changing. sometimes one fieldset is overlaping with other fieldset, some times the controls which are in that fieldset were not appearing, and the positions of the controls also changing. some times fieldsets were disappearing.
please solve why this is happening.
the folloeing code i wrote in script in runtime fieldset3, fieldset4 were not appearing
<fieldset id="Fieldset1" language="javascript" onclick="return FIELDSET1_onclick()"
style="height: 466px; border-bottom: darkgray 1px solid; position:absolute ; left: 16px;
width: 885px; top: 134px;">
<FIELDSET style="Z-INDEX: 103; LEFT: 22px; WIDTH: 705px; BORDER-BOTTOM: darkgray 1px solid;
POSITION: absolute; TOP: 29px; HEIGHT: 171px" id="Fieldset2" language="javascript"
onclick="return FIELDSET2_onclick()">
<LEGEND style="COLOR: black"><B><U>Branch Master</U></B></LEGEND>
<DIV style="BORDER-TOP-WIDTH: thick; OVERFLOW-Y: scroll; LEFT: 0px; BORDER-BOTTOM-WIDTH: thick;
WIDTH: 687px; POSITION: absolute; TOP: 26px; HEIGHT: 147px" id="Div1" class="FixedHeader"
onclick="return Div1_onclick()">
<TABLE style="BORDER-COLLAPSE: collapse" id="Table1" cellSpacing=0 rules=all border=1>
<asp:GridView id="Gridview1" runat="server" Height="1px" Width="690px" CellSpacing="1"
CellPadding="1" BorderWidth="1px" AutoGenerateColumns="False">
<Columns>
<asp:CommandField HeaderText="Select" ShowSelectButton="True" />
<asp:TemplateField HeaderText="Tran No" Visible="False">
<ItemTemplate>
<asp:Label ID="LabelTno" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ID") %>'></asp:Label>
</ItemTemplate>
<ControlStyle Width="10px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Branch Name">
<ItemTemplate>
<asp:Label ID="LabelBrName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "br_name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Branch Address">
<ItemTemplate>
<asp:Label ID="labelAdd" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Address") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Phone">
<ItemTemplate>
<asp:Label ID="LabelPhNo" runat="server" Text='<%# DataBinder.eval(container.dataitem,"Phone_No") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>

</asp:GridView>
</TABLE>
</DIV>
</FIELDSET>

<FIELDSET style="LEFT: 19px; WIDTH: 653px; BORDER-BOTTOM: darkgray 1px solid; POSITION: absolute;
TOP: 215px; HEIGHT: 187px" id="Fieldset3" lang="jv" onclick="return Fieldset3_onclick()">
<DIV style="BORDER-TOP-WIDTH: thick; LEFT: 0px; BORDER-BOTTOM-WIDTH: thick; WIDTH: 653px;
POSITION: absolute; TOP: 0px; HEIGHT: 187px" id="Div2" onclick="return Div1_onclick()">

<asp:Label style="Z-INDEX: 100; LEFT: 136px; POSITION: absolute; TOP: 33px" id="Label10" runat="server" ForeColor="black" Text="Branch Name"></asp:Label>
<asp:TextBox style="Z-INDEX: 101; LEFT: 256px; POSITION: absolute; TOP: 33px" id="TxtBranchName" tabIndex=2 onkeypress="Validateaplhabet()" runat="server" Width="155px" BackColor="#FFFFC0"></asp:TextBox>
<asp:Label style="Z-INDEX: 102; LEFT: 136px; POSITION: absolute; TOP: 8px" id="Label4" runat="server" Text="Branch Code"></asp:Label>
<asp:TextBox style="Z-INDEX: 103; LEFT: 256px; POSITION: absolute; TOP: 8px" id="TxtBr_Code" runat="server" Width="155px" TabIndex="1" BackColor="Gainsboro" ReadOnly="True"></asp:TextBox>
<asp:Label style="Z-INDEX: 104; LEFT: 136px; POSITION: absolute; TOP: 148px" id="Label5" runat="server" Text="Contact Person"></asp:Label>
<asp:Label style="Z-INDEX: 105; LEFT: 136px; POSITION: absolute; TOP: 123px" id="Label6" runat="server" Text="Phone"></asp:Label>
<asp:Label style="Z-INDEX: 106; LEFT: 136px; POSITION: absolute; TOP: 58px" id="Label7" runat="server" Text="Address"></asp:Label>
<asp:TextBox style="Z-INDEX: 107; LEFT: 256px; POSITION: absolute; TOP: 148px" id="TxtContactPerson" runat="server" Width="155px" TabIndex="5"></asp:TextBox>
<asp:TextBox style="Z-INDEX: 108; LEFT: 256px; POSITION: absolute; TOP: 123px" id="TxtPhone" runat="server" Width="155px" TabIndex="4" BackColor="#FFFFC0"></asp:TextBox>
<asp:TextBox style="Z-INDEX: 109; LEFT: 256px; POSITION: absolute; TOP: 58px" id="TxtAddress" runat="server" Height="56px" Width="155px" TextMode="MultiLine" TabIndex="3"></asp:TextBox>
<asp:TextBox style="Z-INDEX: 110; LEFT: 18px; POSITION: absolute; TOP: 1px" id="TxtID" runat="server" Width="16px" Visible="False"></asp:TextBox>
<asp:TextBox style="Z-INDEX: 111; LEFT: 18px; POSITION: absolute; TOP: 22px" id="TxtCreatedBy" runat="server" Width="16px" Visible="False"></asp:TextBox>
<asp:TextBox style="Z-INDEX: 112; LEFT: 18px; POSITION: absolute; TOP: 73px" id="TxtModifiedBy" runat="server" Width="16px" Visible="False"></asp:TextBox>
<asp:TextBox style="Z-INDEX: 113; LEFT: 18px; POSITION: absolute; TOP: 48px" id="TxtCreatedDate" runat="server" Width="16px" Visible="False"></asp:TextBox>
<asp:TextBox style="Z-INDEX: 115; LEFT: 18px; POSITION: absolute; TOP: 100px" id="TxtModifiedDate" runat="server" Width="16px" Visible="False"></asp:TextBox>
</DIV>
</FIELDSET>

<fieldset style="left: 750px; width: 90px; position: absolute; top: 37px; height: 127px"
id="FIELDSET4" onclick="return FIELDSET4_onclick()">
<asp:ImageButton ID="ImageButton5" runat="server" BorderColor="Tan" BorderStyle="Outset"
BorderWidth="2px" Height="21px" ImageUrl="~/add.gif" Style="left: 2px;
position: absolute; top: 8px" Width="26px" />
<asp:Button ID="btnadd" runat="server" Enabled="False" Font-Bold="True" Height="27px"
Style="left: 34px; position: absolute; top: 6px" TabIndex="3" Text="Add" Width="64px" />
<asp:Button ID="btnchange" runat="server" Enabled="False" Font-Bold="True" Height="27px"
Style="left: 36px; position: absolute; top: 37px" TabIndex="4" Text="Change"
Width="62px" />
<asp:Button ID="btndelete" runat="server" CausesValidation="False" Enabled="False"
Font-Bold="True" Height="27px" Style="left: 38px; position: absolute; top: 70px"
TabIndex="5" Text="Delete" Width="60px" />
<asp:ImageButton ID="ImageButton7" runat="server" BorderColor="Tan" BorderStyle="Outset"
BorderWidth="2px" Height="21px" ImageUrl="~/delete.gif" Style="left: 3px;
position: absolute; top: 72px" Width="26px" />
<asp:ImageButton ID="ImageButton9" runat="server" BorderColor="Tan" BorderStyle="Outset"
BorderWidth="2px" Height="21px" ImageUrl="~/modify.gif" Style="left: 3px;
position: absolute; top: 40px" Width="26px" />
<asp:ImageButton ID="ImageButton10" runat="server" BorderColor="Tan" BorderStyle="Outset"
BorderWidth="2px" Height="20px" ImageUrl="~/exit.gif" Style="left: 3px;
position: absolute; top: 104px" Width="26px" />
<asp:Button ID="BtnExit" runat="server" CausesValidation="False" Font-Bold="True"
Height="27px" Style="left: 36px; position: absolute; top: 101px" TabIndex="6"
Text="Exit" Width="61px" />
</fieldset>

</fieldset>

Thankyou
Narendra
Jan 19 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.