User Profile

Collapse

Profile Sidebar

Collapse
kaisrajan
kaisrajan
Last Activity: May 21 '14, 09:20 AM
Joined: Apr 17 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Save CheckBoxlist values to database using asp.net

    Code:
      SqlConnection con = new SqlConnection(constr);
                SqlCommand cmd = new SqlCommand("insert into reg (name,num,gender,qual) values (@name,@num,@gender,@qual)", con);
                cmd.Parameters.AddWithValue("@name", TextBox1.Text);
                cmd.Parameters.AddWithValue("@num", TextBox2.Text);
                cmd.Parameters.AddWithValue("@gender", RadioButtonList1.SelectedItem.ToString());
    ...
    See more | Go to post

  • kaisrajan
    started a topic file handling - not writing to file

    file handling - not writing to file

    Code:
    class Program
        {
            static void Main(string[] args)
            {
                string[] names = new string[] { "kasi", "rajan" };
                using (StreamWriter sw = new StreamWriter("jamica.txt")) 
                {
                    foreach (string s in names)
                    {
                        Console.WriteLine(s);
                    }
    ...
    See more | Go to post
No activity results to display
Show More
Working...