This is my sqldatasource this is on the page:
How do I access the selected UserName in in the Code Behind that might look like this...
...where DS_CheckUserNam e.UserName is the UserName selected in the code above?
Code:
<asp:sqldatasource runat="server" ID="DS_CheckUserName" ConnectionString="<%$ ConnectionStrings:SQL2005_355184_ConnectionString %>" SelectCommand="SELECT [UserName] FROM [TBL_Poets] WHERE ([UserName] = @UserName)"> <SelectParameters> <asp:FormParameter FormField="UserName" Name="UserName" Type="String" /> </SelectParameters>
Code:
if (UserName.Text != [B]DS_CheckUserName.UserName[/B])
Comment