Posted on: 7/13/2014 11:28:12 AM | Views : 397

Hi,
I have form where user submit the information.
I want it to be like whenever, they submit some the form, we get their date on which they have submit the form and also it's generate the unique name of that submission.
I don't need guid only Unique name of that submission.
Please suggest where to edit the code
Session["UserName"] = HttpContext.Current.User.Identity.Name; String strConnString = System.Configuration.ConfigurationManager .ConnectionStrings["userConnectionString"].ConnectionString; SqlConnection con = new SqlConnection(strConnString); string strQuery = "insert into Quotes (Id, UserName, Quote_Name)" + " values (@Id,@Username, @Quote_Name)"; SqlCommand cmd = new SqlCommand(strQuery); cmd.Parameters.AddWithValue("@Id", Membership.GetUser().Provid ...

Go to the complete details ...