adding data
From: Selen (skiyanc_at_yahoo.com)
Date: 03/02/04
- Next message: Nick Gilbert: "Re: IIS caching output of pages"
- Previous message: mark: "sending data from one form to another automatically"
- Next in thread: Simon Gorski: "Re: adding data"
- Reply: Simon Gorski: "Re: adding data"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 12:00:00 +0200
Hello,
I add my data from sqlserver to dropdownlist on formload.I wanted it doesnt
load data every time on form load.I made if session is null then load if
session isnt null dont load.I add to sqlserver a new data ans I make session
is null.But in dropdownlist I coudnt see my new data.I use below code for
adding.I make logic error. Is Using Session logic true? or I have to refresh
sql data if so how can I do this...
SqlConnection conn=new SqlConnection ();
conn.ConnectionString
="server=(local)\\sql2000;database=db_Kalite_Data;uid=sa;pwd=antalya";
SqlCommand cmd=new SqlCommand ();
cmd.Connection =conn;
string str="insert ........................";
cmd.CommandText =str;
conn.Open ();
cmd.ExecuteNonQuery ();
conn.Close ();
Thanks...
- Next message: Nick Gilbert: "Re: IIS caching output of pages"
- Previous message: mark: "sending data from one form to another automatically"
- Next in thread: Simon Gorski: "Re: adding data"
- Reply: Simon Gorski: "Re: adding data"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|