473,854 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To display Selected data from One web user Interface page to next on Button Click

14 New Member
I have web pages for making several 9 type of payments.
The data gets loaded on web page from SQL server 2005 database.
Then I have Process payment button(ProcPaym BTM_Click) on the web page(Detail View)This is done. on clicking this button(ProcPaym BTM_Click) on (Detail View) all selected (checked) data columns needs displayed on another page (Review Data) In this page i click confirm payment button to insert selected data to the SQL Tables.
I need help to get the selected data on Detail View to appear on the next page Review Data.
Also how to insert the data to tables in SQL.
Please help !!



Here is the button on click code... that has to open the ne page with checked data fron earlier page.....Please let me know where the data set needs to be coded as u said earlier Please Help..

protected void ProcPaymBTM_Cli ck(object sender, EventArgs e)
{
Dataviewlisting .ActiveViewInde x += 1;
int IndexCount = 0;
String ProcessingPayme nt;
SessionValues ValueSelected = null;
DataTable SelectedPayment = new DataTable();

if (Session[Session_UserSPe rsonalData] == null)
{
ValueSelected = new SessionValues() ;
Session.Add(Ses sion_UserSPerso nalData, ValueSelected);
}
else
{
ValueSelected = (SessionValues) (Session[Session_UserSPe rsonalData]);
}

ProcessingPayme nt = ValueSelected.P aymentSelected;
switch (ProcessingPaym ent)
{
case "EnollNotPaidBT M":
break;
case "PlacNotPaidBTM ":
break;
case "Ret1NotPaidBTM ":
break;
case "Ret3NotPaidBTM ":
break;
case "Ret6NotPaidBTM ":
break;
case "Place2ndNotPai dBTM":
break;
case "EnrollBonusNot PaidBTM":
break;
case "WPRNotPaidBTM" :
break;
case "SatisCompleteN otPaidBTM":
break;
default:
break;
}
foreach (GridViewRow DataSelected in this.DetailData List.Rows)
{
if (((CheckBox)Dat aSelected.FindC ontrol("Approva lCk")).Checked )
{
IndexCount += 1;
}
}




This is the code i used to get the data displayed on First web page........thi s data generated from checked values here needs to be displayed on next page only when clicked on the button , So as you said can you assist me with the dataset ot new table to be created with the selected data only to be displayed.

// Not_Paid_BTM

protected void Cick_Detail_Enr ollment(object sender, EventArgs e)
{
//EnrollNotPaidBT M
WebLibraryClass ConnectionFinan ceDB;
ConnectionFinan ceDB = new WebLibraryClass ();
Button ObjectClick = (Button)sender;
string ConditionValue;
SessionValues ValueSelected = null;

ProcPaymBTM.Vis ible = true;
if (Session[Session_UserSPe rsonalData] == null)
{
ValueSelected = new SessionValues() ;
Session.Add(Ses sion_UserSPerso nalData, ValueSelected);
}
else
{
ValueSelected = (SessionValues) (Session[Session_UserSPe rsonalData]);
}

ConditionValue = ValueSelected.C ONDITION;
ValueSelected.P aymentSelected = ObjectClick.ID. ToString();


if (ObjectClick.ID .ToString() == "EnrollNotPaidB TM")
{


DbDataReader CollectingDataS elected = null;
Dataviewlisting .ActiveViewInde x += 1;
try
{
CollectingDataS elected = ConnectionFinan ceDB.CollectedF inaceData("SELE CT DISTINCT SSN,[FIRST NAME],[LAST NAME],Project_ID as [PROJECT ID],[PROJ START DT]AS ENROLLMENT,[PROJ END DT] AS TERMINATION,TER M AS [TERM CODE] FROM dbo.V_1st_Enrol lment_Agency_Pa yment_List " + ConditionValue) ;
}
catch
{

}
DataTable TableSet = new DataTable();
TableSet.Load(C ollectingDataSe lected, LoadOption.Over writeChanges);
DetailDataList. DataSource = TableSet.Defaul tView;
DetailDataList. DataBind();
}
}


Hope you will guide me .....

Thanks ,

Santosh George
Aug 28 '07 #1
0 1374

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

Similar topics

13
40786
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div style="display:none"> can be displayed by setting the style attribute to "display:", or hidden with "display:none". This gives the illusion that the person filling out the form is switching from page to page...without the overhead of extra hits on the server,...
10
19367
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is able to fill that one out just fine. The second form is multipart/form-data. Unfortunately, I haven't been able to fill that out in a way that makes the server happy. I set up a copy of this form at my web site so that I could see exactly what a...
5
9752
by: George Durzi | last post by:
I have a simple user control with a text box and a submit button. When the user enters some text into the textbox and clicks the submit button, a record is created in the database. I'm using this user control inside another webform. The webform has a "Next" button which is initially disabled. When the user control successfully adds a record I want the Next button on the webform to get enabled. Checking if the record was added...
13
1986
by: Benjamin Smith | last post by:
I am controlling the display status of a table row using the following code. <TR id="CCRow" style="DISPLAY:none"> Instead of hard coding "none" above, I would like to change that value using a hidden input control. How to do that? I am getting the error in the following case. <TR id="CCRow" style="DISPLAY:"
1
2853
by: Andy Sutorius | last post by:
Hi, I have 4 panels, each panel has a dropdown and a "next" button. I would like to get the selected value of the dropdown after the next button is clicked. I thought I could use the following (ddlChooseEmail.SelectedValue) to grab the value but it does not work. Is there something special about panels that I need to do in order to get the selected value of the dropdown? Thanks,
10
1676
by: Doug Bell | last post by:
Hi, I have an application that has a "Data Access Class" and "User Interface Class". It is for receiving Purchase Order data from one system and pushing processed transactions to another system. The system generally works quite well. Currently the User interface calls for a refresh of data every 15 minutes (selectable) and the Data Access Class connects to the DB and retrieves the
11
5824
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
0
1086
by: svgeorge | last post by:
I have web pages for making several 9 type of payments. The data gets loaded on web page from SQL server 2005 database. Then I have Process payment button(ProcPaymBTM_Click) on the web page(Detail View)This is done. on clicking this button(ProcPaymBTM_Click) on (Detail View) all selected (checked) data columns needs displayed on another page (Review Data) In this page i click confirm payment button to insert selected data to the SQL Tables. I...
1
2423
by: angelicdevil | last post by:
i have listbox 1 which displays status , based on selection of status listbox 2 displays usernames. and based on username selected the textbox displays the email id. its working fine till displaying user names in listbox 2 based on selected of status in listbox. but its not displaying the emailid based on selection of usernames and when i click on search for users button its refreshs the page and shows the intial page also want the text box...
0
9899
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
9750
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
11023
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...
1
10740
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10362
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7076
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
5738
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
5936
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.