473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to add data into a array accross multiple postback?

I have an button(add) which adds data to a datatable and binds it to a grid.
I want to save the data into a array accross multiple postback without using session,viewstate etc...

Expand|Select|Wrap|Line Numbers
  1.  selectQuery = "SELECT Proposal_Form_No as [PFNo] from Policy_Entry where svmslogin.Policy_Entry.Status='LoginReqd' and (Policy_Entry.Proposal_Form_No = '" + RadTextBox2.Text + "')"
  2.             Dim adp As SqlDataAdapter = New SqlDataAdapter(selectQuery, conn)
  3.             adp.Fill(Ds)
  4.             For Each dr11 As DataRow In Ds.Tables(0).Rows
  5.                 'obj.CheckPfNo(Ds.Tables(0)(0)(0))
  6.                 dt = DirectCast(Session("Address"), DataTable)
  7.                 dr = dt.NewRow()
  8.                 dr("PFNo") = dr11(0).ToString()
  9.                 dt.Rows.Add(dr)
  10.                 Session("Address") = dt
  11.                 RadGrid1.DataSource = dt
  12.                 RadGrid1.DataBind()
  13.  
Jan 28 '11 #1
0 825

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Tom Anderson | last post by:
I am currently having an issue with an ASP.Net 1.1 Web page that does the following remotely but not locally. Click on a control Check for postback, if postback, handle the event, otherwise...
1
by: Query Builder | last post by:
I have one of our production Accounting Databases starting from 2 GB now grown into a 20 GB Database over the period of a few years... I have been getting timeouts when transactions are trying to...
1
by: sarah_c_clough | last post by:
Hi, I have an application (written in C#.NET with the 2.0 framework and OpenGL) that runs several display lists. It's currently a little slow, so thought it would be a good idea to initialise...
6
by: Jeff | last post by:
Dear experts! ..NET 2.0 I'm trying to make an array containg multiple datatypes. This array will consist of 3 items (string, string, integer): my first try was this, (of course it fails)...
0
by: mwenz | last post by:
I am trying to update an Access table using OLEDB in VB.Net 2005. I can add rows but I cannot update them. Code to instantiate the Access database and table... Dim conn As New...
0
by: Mike P | last post by:
I have a form that I using to add details to an array, but I need to continue to add these details to my array on multiple postbacks....how can I do this? Do I need to use a Session object instead?...
1
by: keith katthy | last post by:
Is it true I do like below, if I want to all data array? and the ouput is 2. How to know which array that computer take? #include <iostream> #include <conio.h> #include <cstdlib> #include...
7
by: annerhexian | last post by:
hi to all i am confused right now.. im just new in php.. and i have syntax error in my codes.. pls take a look? database name: ranking table: form1 fields: form1academicbachelor ...
2
by: englishman69 | last post by:
Hello, I have been banging my head against this one for a while... Searches online have revealed many different proposals for correcting my issue but none that I can follow! My basic situation...
0
by: PLALS | last post by:
Hi All, I am looking for the recursive function in C# for spliting the single row data into multiple row, I have a data table in C# and the table contents data like column --> :| A | B ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.