Click here to Skip to main content
16,016,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,,

I am designing a web form using asp.net 2.0. When i added my page inside update panel , the all codes are changed in a single line and the runtime code is also adding... Sorry i can't explain clearly.. the sample code may help to understand my problem... & and _designer:wfdid="w124" what's this why its coming in my source when i stopped debugging..


ASP.NET
<asp:Panel id="StudentAdmission_Panel" runat="server" Width="700px" HorizontalAlign="Center" BorderStyle="Solid"><br /><center><h2>STUDENT ADMISSION <big>&</big> MASTER</h2></center><asp:Panel id="Child_Panel" runat="server" Width="650px" HorizontalAlign="Center" __designer:wfdid="w124"><table><tbody><tr><td align="left"><asp:Label id="lblclassID" runat="server" Text="Class ID" __designer:wfdid="w125"></td><td align="left"><asp:DropDownList id="ddlclassID" runat="server" Width="130px" __designer:wfdid="w126"></td><td><asp:Label id="lblsection" runat="server" Text="Section" __designer:wfdid="w127"></td><td><asp:DropDownList id="ddlsection" runat="server" Width="100px" __designer:wfdid="w128"></td><td><asp:Label id="lbladmissiondate" runat="server" Text="Admission Date" __designer:wfdid="w129"></td><td><asp:TextBox id="txtdate" runat="server" Width="125px" __designer:wfdid="w130"></td></tr><tr><td align="left"><asp:Label id="lblstudentid" runat="server" Text="Student ID" __designer:wfdid="w131"></td><td align="left"><asp:TextBox id="txtstudentid" runat="server" Width="125px" __designer:wfdid="w132"></td><td><asp:ImageButton id="imgbtn_search" runat="server" ImageAlign="Left" ImageUrl="~/Images/Find.gif" __designer:wfdid="w133"></td><td></td><td align="left"><asp:Label id="lblseatType" runat="server" Text="Seat Type" __designer:wfdid="w134"></td><td><asp:DropDownList id="ddlseatType" runat="server" Width="130px" __designer:wfdid="w135"></td></tr><tr><td align="left"><asp:Label id="lblregno" runat="server" Text="Reg.No" __designer:wfdid="w136"></td><td align="left"><asp:DropDownList id="ddlregno" runat="server" Width="130px" __designer:wfdid="w137"></td><td></td><td></td><td align="left"><asp:Label id="lblrollno" runat="server" Text="Roll No" __designer:wfdid="w138"></td><td><asp:TextBox id="txtrollno" runat="server" Width="125px" __designer:wfdid="w139"></td></tr><tr><td><asp:Label id="lblStudentName" runat="server" Text="Student Name" __designer:wfdid="w140"></td><td><asp:TextBox id="txtstudentname" runat="server" __designer:wfdid="w141"></td><td></td><td></td><td align="left"><asp:Label id="lblstatus" runat="server" Text="Status" __designer:wfdid="w142"></td><td><asp:DropDownList id="ddlstatus" runat="server" Width="130px" __designer:wfdid="w143"></td></tr></tbody></table> <br />
Posted
Updated 11-Nov-11 20:11pm
v2
Comments
[no name] 12-Nov-11 2:16am    
What version of visual studio are you using?

Some versions of visual studio have been notorious for messing up the markup. The only answer is to not use the designer.
 
Share this answer
 
make sure alwayz before doing any changes in source design comments the update panel alwayz and after doing changes uncomments it

to make proper your design comments the update panel and press ctrl+k+d together,your design will back to actuall mode

try it definatly it will work
 
Share this answer
 
Replace ur code...

<asp:panel id="StudentAdmission_Panel" runat="server" width="700px" horizontalalign="Center" borderstyle="Solid" xmlns:asp="#unknown"><br /><center><h2>STUDENT ADMISSION <big>&</big> MASTER</h2></center><asp:panel id="Child_Panel" runat="server" width="650px" horizontalalign="Center"><table><tbody><tr><td align="left"><asp:label id="lblclassID" runat="server" text="Class ID" /></td><td align="left"><asp:dropdownlist id="ddlclassID" runat="server" width="130px" /></td><td><asp:label id="lblsection" runat="server" text="Section" /></td><td><asp:dropdownlist id="ddlsection" runat="server" width="100px" /></td><td><asp:label id="lbladmissiondate" runat="server" text="Admission Date" /></td><td><asp:textbox id="txtdate" runat="server" width="125px" /></td></tr><tr><td align="left"><asp:label id="lblstudentid" runat="server" text="Student ID" /></td><td align="left"><asp:textbox id="txtstudentid" runat="server" width="125px" /></td><td><asp:imagebutton id="imgbtn_search" runat="server" imagealign="Left" imageurl="~/Images/Find.gif" /></td><td></td><td align="left"><asp:label id="lblseatType" runat="server" text="Seat Type" /></td><td><asp:dropdownlist id="ddlseatType" runat="server" width="130px" /></td></tr><tr><td align="left"><asp:label id="lblregno" runat="server" text="Reg.No" /></td><td align="left"><asp:dropdownlist id="ddlregno" runat="server" width="130px" /></td><td></td><td></td><td align="left"><asp:label id="lblrollno" runat="server" text="Roll No" /></td><td><asp:textbox id="txtrollno" runat="server" width="125px" /></td></tr><tr><td><asp:label id="lblStudentName" runat="server" text="Student Name" /></td><td><asp:textbox id="txtstudentname" runat="server" /></td><td></td><td></td><td align="left"><asp:label id="lblstatus" runat="server" text="Status" /></td><td><asp:dropdownlist id="ddlstatus" runat="server" width="130px" /></td></tr></tbody></table> <br /></asp:panel></asp:panel>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900