Re: Getting a control linked to a database record - beginners question



Perhaps if I could make each control id unique throughout the entire site, I
could use that to look up a specific row ?


"JJ" <abc@xxxxxxx> wrote in message
news:e2EqShRfHHA.4916@xxxxxxxxxxxxxxxxxxxxxxx
OK - I asked this earlier but thought I'd solved it. Clearly not.

I have a control that I need to display text from an sql database. The
control is being used as a web part so can be placed on a page more than
once.

I am trying to work out how I'd get each instance of the control to load
its corresponding database record to display the text?

I would normally do this sort of thing via a querystring, but in this case
its not going to be practical.

Could someone give me some hints on how I could get the control to know
which database record it needs without using querystrings?

What I think I need is a unique property value (unique on all pages) for
each control, that I can store in the database record.....??

Help!!

JJ



.



Relevant Pages

  • Re: formating text in a textbox control?
    ... I 'was' using the .ToShortDateString() function like so: ... > worked great until I came across a database record with NULL for this ... > textbox control itself that would control formating of it's own contents. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET 2.0 menu question
    ... I use a menu control that is bound to a sitemap to display menu items, ... and I have to dynamically add some querystring value to that URL. ... I assume that I can't use the sitemap to specify such menu item? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Getting a control linked to a database record - beginners question
    ... I guess the url combined with the control id would be a unique value. ... I have a control that I need to display text from an sql database. ... I would normally do this sort of thing via a querystring, ... which database record it needs without using querystrings? ...
    (microsoft.public.dotnet.framework.aspnet)
  • ASP.NET 2.0 menu question
    ... I use a menu control that is bound to a sitemap to display menu items, ... and I have to dynamically add some querystring value to that URL. ... I assume that I can't use the sitemap to specify such menu item? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: RowSelectorColumn and DataGrids
    ... Check out this article from datagrid girl on how to use this control, ... "tshad" wrote in message ... > I am trying to change the database record when the control is changed. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading