Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
Ranked #4K

11 Posted Topics

Member Avatar for GAME

[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]

Member Avatar for GAME
0
159
Member Avatar for edgias

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.

Member Avatar for kvprajapati
0
74
Member Avatar for edgias

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 …

Member Avatar for Geekitygeek
0
101
Member Avatar for edgias

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 …

Member Avatar for murugavel84
0
81
Member Avatar for edgias
Member Avatar for ddanbe
-1
86
Member Avatar for chonyt
Member Avatar for edgias
0
124
Member Avatar for adil30000mir

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]

Member Avatar for edgias
0
80
Member Avatar for edgias

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??

Member Avatar for Geekitygeek
0
68
Member Avatar for edgias

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 …

Member Avatar for ddanbe
0
124
Member Avatar for bmasta12
Member Avatar for edgias

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(); …

Member Avatar for Geekitygeek
0
307

The End.