Hi,
newbie here, please excuse my basic knowledge. Also, if I have posted this in the wrong location, please advise. Thanks.
I have a membership website using ASP.net and VB code behind
I have an SQL database called “rcm” which has a table called “teaminfo” and is structured as follows.
UniqueID
Username
Teamname
I have a page with a textbox and a button.
I want to the user to type their preferred teamname in the textbox and click the button.
Psuedo code for the button click event.
check if teamname exists in table
if teamname exists then Msgbox “team name taken”; end
else
create new table entry with UniqueID (sequence number), Username (taken from ASP.net given that user is logged in, the page will not be available to non-members) and Teamname from the textbox.
End
Any help would be greatly appreciated. Cheers.
James
newbie here, please excuse my basic knowledge. Also, if I have posted this in the wrong location, please advise. Thanks.
I have a membership website using ASP.net and VB code behind
I have an SQL database called “rcm” which has a table called “teaminfo” and is structured as follows.
UniqueID
Username
Teamname
I have a page with a textbox and a button.
I want to the user to type their preferred teamname in the textbox and click the button.
Psuedo code for the button click event.
check if teamname exists in table
if teamname exists then Msgbox “team name taken”; end
else
create new table entry with UniqueID (sequence number), Username (taken from ASP.net given that user is logged in, the page will not be available to non-members) and Teamname from the textbox.
End
Any help would be greatly appreciated. Cheers.
James