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 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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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;
}
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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=()=>{
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
|
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...
|
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...
|
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 :...
|
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...
|
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...
|
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...
|
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...
| |