473,799 Members | 3,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to add data into a array accross multiple postback?

2 New Member
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,viewsta te 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 842

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

Similar topics

5
2434
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 populate page with options. What is happening is that remotely the page is doing a double postback, then doing a post without data at all resulting in the event being fired twice, then redirecting to the incorrect option in a dropdown (going to...
1
9771
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 update different tables in the database.. Most of the error I get are I/O requests to the data file (Data file of the production db Accounting_Data.MDF). I would like to implement the following to this Accounting database.
1
1952
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 the most important display lists first and display them. Then while the user is able to play with the rest of the interface (scroll and pan options etc.), initialise the rest of the display lists in a BackgroundWorker thread.
6
5567
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) string param = new string; param = "2007-08-01";
0
3977
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 OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & db.Name) conn.Open() Dim oda As New OleDb.OleDbDataAdapter("select " & sqlCols & " from ;", conn) Dim cb As New OleDb.OleDbCommandBuilder(oda) cb.QuotePrefix = "" oda.UpdateCommand =...
0
1021
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? *** Sent via Developersdex http://www.developersdex.com ***
1
1351
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 <math.h> #include <stdio.h> #include <time.h> using namespace std;
7
10453
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 form1academicschoolyear
2
5037
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 is this, I have a page which uses multiple postbacks to generate a list of dynamic text boxes with appropriate labels. However, when I do the final postback to enter the values in the dynamic textboxes into the database the values seem to become...
0
1609
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 |C |D --------------------------------------------------- Row 1 :|5,8,10-20 | 15 |7,10 |20,30 Row 2 :|30 | 16,18,20-25 |11,13 |35 --------------------------------------------------- I want to spit above...
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10260
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.