472,952 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

What i must use to create this form?

Hello!

I have strange and simple problem....
I am starting developer. I need to create webform, that will insert my data
into SQL 2005 database.
My idea is to make something like MS Access Form-Subform. I'm typing data,
pressing "Add" and i see it on datagrid below. So I can type second datas,
press "Add" and now i will see two records below.

I'm using .NET (2.0), SQL 2005.

My form have two regions on one page:
- I - few texboxes, two dropdownlists (here are records from specific
tables), one button "Add"
- II - (here I need something like datalist), one button "Send to SQL"

How should look that engine?
I have ready:
- region I with textboxes and SQLcommand, that is inserting records now
into SQL database
- dataset with datatables and relations between

How to insert data into dataset and then insert it into datalist?
What I must use?

Thanks
Leszek
Oct 30 '06 #1
4 1644

on the post back use an sqlcommand to insert the data and another sqlcommqnd to requery the table to get the records desired and
bind to the gridview



"marek zegarek" <ma***@zegarek.plwrote in message news:u0**************@TK2MSFTNGP03.phx.gbl...
Hello!

I have strange and simple problem....
I am starting developer. I need to create webform, that will insert my data into SQL 2005 database.
My idea is to make something like MS Access Form-Subform. I'm typing data, pressing "Add" and i see it on datagrid below. So I can
type second datas, press "Add" and now i will see two records below.

I'm using .NET (2.0), SQL 2005.

My form have two regions on one page:
- I - few texboxes, two dropdownlists (here are records from specific tables), one button "Add"
- II - (here I need something like datalist), one button "Send to SQL"

How should look that engine?
I have ready:
- region I with textboxes and SQLcommand, that is inserting records now into SQL database
- dataset with datatables and relations between

How to insert data into dataset and then insert it into datalist?
What I must use?

Thanks
Leszek


Oct 31 '06 #2
As I sad, I have form with few controls to type data.
When I push button "Add", i want to add it to datalist. Not to the database.
Then i need to add second, and third, and etc row with new data into this
datalist.
Then on finish will be button "Save" (for example), that will save all into
database.

How to add something to this datalist wiithout using sqlconnection?


Użytkownik "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comnapisał w
wiadomości news:u8**************@TK2MSFTNGP04.phx.gbl...
>
on the post back use an sqlcommand to insert the data and another
sqlcommqnd to requery the table to get the records desired and bind to the
gridview



"marek zegarek" <ma***@zegarek.plwrote in message
news:u0**************@TK2MSFTNGP03.phx.gbl...
>Hello!

I have strange and simple problem....
I am starting developer. I need to create webform, that will insert my
data into SQL 2005 database.
My idea is to make something like MS Access Form-Subform. I'm typing
data, pressing "Add" and i see it on datagrid below. So I can type second
datas, press "Add" and now i will see two records below.

I'm using .NET (2.0), SQL 2005.

My form have two regions on one page:
- I - few texboxes, two dropdownlists (here are records from specific
tables), one button "Add"
- II - (here I need something like datalist), one button "Send to SQL"

How should look that engine?
I have ready:
- region I with textboxes and SQLcommand, that is inserting records now
into SQL database
- dataset with datatables and relations between

How to insert data into dataset and then insert it into datalist?
What I must use?

Thanks
Leszek



Oct 31 '06 #3
Hi there,

how about something like this:

1. Create and populate a dataset object and bind it to the datalist control/
2. When the user clicks ADD, read the new record values that were entered,
and add a new DataRow to the dataset, then rebind the dataset again to the
datalist control.

3. When user clicks save, loop through the items in the dataset, and insert
them all into the database.

regards,
Paul

"marek zegarek" <ma***@zegarek.plwrote in message
news:er*************@TK2MSFTNGP03.phx.gbl...
As I sad, I have form with few controls to type data.
When I push button "Add", i want to add it to datalist. Not to the
database.
Then i need to add second, and third, and etc row with new data into this
datalist.
Then on finish will be button "Save" (for example), that will save all
into database.

How to add something to this datalist wiithout using sqlconnection?


Użytkownik "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comnapisał w
wiadomości news:u8**************@TK2MSFTNGP04.phx.gbl...
>>
on the post back use an sqlcommand to insert the data and another
sqlcommqnd to requery the table to get the records desired and bind to
the gridview



"marek zegarek" <ma***@zegarek.plwrote in message
news:u0**************@TK2MSFTNGP03.phx.gbl...
>>Hello!

I have strange and simple problem....
I am starting developer. I need to create webform, that will insert my
data into SQL 2005 database.
My idea is to make something like MS Access Form-Subform. I'm typing
data, pressing "Add" and i see it on datagrid below. So I can type
second datas, press "Add" and now i will see two records below.

I'm using .NET (2.0), SQL 2005.

My form have two regions on one page:
- I - few texboxes, two dropdownlists (here are records from specific
tables), one button "Add"
- II - (here I need something like datalist), one button "Send to SQL"

How should look that engine?
I have ready:
- region I with textboxes and SQLcommand, that is inserting records now
into SQL database
- dataset with datatables and relations between

How to insert data into dataset and then insert it into datalist?
What I must use?

Thanks
Leszek




Oct 31 '06 #4
I made it 2 hours ago :)
I didn't knew, how to do this, but now everything is ok :)

I will use your 2) to rebind.

Thanks Milsnips!

Użytkownik "Milsnips" <mi******@hotmail.comnapisał w wiadomości
news:uy**************@TK2MSFTNGP04.phx.gbl...
Hi there,

how about something like this:

1. Create and populate a dataset object and bind it to the datalist
control/
2. When the user clicks ADD, read the new record values that were entered,
and add a new DataRow to the dataset, then rebind the dataset again to the
datalist control.

3. When user clicks save, loop through the items in the dataset, and
insert them all into the database.

regards,
Paul

"marek zegarek" <ma***@zegarek.plwrote in message
news:er*************@TK2MSFTNGP03.phx.gbl...
>As I sad, I have form with few controls to type data.
When I push button "Add", i want to add it to datalist. Not to the
database.
Then i need to add second, and third, and etc row with new data into this
datalist.
Then on finish will be button "Save" (for example), that will save all
into database.

How to add something to this datalist wiithout using sqlconnection?


Użytkownik "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comnapisał w
wiadomości news:u8**************@TK2MSFTNGP04.phx.gbl...
>>>
on the post back use an sqlcommand to insert the data and another
sqlcommqnd to requery the table to get the records desired and bind to
the gridview



"marek zegarek" <ma***@zegarek.plwrote in message
news:u0**************@TK2MSFTNGP03.phx.gbl...
Hello!

I have strange and simple problem....
I am starting developer. I need to create webform, that will insert my
data into SQL 2005 database.
My idea is to make something like MS Access Form-Subform. I'm typing
data, pressing "Add" and i see it on datagrid below. So I can type
second datas, press "Add" and now i will see two records below.

I'm using .NET (2.0), SQL 2005.

My form have two regions on one page:
- I - few texboxes, two dropdownlists (here are records from specific
tables), one button "Add"
- II - (here I need something like datalist), one button "Send to SQL"

How should look that engine?
I have ready:
- region I with textboxes and SQLcommand, that is inserting records now
into SQL database
- dataset with datatables and relations between

How to insert data into dataset and then insert it into datalist?
What I must use?

Thanks
Leszek




Oct 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
140
by: Oliver Brausch | last post by:
Hello, have you ever heard about this MS-visual c compiler bug? look at the small prog: static int x=0; int bit32() { return ++x; }
6
by: CryingFreeman | last post by:
Hi everyone, I started in access just a copple of weeks ago, to automise my ecell DVD database.So I could make forms, ans reports.. Thought it would be easy, but I'm trying nog for weeks and I...
6
by: timster | last post by:
>From Microsoft Office 2000/Visual Basic Programmer's Guide Choosing ADO or DAO for Working with Access Databases ------------------------------------------------------------------- "When you...
17
by: candy_init | last post by:
I sometimes comes across statements which invloves the use of size_t.But I dont know exactly that what is the meaning of size_t.What I know about it is that it is used to hide the platform...
8
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that...
0
by: tony dong | last post by:
Hi there I use vs.net 2005 with standard sql 2005 under machine\sql2005 for instant when I create webpart, the code get from quickstart as follow: <%@ Page Language="C#" %> <%@ Register...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
5
by: Bob Bridges | last post by:
Start with two tables, parent records in one and child records in the other, a one-to-many relationship. Create a select statement joining the two. Display the query in datasheet mode. When I...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.