473,666 Members | 2,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help in C Sharp Web Interface

14 New Member
I need help in C Sharp Web Interface ,
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) on clicking this button all selected (checked) data needs to be stored temperorily and 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 !!
.
Aug 27 '07 #1
6 1526
svgeorge
14 New Member
I need help in C Sharp Web Interface ,
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) on

clicking this button all selected (checked) data needs to be stored temperorily and

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 !!
.
Aug 27 '07 #2
svgeorge
14 New Member
I need help in C Sharp Web Interface ,
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) on

clicking this button all selected (checked) data needs to be stored temperorily and

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 !!
.
Aug 27 '07 #3
Plater
7,872 Recognized Expert Expert
We have an article on Sessions for passing data between pages.

And an article on using a database in your program for using the database
Aug 27 '07 #4
just a feeling
87 New Member
I think that SQL forum gonna help u.
kindly, put ur question there.
Aug 27 '07 #5
svgeorge
14 New Member
I think that SQL forum gonna help u.
kindly, put ur question there.
I need help in C Sharp Web Interface ,
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) on clicking this button all selected (checked) data needs to be stored temperorily and 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 Shuja!! 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 #6
kenobewan
4,871 Recognized Expert Specialist
Please stop posting multiple times, it is against site rules. Thanks.

MODERATOR
Aug 31 '07 #7

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

Similar topics

4
2502
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got hard time to understand vb syntax. I don't know if anyone in here can point out which is the equivalent object used in c sharp. Translate these two lines to C sharp: Sub Next_Click(Sender As Object, e As EventArgs) Select Case...
4
1419
by: authorking | last post by:
I'm a beginner of c#. I need a sample C# project in whitch a perfect user interface has been designed. Who can give me?
4
1151
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got hard time to understand vb syntax. I don't know if anyone in here can point out which is the equivalent object used in c sharp. Translate these two lines to C sharp: Sub Next_Click(Sender As Object, e As EventArgs) Select Case...
4
1178
by: C not so sharp | last post by:
Greetings! I'm developing a file repository system in ASP.Net with C#. However, I am having problems getting the environment to cooperate. Here is the scenario: When a new user is created, I create their file folder as follows: string strUserDir = "Dir"+ strNewID; string strFileDir = ConfigurationSettings.AppSettings; // Defaults to "Uploads"
0
8454
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...
1
8560
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
8644
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...
1
6200
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5671
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
4200
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
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
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
2
1778
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.