When you talk about adding/editing/deleting, you're not talking
about (a) selecting the data and then (b) doing the add/update/delete on
that recordset, are you?  Because that would seem like a really odd way
to do what you want to do...

        You get the data, use the DataReader to populate your form
elements, and then on postback, you do all that crazy stuff with various
other database operations.  No sense selecting more data just to change
it...

Cheers,

Peter

-----Original Message-----
From: [email protected] On Behalf Of Michael Swanson

DataReader is good, but does'nt it provide forward only read?  I 
will need to be able to edit, update, delete, or even make some of 
these records inactive based on criteria.  I will also always be 
adding new records too, that will need to be viewed one at a time.  
The best example of something that does what I want it to is the 
Windows Dataform because it gives the ability to use either a 
datagrid, or labels and textboxes which is what I want to do.  The 
windows dataform very closely resembles what I want to do, because I 
can have other tables related to the customer table, and show their 
jobs, resumes, etc.  How can I do this kind of management using C# 
Web forms?

--- In [email protected], Charles Carroll 
<[EMAIL PROTECTED]> wrote:
> #1 (ideal when you want to show one record in a form)
> A DataReader.
> 
> Google C# DataReader samples.
> 
> read 1 record into a DataReader and then assign the .text and 
> .selecteditem.value for each reader field value.
> 
> #2 If you want a Datagrid that when you click on a row becomes a
form
> (I do not think you want that) that is a different story but I
don't
> think you want that so will hold off and recommend #1 till you
teel me
> you do need #2
> 
> On 6/30/05, Michael Swanson <[EMAIL PROTECTED]> wrote:
> >  Hi all,
> >  I am in need of some help with a web form.  I have all of my
> >  information that I need in a database.  I want to pull the 
information 
> >  from the database and display the data in labels and
textboxes.  I am 
> >  trying to figure out how to do this.  I can easily pull the
info out 
> >  to a datagrid, but I am trying to figure out how to take each
row of 
> >  information and put them on a scrollable form that will allow
the user 
> >  to click through each record.  If you can help or need more
detail, 
> >  then please let me know.  Thanks!





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to