Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<script type="text/javascript" language ="javascript"   src="formvalid()"></script><table align="center">
    <tr>
 <td colspan="2">
            
            style="background-image: removed('UI/photo_reg/bluie.jpg'); font-family: verdana; font-size: medium; font-weight: bold;" 
            height="50">
 <span style="text-decoration: blink"> <asp:Label ID ="lbl_alert"  runat ="server" 
         ForeColor="Red"  Height ="50px" Font-Size="Large" ></span> 
 </td>
    
    </tr>
   <tr>
   <td>
   <table border="2" cellpadding="1" cellspacing="1" align="center">
   <tr>
   <td class="style7">
   <asp:Image ID ="imt" runat ="server" ImageUrl ="~/UI/photo_reg/personal_information_256.png" ImageAlign ="Top" Width ="40%" ToolTip ="Personal information" />
   <span style="color: #FF0000">*Mandatory </span> </td>
   <td class="style1" align="left">
   <span style="text-decoration: blink">Personal Information</span>
   </td>
   </tr>
   <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;"> First Name </span> 
   <span style="color: #FF0000">*</span>
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_fname" runat ="server" TabIndex="1" >
   </td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Last Name </span> 
      <span style="color: #FF0000">*</span>
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_lname" runat ="server" TabIndex="2" >
   </td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Date of brith</span><span style="color: #FF0000">*</span>
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_dob" runat ="server" TabIndex="3" >
   <span></span>
   </td>
   
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Age </span> 
      <span style="color: #FF0000">*</span>
   </td>
   <td class="style1">
       <asp:TextBox ID="Txt_age" runat="server" TabIndex="4">
   </td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Gender </span> 
      <span style="color: #FF0000">*</span>
   </td>
   <td class="style1">
   <span>
                                                           <asp:DropDownList ID="Drop_gender" runat="server" TabIndex="5">
                                                                  <asp:ListItem>
                                                                  <asp:ListItem>Male
                                                               <asp:ListItem>Female
                                                           
                                                         
   
    </span></td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;"> Martial Status </span> 
      <span style="color: #FF0000">*</span>
   
   </td>
   <td class="style1">
                                                               <asp:DropDownList ID="Drop_martial" runat="server" TabIndex="6">
                                                                  
                                                                   <asp:ListItem>
                                                                  
                                                                   <asp:ListItem>Married
                                                                   <asp:ListItem>Unmarried
                                                               
   </td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Email </span> 
      <span style="color: #FF0000"> *</span>
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_email" runat ="server" TabIndex="7" >
   </td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;"> Password </span> 
      <span style="color: #FF0000">*</span>
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_pwd" runat ="server" TabIndex="8" >
   </td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;"> Re-Password </span> 
      <span style="color: #FF0000">*</span>
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_repwd" runat ="server" TabIndex="9" >
   </td>
   </tr>
    <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Your snap </span> 
      <span style="color: #FF0000">*</span>
   
   </td>
   <td class="style1">
  <asp:FileUpload ID ="upl_1" runat ="server" TabIndex="10" />
   </td>
   <td>
 <asp:ImageButton ID ="img_upl" ImageUrl ="~/UI/photo_reg/MainUploadButtonUp.png" 
           runat ="server" TabIndex="11"  />
   </td>
   </tr>
   <tr>
   <td class="style6">
   <span style="#003366;font-weight:bold;"> smile pls</span>
   </td>
   <td align="center" class="style4">
   <asp:ImageButton ID ="im1" runat ="server" Width="103px" TabIndex="12" />
   </td>
   </tr>
   <tr>
   <td style="background-image: removed('UI/photo_reg/bluie.jpg')">
       Account Information</td>
   </tr>
   <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Employee code </span> 
   <span style="color: #FF0000">*</span>
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_empcode" runat ="server" TabIndex="13" >
   <span style="#003366;font-weight:bold;"> <asp:CheckBox ID ="check_admin" 
           runat ="server"  Text ="administrator" /></span>
   </td>
   </tr>
   <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;"> Passport No</span> 
   
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_ppno" runat ="server" TabIndex="14" >
   </td>
   </tr>
   <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;"> Driving  No </span> 
 
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_driveno" runat ="server" TabIndex="15" >
   </td>
   </tr>
   <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Blood Group </span> 
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_blg" runat ="server" TabIndex="16" >
   </td>
   </tr>
   <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;"> Position</span> 
    
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="txt_position" runat ="server" TabIndex="17" >
   </td>
   </tr>
   <tr>
   <td class="style7">
   <span style="#003366;font-weight:bold;">  Date Of Joining </span> 
   <span style="color: #FF0000">*</span>
   
   </td>
   <td class="style1">
   <asp:TextBox ID ="Txt_doj" runat ="server" TabIndex="18" >
   </td>
   </tr>
   <tr>
   <td>
      style="background-image: removed('UI/photo_reg/bluie.jpg')">
       Address Information</td>
 
   </tr>
   <tr>
   <td>
   <span style="#003366;font-weight:bold;">Address 1</span>
   </td>
   <td class="style1">
    <asp:TextBox ID ="Txt_add1" runat ="server" TabIndex="19" >
   </td>
   </tr>
    <tr>
   <td>
   <span style="#003366;font-weight:bold;">Address 2</span>
   </td>
   <td class="style1">
    <asp:TextBox ID ="Txt_add2" runat ="server" TabIndex="20" >
   </td>
   </tr>
    <tr>
   <td>
   <span style="#003366;font-weight:bold;">Address 3</span>
   </td>
   <td class="style1">
    <asp:TextBox ID ="Txt_add3" runat ="server" TabIndex="21" >
   </td>
   </tr>
    <tr>
   <td>
   <span style="#003366;font-weight:bold;">Address 4</span>
   </td>
   <td class="style1">
    <asp:TextBox ID ="Txt_add4" runat ="server" TabIndex="22" >
   </td>
   </tr>
    <tr>
   <td>
   <span style="#003366;font-weight:bold;">Website</span>
   </td>
   <td class="style1">
    <asp:TextBox ID ="Txt_web" runat ="server" TabIndex ="23" >
   </td>
   </tr>
    <tr>
   <td>
   <span style="#003366;font-weight:bold;">TelePhone</span>
   </td>
   <td class="style1">
    <asp:TextBox ID ="Txt_tele" runat ="server" TabIndex ="24" MaxLength="15" >
   </td>
   </tr>
    <tr>
   <td>
   <span style="#003366;font-weight:bold;">Mobile No</span>
      <span style="color: #FF0000">*</span>
   </td>
   <td class="style1">
    <asp:TextBox ID ="Txt_mbo" runat ="server" TabIndex ="25" MaxLength="10" >
   </td>
   </tr>
   <tr>
   <td align="center">
   <asp:ImageButton TabIndex ="26" ID ="img_sub" onclick="return valid();" 
runat ="server" 
           ImageUrl ="~/UI/photo_reg/submit.gif"  />
   </td>
   <td align="center" class="style1">
   <asp:ImageButton  TabIndex ="27" ID="img_reset" runat ="server" 
           ImageUrl ="~/UI/photo_reg/blue_reset_button_2.gif" />
   </td>
   </tr>
   </table>
   </td>
   </tr>
    </table>
Posted
Comments
Sunasara Imdadhusen 22-Nov-11 7:04am    
Please provide only few lines of code that you can say these are problematic instead of placing whole code!

Can you elaborate your problem in detail?
Vasim889 25-Nov-11 3:34am    
my javascript are work properly in aspx page but not work in user interface controls.Errors : not intialize formvalid();
Vasim889 25-Nov-11 3:45am    
my problem is javascript not validate a user interface controls.how do create uicontrols with javascript validations?????????


[no name] 22-Nov-11 10:54am    
What errors?

1 solution

where is the javascript function for validation?

Example for UI control with Javascript validation:
http://www.c-sharpcorner.com/UploadFile/purankaushal/103222006013805AM/1.aspx[^]
 
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