How to fix resolution in ASP.NET for web pages? Thanks
modified on Monday, July 12, 2010 8:20 AM
How to fix resolution in ASP.NET for web pages? Thanks
modified on Monday, July 12, 2010 8:20 AM
How to call serverside function in JavaScript? I am working on VS2008,ASP.NET,C#
Hi, I am working on a simple user registration form in ASP.NET using C#. I created a check for “UserID”, when user will click “Submit” button then my logic will check into database for UserID “Already Exist in database or not” I tried this same login on “User ID” Textbox (textchange event), but it is not working , please let me know where to write this code for TextBox . THanks
selecting values from one table like [tblOne] then matching records with other table like [tblTwo] then updating first table [tblOne].
SqlCommand cmd; SqlDataReader rdr1; int i; cmd = new SqlCommand("Select * from tblTest where [Check]='False'",con1); rdr1 = cmd.ExecuteReader(); if (rdr1.HasRows) { while (rdr1.Read()) { cmd = new SqlCommand("Insert into tblTest values('" + rdr1[0].ToString() + "','" + rdr1[1].ToString() +"','" + rdr1[2].ToString()+ "')", con2); i = cmd1.ExecuteNonQuery(); cmd = new SqlCommand("update tbltest set [check]='True' where ID='" + rdr1[0].ToString() + "'", con1); i = cmd2.ExecuteNonQuery(); } } cmd.Dispose(); rdr1.Close(); Here one datareader is already open with tblTest and inside of while loop I am trying to update records for table tblTest,Please let me know how to fix datareader problem. We can do with dataadapters but here how we can solve it?
Thanks Hen
I am working on a MDIForm in C#. Here we can open many child form inside MDI, now I am trying to write a code which can close all child form on menu click. Please let me know right code. Thanks
Hi, I have an outlook plug-in and it is working fine, but I have one issue there are few buttons and I am trying to use icons/ images on buttons with text content. Please let me know how to use icons/images for buttons in Outlook plug-in. Thanks.
public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void Form2_Load(object sender, EventArgs e) { } } public class test { string strID; public string hello() { strID= this.txtTextBox1.Text; //here i am confused with my basic concept (can i assign value to strID from TextBox and if yes then how to get TextBox Value from form2 because I am making a new class here) return strID; } } }
public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void Form2_Load(object sender, EventArgs e) { } } public class test { string strID; public string hello() { strID= this.txtTextBox1.Text; //here i am confused with my basic concept (can i assign value to strID from TextBox and if yes then how to get TextBox Value from form2 because I am making a new class here) return strID; } } }
Using this code , and where to add new line of code which prints value to commandprompt. string strName = "Alex"; Process pr = new Process(); pr.StartInfo.FileName = "cmd.exe"; pr.Start();
I am trying to do with process.
Hi, I am creating a Process in C# and want to print my "strName" value to command prompt. This code is not printing any value , please let me know the right code. I know this code is wrong,,but if we pass Arguents then? string strName = "Alex"; Process pr = new Process(); pr.StartInfo.FileName = "cmd.exe"; pr.Start(); Thanks
modified on Friday, April 9, 2010 10:14 AM
Not Working! Error: Object reference not set to an instance of an object.
I have CheckBox in my datagridview1 and I am trying to get CheckBox is check or not. for(int i; i< datagridview1.rows.count; i++) { bool IsChecked = ((CheckBox)datagridview1.rows[i].Cell["ID"].Value).Checked; } Above code is not working,please let me know where I am wrong. I am using C#, VisualStudio2008. Thanks
modified on Tuesday, April 6, 2010 7:50 AM
Thanks for your time but please let me know the right solution.
Hi, I am trying to pass value from one windows form to another in desktop application using C#. I have created two text boxes on Form1 and a button, on button click I am creating Form2 and From2 contains one button, on this button click I have to pass value from Form2 to Form1 textboxes. I have created Properties in Form1. public string Emp { get { return strEmp; } set { strEmp = value; } } public string EmpID { get { return strEmpID; } set { strEmpID = value; } } And on Form1 button click: private void button1_Click(object sender, EventArgs e) { Form2 fr = new Form2(); this.textBox1.Text = strEmp ; this.textBox2.Text = strEmpID ; fr.ShowDialog(); } On Form2: private void button1_Click(object sender, EventArgs e) { Form1 fr = new Form1(); fr. Emp = "Alex"; fr. EmpID = "1121"; this.Close(); } This code is not working, Please let me know where I am wrong. Thanks,
modified on Wednesday, March 31, 2010 12:54 AM
Hi Everyone, I am trying to create a simple customer object with firstname, lastname and dateofbirth properties. Then I would like to populate 4 of them or so and put them into a collection and then populate them onto a page for display with a repeater control. As I am not very expert in ASP.NET. Please let me know your thoughts with sample code. Thnaks
Where should I post?
Hi, I am trying to customize ClickOnce application for WPF project. The simple setup works fine but we need automatic updates so we like to use ClickOnce and the requirement is to start application when user logon to his system. For this requirement we need to create shortcut to user’s startup folder. Please let me know how to create shortcut to user’s startup folder for ClickOnce. Thanks