Advertisement
Advertisement
| 07.24.2008 at 07:18AM PDT, ID: 23592153 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: |
Aspx:
<asp:SqlDataSource ID="SqlDataSourceDependent" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
InsertCommand="INSERT INTO ENROLL.ENR02(E2GRP, E2SSN, E2DSSN, E2NAML, E2NAMF, E2NAMM, E2DOB, E2EFF, E2TRM, E2SEXC, E2RELC, E2QEVN, E2OTHI, E2FTS, E2FTSE, E2FTST) VALUES (,,,,,,,,,,,,,,,)">
<InsertParameters>
<asp:QueryStringParameter Name="newparameter" QueryStringField="grpId" />
<asp:QueryStringParameter Name="newparameter" QueryStringField="memId" />
</InsertParameters>
</asp:SqlDataSource>
<table align="left"bgcolor="ffff99" width="75%">
<tr bgcolor="ffff99">
<td colspan="4" align="center"><asp:Button ID="ButtonAddDepend"
onclick="Dependent_Inserted" runat="server" Text="Add Dependent"
Height="25px" Width="102px"
/></td>
</tr>
</table>
Code Behind:
Protected Sub Dependent_Inserted(ByVal sender As Object, ByVal e As System.EventArgs) Handles Dependent.Inserted
SqlDataSourceDependent.Insert()
End Sub
|