hi , Rather then using the session variables u can use the application variables which will accessible to application it self . if that data is same for all the session(since ur using the table it may from the db so it will b same for all user)I think this can solve ur problem.
Thanks On Wed, Jul 15, 2009 at 1:26 AM, Neo <[email protected]> wrote: > > Note : code was written in notepad, so there might be some syntax > errors. > > to create a variable in session you do this > Session["VariableName"] = "Assign value"; > > to extract value from session variable do this > string variable = Session["VariableName"]; > > Note : using large amounts of session variables or using heavy > variables in session is expensive, avoid using session variables as > much as u can. > > to compare the column name of a table in sql, do this ( i am assuming > that you have already extracted values from sql and stored them into a > DataTable) > let assume u have a data table named table > > foreach (DataColumn column in table.Columns) > { > if(column.Name.Equals(Session["VariableName"])) > break; > continue; > } > > > On Jul 14, 2:21 pm, gagandeep sharma <[email protected]> wrote: > > how to create a seesion variables in asp.net and how we comapre it with > the > > fields of sql server... > > > > if any1 know this, then pls help me > > > > -- > > GO and LEAD from Whereever You are. > > Think Big and Think Fast. > -- Mohammed Sabir Piya thoughtfocus Mysore
