i have .aspx page have codei want error("please select hotel type") in the same line when submiit buton clicked .this error appears in lable lbl_hoteltypeCode:<table> <asp:PlaceHolder ID="PlaceHolder3" runat="server" Visible=false > <Strong>Hotel Requirement</Strong> <tr> <td colspan=1 width="30%" align=left> <asp:CheckBoxList ID="hotel_requirement_Types" RepeatColumns=3 RepeatDirection=Horizontal runat="server"> <asp:ListItem Text="Deluxe Platinum" Value=0></asp:ListItem> <asp:ListItem Text="Deluxe Gold" Value=1></asp:ListItem> <asp:ListItem Text="Deluxe Silver" Value=2></asp:ListItem> </asp:CheckBoxList> </td> <td> <asp:Label ID="lbl_hoteltype" runat="server" Text="" ForeColor="Red"></asp:Label> </td> </tr> <tr> <tr> <td width="30%"> <asp:CheckBox AutoPostBack =true ID="chk_single" Text="Single Room(s)" runat="server" /> Number of Rooms<asp:TextBox Enabled =false width="40px" ID="TextBox1" MaxLength=2 runat="server"></asp:TextBox> </td> <td colspan=2 width="70%"> <asp:Label ID="txt_numberofrooms" runat="server" Text="" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td colspan=1 width="100%"> <asp:CheckBox AutoPostBack =true ID="chk_double" Text="Double Room(s)" runat="server" /> Number of Rooms<asp:TextBox ID="TextBox2" Enabled=false MaxLength=2 runat="server"></asp:TextBox> </td> </tr> <tr> <td colspan=4 width="100%"> Check-In Date<asp:TextBox ID="txt_chkin" ReadOnly=true runat="server"></asp:TextBox> <a href="javascript:calendar_window=window.open('calendar.aspx?form1=form1.txt_chkin','calendar_window','width=554,height=488');calendar_window.focus()"><img alt="" src="images/calendar.png" /> </a> Check-In Date<asp:TextBox ID="txt_chkout" ReadOnly=true runat="server"></asp:TextBox> <a href="javascript:calendar_window=window.open('calendar.aspx?form1=form1.txt_chkout','calendar_window','width=554,height=488');calendar_window.focus()"><img alt="" src="images/calendar.png" /> </a> </td> </tr> </asp:PlaceHolder> </table>
but this label appears as align as right see the image
any urgent reply would be good


Reply With Quote
