2010-07-07 6 views
0
                " SelectCommand =" select cas lorsque len (T.hallticketno) = 1, alors '0000' + convertir (varchar (20), T. hallticketno) lorsque len (T.hallticketno) = 2 alors '000' + Convert (varchar (20), T.hallticketno) lorsque len (T.hallticketno) = 3 puis '00' + Convert (varchar (20), T.hallticketno) lorsque len (T.hallticketno) = 4 puis '0' + Convert (varchar (20), T.hallticketno) lorsque len (T.hallticketno) = 5 puis Convert (varchar (20), T.hallticketno) fin comme Hallticketno , T.Studentname, (sélectionnez senseiname de senseimaster où senseiid = T.senseiID) comme SenseiName, (sélectionnez kyuname de kyumaster où kyuid = T.kyuid) comme Kyu, (sélectionnez groupname de groupmaster où groupid = T.groupid) comme GroupName, T.Fathername, convert (varchar (20), T.dob, 103) comme Dob, cas où T.sex = 0 alors 'Male' else 'Female' se termine par Genre de applicationForm T où Franchiseid = @ FRANCHISEID et Competitionid = @ competitionId commande par groupname « > -%> CompanyName Ville -%>
<table id ="sample " border ="1px" visible ="false" >  
    <tr> 
    <asp:Label ID="Label13" runat ="server" Font-Bold="true" Text ='<%#Bind(CompetitionName)%>' ></asp:Label><td style="width: 100px">    
     </td> 
     <td style="width: 106px"> 
     </td> 
     <td style="width: 127px"> 
     </td> 
     <td style="width: 129px"> 
     </td> 
    </tr>  
    <tr> 
     <td style="width: 100px"> 
      Venue</td> 
     <td style="width: 106px"> 
     <asp:Label ID="Label14" runat ="server" Font-Bold="true" Text ='<%Bind(competitionaddress) %>' ></asp:Label> 
     </td> 
     <td style="width: 127px"> 
      Date of Competition</td> 
     <td style="width: 129px"> 
     <asp:Label ID ="Label15" runat ="server" ></asp:Label> 
     </td> 
    </tr> 
    <tr> 
     <td style="width: 100px"> 
      Hall Ticket No</td> 
     <td style="width: 106px"> 
     <asp:Label Font-Bold="true" Font-Size="X-Large" ID="Label16" runat="server" ></asp:Label> 
     </td> 
     <td style="width: 127px"> 
      Group</td> 
     <td style="width: 129px"> 
     <asp:Label ID="Label17" runat="server" Font-Bold="true"></asp:Label> 
     <%--<asp:Label ID="Lable1" runat ="server" Font-Bold="true" Text ='<%Bind("GroupName")%>'></asp:Label>--%> 
     </td> 
    </tr> 
    <tr> 
     <td style="width: 100px"> 
      Student Name</td> 
     <td style="width: 106px"> 
     <asp:Label ID ="Lable18" runat ="server" ></asp:Label> 
     </td> 
     <td style="width: 127px"> 
      Kyu</td> 
     <td style="width: 129px"> 
     <asp:Label ID="Lable19" runat ="server" ></asp:Label> 
     </td> 
    </tr> 
    <tr> 
     <td rowspan="3" style="width: 100px"> 
     </td> 
     <td style="width: 106px"> 
     <asp:Label ID ="Lable20" runat ="server" ></asp:Label> 
     </td> 
     <td style="width: 127px"> 
      Franchise Name</td> 
     <td style="width: 129px"> 
     <asp:Label ID ="Lable21" runat ="server" ></asp:Label> 
     </td> 
    </tr> 
    <tr> 
     <td style="width: 106px"> 
     </td> 
     <td style="width: 127px"> 
      Sensei's Name</td> 
     <td style="width: 129px"> 
     <asp:Label ID ="Lable22" runat ="server" ></asp:Label> 
     </td> 
    </tr> 
    <tr> 
     <td style="width: 106px"> 
     </td> 
     <td style="width: 127px"> 
     </td> 
     <td style="width: 129px"> 
     </td> 
    </tr> 
    <tr> 
     <td style="width: 100px"> 
     </td> 
     <td style="width: 106px"> 
      Signature of HO</td> 
     <td style="width: 127px"> 
     </td> 
     <td style="width: 129px"> 
      Signature of Student</td> 
    </tr> 
</table> 


<%--</asp:Repeater> --%> 

façon à se lier à la forme de données dans la base de donnée C#

si je clique sur le hall Ticket alors les données sholud être lié au domaine particulier ... comment faire des amis plz me aider ...

Répondre

0

Vous devez utiliser un contrôle à l'appui DataBind, enfermant votre table , comme un FormView.

+0

plz me envoyer un exemple ami – Lingesh

+0

ici est: http://msdn.microsoft.com/en-us/library/bb288036.aspx – onof

+0

Merci ami son utile – Lingesh

Questions connexes