Author: zuperboy90 | Posted on: 3/31/2009 1:13:29 PM | Views : 928

 Hello
i am having a sql command witch addes a comment to a profile.
I am verry new to try catch clause and i would like to learn what is best aproach of using this...currently i am trying to show an "ok" message if everithing worked like it should, but the text of the button remains the same. Here is my code

string userName = "";
SqlConnection conn;
SqlCommand command;
SqlParameter param;

userName = Request.QueryString["userName"].ToString();
MembershipUser m = Membership.GetUser(userName);
Guid ToUserID = new Guid(m.ProviderUserKey.ToString());

m = Membership.GetUser(User.Identity.Name);
Guid FromUserID = Go to the complete details ...