Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Guidance from classic ASP to ASP.NET help needed

Reply
Thread Tools

Guidance from classic ASP to ASP.NET help needed

 
 
jm
Guest
Posts: n/a
 
      01-20-2004
I have/had a form for entering new data with a submit button. Works
great (in .net). Now, I want to populate those same textboxes with
data from a selected list on another page (from querystring). So, I
put those textboxes that I used to enter data initially, wrapped with
a datagrid, and whamo, I can no longer reference textbox.text with
anything. I figure I just have the whole model on this wrong (was
used to response.write recordset("column") you know the rest).

So, I decided to use an example from MSDN with the edititemtemplate.
It works. I can update,delete,cancel from the datalist they use, but
I am doing so only for data that, of course, already exists. What if
it is the initial creation of the record? How do I use this same form
that lets me view, update, delete, and cancel as an empty form for
INSERTing data into my database? When I try to simply run the page
with no data bound to the datalist, nothing renders at all, just blank
page.

Here is the example, it is straightforward; I simply replace the in
memory data with database values. Thank you for any help.

It is the VB example:

http://msdn.microsoft.com/library/de...platetopic.asp
 
Reply With Quote
 
 
 
 
j m
Guest
Posts: n/a
 
      01-20-2004


I am beginning to think I need a form with textboxes and all that to
enter the data and on the same page have the datalist when viewing the
entered data.

I could have them visible or invisible depending on what the user is
doing (Adding or viewing, updating or deleting).

Is this counter intuitive to the asp.net design?

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
jm
Guest
Posts: n/a
 
      01-21-2004
j m <(E-Mail Removed)> wrote in message news:<#(E-Mail Removed)>...
> I am beginning to think I need a form with textboxes and all that to
> enter the data and on the same page have the datalist when viewing the
> entered data.
>
> I could have them visible or invisible depending on what the user is
> doing (Adding or viewing, updating or deleting).
>
> Is this counter intuitive to the asp.net design?
>
> Thanks.
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!


Any wisdom?
 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      01-21-2004
> > Is this counter intuitive to the asp.net design?

Not necessarily. The real question is not whether it's good asp.net design,
but whether it's good application design. And depending on what you're
putting into the page, and what it all does, it may indeed be good design.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"jm" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> j m <(E-Mail Removed)> wrote in message

news:<#(E-Mail Removed)>...
> > I am beginning to think I need a form with textboxes and all that to
> > enter the data and on the same page have the datalist when viewing the
> > entered data.
> >
> > I could have them visible or invisible depending on what the user is
> > doing (Adding or viewing, updating or deleting).
> >
> > Is this counter intuitive to the asp.net design?
> >
> > Thanks.
> >
> > *** Sent via Developersdex http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!

>
> Any wisdom?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 Security - Guidance needed Prem Kumar ASP .Net Security 1 09-16-2006 04:26 PM
Classic asp [Dynu FTP] component Help Needed Michael Kujawa ASP General 4 04-26-2006 08:17 PM
Valuable Guidance needed for VoIP(SIP) implementation. SIP3261 VOIP 7 01-01-2005 03:54 PM
Guidance Needed for MCSD .net exam Kishor Jadhav MCSD 1 02-11-2004 09:12 AM
Design guidance needed: traversing links in ASP Ken Fine ASP General 2 08-14-2003 12:03 AM



Advertisments