Click here to Skip to main content
11,565,672 members (47,406 online)
   

C#

 
GeneralRe: multiple loading of assemblies - does it have any associated problems? Pin
Dan_K2-Oct-12 3:29
memberDan_K2-Oct-12 3:29 
AnswerRe: multiple loading of assemblies - does it have any associated problems? Pin
Eddy Vluggen2-Oct-12 4:29
memberEddy Vluggen2-Oct-12 4:29 
AnswerRe: multiple loading of assemblies - does it have any associated problems? Pin
jschell2-Oct-12 8:42
memberjschell2-Oct-12 8:42 
AnswerRe: multiple loading of assemblies - does it have any associated problems? Pin
Dave Kreskowiak2-Oct-12 12:29
mvpDave Kreskowiak2-Oct-12 12:29 
SuggestionRe: multiple loading of assemblies - does it have any associated problems? Pin
Guirec Le Bars2-Oct-12 18:11
memberGuirec Le Bars2-Oct-12 18:11 
GeneralRe: multiple loading of assemblies - does it have any associated problems? Pin
jschell3-Oct-12 10:16
memberjschell3-Oct-12 10:16 
AnswerRe: multiple loading of assemblies - does it have any associated problems? Pin
BobJanova3-Oct-12 5:05
memberBobJanova3-Oct-12 5:05 
QuestionWhen to use .PerformClick() Pin
MAW301-Oct-12 15:07
memberMAW301-Oct-12 15:07 
AnswerRe: When to use .PerformClick() Pin
DaveyM691-Oct-12 16:05
mentorDaveyM691-Oct-12 16:05 
GeneralRe: When to use .PerformClick() Pin
MAW301-Oct-12 16:55
memberMAW301-Oct-12 16:55 
AnswerRe: When to use .PerformClick() Pin
Dave Kreskowiak2-Oct-12 1:32
mvpDave Kreskowiak2-Oct-12 1:32 
GeneralRe: When to use .PerformClick() Pin
DaveyM692-Oct-12 3:02
mentorDaveyM692-Oct-12 3:02 
AnswerRe: When to use .PerformClick() Pin
Ravi Bhavnani2-Oct-12 6:22
memberRavi Bhavnani2-Oct-12 6:22 
Questionwhy i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh1-Oct-12 12:46
memberKay Pee Singh1-Oct-12 12:46 
why i cant store vales in database ???



private void Form8registration_Load(object sender, EventArgs e)
{
conn.Open();

}


private void ExecuteInsert(string empname, string desgination, string emailid, string phone, string skype, string address, string shifttime, string panel)
{
if (conn.State == ConnectionState.Closed)
{
conn.Open();
}

using (conn)
{

try
{


SqlCommand cmdd = new SqlCommand();
//cmdd.CommandType = CommandType.StoredProcedure;
cmdd.CommandText = "Insert into registrationn values (@empname,@desgination,@emailid,@phone,@skype,@address,@shifttime,@panel)";
cmdd.CommandType = CommandType.Text;
cmdd.Connection = conn;

// cmdd.Parameters.Add("@empid", SqlDbType.VarChar, 150).Value = textBox7_empid.Text;



cmdd.Parameters.Add("@empname", SqlDbType.VarChar, 150).Value = empname;
cmdd.Parameters.Add("@desgination", SqlDbType.VarChar, 150).Value = desgination;
cmdd.Parameters.Add("@emailid", SqlDbType.VarChar, 150).Value = emailid;
cmdd.Parameters.Add("@phone", SqlDbType.VarChar, 150).Value = phone;
cmdd.Parameters.Add("@skype", SqlDbType.VarChar, 150).Value = skype;
cmdd.Parameters.Add("@address", SqlDbType.VarChar, 150).Value = address;
cmdd.Parameters.Add("@shifttime", SqlDbType.VarChar, 150).Value = shifttime;
cmdd.Parameters.Add("@panel", SqlDbType.VarChar, 150).Value = panel;
SqlParameter p1 = new SqlParameter("@ret", SqlDbType.VarChar, 150);
p1.Direction = ParameterDirection.ReturnValue;




cmdd.ExecuteNonQuery();
cmdd.Dispose();
}

catch (Exception ex)
{
string msg = "insert error ";
msg += ex.Message;
throw new Exception(msg);

}

finally
{
conn.Close();

}

}

}




private void button2_reset_Click(object sender, EventArgs e)
{
Reset();
}

private void Reset()
{
textBox1_add.Text = "";
textBox3_phoneno.Text = "";
textBox4_emailid.Text = "";
textBox5_desgination.Text = "";
textBox6_name.Text = "";
textBox7_empid.Text = "";
comboBox1_shifttime.SelectedText= "";
textBox1_skpid.Text = "";
}

private void button3_cancel_Click(object sender, EventArgs e)
{
Close();
}






private void button1_submit_Click(object sender, EventArgs e)
{
if (radioButton1_employe.Checked == true)
{
ExecuteInsert(textBox6_name.Text, textBox5_desgination.Text, textBox4_emailid.Text, textBox3_phoneno.Text, textBox1_skpid.Text, textBox1_add.Text, comboBox1_shifttime.SelectedItem.ToString(), radioButton1_employe.Checked.ToString());
}
else
{

MessageBox.Show("data not stored ");
}
}
AnswerRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Smart Arab2-Oct-12 2:45
memberSmart Arab2-Oct-12 2:45 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Eddy Vluggen2-Oct-12 3:24
memberEddy Vluggen2-Oct-12 3:24 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh2-Oct-12 6:52
memberKay Pee Singh2-Oct-12 6:52 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Eddy Vluggen2-Oct-12 8:06
memberEddy Vluggen2-Oct-12 8:06 
Generalcan u tell me where is the error in this code so i can change .....?? Pin
Kay Pee Singh2-Oct-12 10:08
memberKay Pee Singh2-Oct-12 10:08 
AnswerRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Eddy Vluggen2-Oct-12 3:25
memberEddy Vluggen2-Oct-12 3:25 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh2-Oct-12 6:51
memberKay Pee Singh2-Oct-12 6:51 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon2-Oct-12 7:34
protectorPete O'Hanlon2-Oct-12 7:34 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh2-Oct-12 9:52
memberKay Pee Singh2-Oct-12 9:52 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh2-Oct-12 10:02
memberKay Pee Singh2-Oct-12 10:02 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon2-Oct-12 10:24
protectorPete O'Hanlon2-Oct-12 10:24 
Generalhow can i check my entered value is going to SQL server or not ???? Pin
Kay Pee Singh2-Oct-12 10:56
memberKay Pee Singh2-Oct-12 10:56 
GeneralRe: how can i check my entered value is going to SQL server or not ???? Pin
Pete O'Hanlon2-Oct-12 11:16
protectorPete O'Hanlon2-Oct-12 11:16 
GeneralRe: how can i check my entered value is going to SQL server or not ???? Pin
Kay Pee Singh2-Oct-12 11:27
memberKay Pee Singh2-Oct-12 11:27 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh2-Oct-12 11:16
memberKay Pee Singh2-Oct-12 11:16 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon3-Oct-12 0:15
protectorPete O'Hanlon3-Oct-12 0:15 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh3-Oct-12 4:55
memberKay Pee Singh3-Oct-12 4:55 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon3-Oct-12 5:24
protectorPete O'Hanlon3-Oct-12 5:24 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh3-Oct-12 7:45
memberKay Pee Singh3-Oct-12 7:45 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon3-Oct-12 8:26
protectorPete O'Hanlon3-Oct-12 8:26 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh3-Oct-12 9:27
memberKay Pee Singh3-Oct-12 9:27 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon3-Oct-12 9:37
protectorPete O'Hanlon3-Oct-12 9:37 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon3-Oct-12 10:03
protectorPete O'Hanlon3-Oct-12 10:03 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh3-Oct-12 10:24
memberKay Pee Singh3-Oct-12 10:24 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh3-Oct-12 10:40
memberKay Pee Singh3-Oct-12 10:40 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Pete O'Hanlon3-Oct-12 10:56
protectorPete O'Hanlon3-Oct-12 10:56 
GeneralRe: why i cant store values in database but my data is correct its not showing any error help me .....?? Pin
Kay Pee Singh3-Oct-12 12:57
memberKay Pee Singh3-Oct-12 12:57 
Generalsir please help me i want to insert my data its very urgent so please help me Pin
Kay Pee Singh8-Oct-12 20:14
memberKay Pee Singh8-Oct-12 20:14 
Questionhuffman markov of orden 1 Pin
Ramiro Madriaga1-Oct-12 4:10
memberRamiro Madriaga1-Oct-12 4:10 
AnswerRe: huffman markov of orden 1 Pin
Pete O'Hanlon1-Oct-12 4:20
protectorPete O'Hanlon1-Oct-12 4:20 
GeneralRe: huffman markov of orden 1 Pin
Ramiro Madriaga1-Oct-12 5:16
memberRamiro Madriaga1-Oct-12 5:16 
GeneralRe: huffman markov of orden 1 Pin
Pete O'Hanlon1-Oct-12 5:23
protectorPete O'Hanlon1-Oct-12 5:23 
AnswerRe: huffman markov of orden 1 Pin
DaveyM691-Oct-12 4:47
mentorDaveyM691-Oct-12 4:47 
AnswerRe: huffman markov of orden 1 Pin
BobJanova1-Oct-12 6:15
memberBobJanova1-Oct-12 6:15 
QuestionAre C# versions tied to the IDE? Pin
charlieg1-Oct-12 3:42
membercharlieg1-Oct-12 3:42 
AnswerRe: Are C# versions tied to the IDE? Pin
Pete O'Hanlon1-Oct-12 3:55
protectorPete O'Hanlon1-Oct-12 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 30 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid