P
planetthoughtful
Hi All,
I'm in that painful beginning stage of trying to wrap my head around C#
in ASP.NET - so I will apologise in advance for asking silly questions
and hope the assembled will be forgiving.
Ooookay - I have a fairly simple data entry form and when the user
clicks the submit button I want to insert the values from the fields on
the form into an existing table in SQL Server 2000.
At this point I have two textboxes on the form, with IDs of txtSubject
and txtSummary, along with a submit button with an onserverclick
attribute of fnInsertRecord.
My table is called tblArticles and it contains a seeded autonumber
field and two other fields named (no surprises) subject and summary.
Can anyone help me figure out what in the name of sanity should go in
the following to insert the record in tblArticles and update the
changes back to the database?
private void fnWriteRecord(object sender, EventArgs e){
// mysterious stuff required here
}
Many thanks for any help!
Much warmth,
planetthoughtful
I'm in that painful beginning stage of trying to wrap my head around C#
in ASP.NET - so I will apologise in advance for asking silly questions
and hope the assembled will be forgiving.
Ooookay - I have a fairly simple data entry form and when the user
clicks the submit button I want to insert the values from the fields on
the form into an existing table in SQL Server 2000.
At this point I have two textboxes on the form, with IDs of txtSubject
and txtSummary, along with a submit button with an onserverclick
attribute of fnInsertRecord.
My table is called tblArticles and it contains a seeded autonumber
field and two other fields named (no surprises) subject and summary.
Can anyone help me figure out what in the name of sanity should go in
the following to insert the record in tblArticles and update the
changes back to the database?
private void fnWriteRecord(object sender, EventArgs e){
// mysterious stuff required here
}
Many thanks for any help!
Much warmth,
planetthoughtful