因此,在我的 IssueRequest.aspx 页面上,我有一个表格,客户可以填写该表格,向我的公司发出工作请求。但是,我需要确保他们填写了他们的帐户信息,在创建帐户时默认情况下每个字段都等于“”。
我有以下字段
Customer_ID // Auto Number
Customer__First_Name // text field size 50
Customer__Last_Name // text field size 50
Customer_Address // text field size 50
Customer_City // text field size 50
Customer_State // text field size 50
Customer_Zip // text field size 50
Customer_Phone // text field size 50
Customer_Email // text field size 50
现在我创建了一个名为 CustomerInformationValidation 的 sqldatasource,它从我想在加载或预渲染完成时运行的会话(在登录时设置)获取用户 ID,但我似乎无法让它工作。
<asp:SqlDataSource ID="CustomerInformationValidation" runat="server"
ConnectionString="<%$ ConnectionStrings:HandyManTaylorConnectionString %>"
ProviderName="<%$ ConnectionStrings:HandyManTaylorConnectionString.ProviderName %>"
SelectCommand="SELECT [Customer__First_Name] AS Customer_First_Name, [Customer_Last_Name], [Customer_Address], [Customer_City], [Customer_State], [Customer_Zip], [Customer_Phone], [Customer_Email] FROM [Customer] WHERE ([Customer_ID] = ?)">
<SelectParameters>
<asp:SessionParameter Name="Customer_ID" SessionField="userID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
谁能告诉我该怎么做?