- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
11 Posted Topics
[CODE] using System.Data.SqlClient; SqlConnection conn=new Sqlconnection("YourConnectionString"); conn.Open(); string qry="SELECT * FROM Tablename"; Sqlcommand cmd=new SqlCommand(qry,conn); bool userFound=false; SqlDatareader dr; dr=cmd.ExecuteReader(); while(dr.Read()) { if(user==user.Text&&pass=pass.Text) { userFound=true; break; } } if(userFound) { //Do Something e.g Response.Redirect("ToSomePage.aspx"); } else { } [/CODE]
I have a gridview which will display data from sql database. I need to use a custom delete button that when a checkbox is checked it will delete the row from the database its like the gmail functionality.
Hie guys!I am developing an application(has 4 forms so far) and I want the Login form to be closed when one is on the Main Form.The application has an option of exiting the system on the Main Form but when I do that the Login Form will still be there..I …
I have a search form which the user has to enter values to search for a particular vehicle in the database. I want to assign a certain value in the database to a certain control on another page. how will I be able to do this? I have something like …
My Application is not installing on other machines. Please help.
Make sure the user account you are using is configured in SQL
Create a new instance for the database.Here is an example [CODE] SqlConnection cn = new SqlConnection(); cn.ConnectionString = "Data Source=(yourserver)\\SQLEXPRESS;Initial Catalog=(your databasename);Integrated Security=True;Pooling=False"; cn.Open(); [/CODE]
I am building a web application using asp.net 3.5 and c# as the code behind. I have a dropdownlist which when clicked a calender must popup and selected date populating the dropdownlist. how can i do this?any clue??
Hello guys! In my application i have textbox where a student has to enter his/her name.I have validated it so that it accepts only letters but the problem is if i want to delete something when typing i have to use the delete button only.I cant use the space tab …
Try this.Close()
I want to enter details of a client into a database.If the details already exists the application must inform the user and they don't then save the details here is my code [code=c#] private void btnCreate_Click(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(); conn.ConnectionString="Data Source=MyComputer\\SQLEXPRESS;Initial Catalog=TIP;Integrated Security=True;Pooling=False"; conn.Open(); …
The End.
edgias