So on my IssueRequest.aspx page I have a form that the customer can fillout that issues a work request to my company. However, I need to make sure that they filled out their account info which by default upon account creation equals "" in each field.
I have the following fields
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
Now I made a sqldatasource named CustomerInformationValidation which gets the userID from the session (set at login) which I would like to run upon load or prerendercomplete but I cannot seem to get it to work.
<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>
could anyone tell me how to do this?