HighTechTalks DotNet Forums  

webusercontrol with multi function question

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss webusercontrol with multi function question in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
WebBuilder451
 
Posts: n/a

Default webusercontrol with multi function question - 12-26-2006 , 06:44 PM






I'm trying to create a control that will add and edit items in a table
on add is easy, i just create the control with the empty text boxes, include
an insert button and away it goes.
However, i'd like to also have an Update mode that will accept an id, run a
query to then populate the text boxes for edit, then update
is there an established way to do allow for this.
I can run a query from the page where the control is included, then find
each text box, and then set the value, but this seems counter productive the
concept of haveing a control in the first place. I'd settle for being able to
call a sub within the control, but i don't think this is possible?

Any help would be appreciated.
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.