NEWB stuck (ASP.NET 2)

Discussion in 'ASP .Net' started by =?Utf-8?B?U2NvdGNoeQ==?=, Mar 28, 2006.

  1. Hi all,

    Env : ASP.NET 2 (& VB.NET)

    How in heck can I rebind a DropDownlist that is contained in an Insert
    Template in
    a Formview control.

    I want to have the dropdown list requery the datasource each time the user
    has selected from it, as the underlying SQL selects a list of rows that has
    eliminated the previously selected row from the resultset.

    I have looked and looked but cannot see how this is achieved.

    All help gratefully received.

    Scotchy
     
    =?Utf-8?B?U2NvdGNoeQ==?=, Mar 28, 2006
    #1
    1. Advertisements

  2. =?Utf-8?B?U2NvdGNoeQ==?=

    andrew Guest

    I'm no expert but i'll throw my 2 cents in. The ItemInserted Command
    is fired when an item is inserted into a formview and the event args
    e.NewValues contains a dictionary of new values. I'd suspect you could
    use this.

    Good Luck,
    Andrew
     
    andrew, Mar 29, 2006
    #2
    1. Advertisements

  3. You might be able to explicitly set the dropdown's datasource (freshly
    queried from the database) and call DataBind() in Page_Load() or
    SelectedIndexChanged or somesuch.

    "Scotchy" <> wrote in message
    news:...
    > Hi all,
    >
    > Env : ASP.NET 2 (& VB.NET)
    >
    > How in heck can I rebind a DropDownlist that is contained in an Insert
    > Template in
    > a Formview control.
    >
    > I want to have the dropdown list requery the datasource each time the user
    > has selected from it, as the underlying SQL selects a list of rows that
    > has
    > eliminated the previously selected row from the resultset.
    >
    > I have looked and looked but cannot see how this is achieved.
    >
    > All help gratefully received.
    >
    > Scotchy
    >
    >
     
    Benjamin Strackany, Mar 29, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. xerj
    Replies:
    4
    Views:
    458
  2. Steve
    Replies:
    0
    Views:
    517
    Steve
    Mar 2, 2006
  3. as mellow as a horse

    Newbie stuck posting to an ASP page

    as mellow as a horse, May 10, 2004, in forum: HTML
    Replies:
    6
    Views:
    508
    as mellow as a horse
    May 10, 2004
  4. sklett

    newb: client script with asp.net

    sklett, Sep 15, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    531
    JeffP@Work
    Sep 15, 2006
  5. Fayven Wren

    Newb ASP question

    Fayven Wren, Sep 12, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    522
    New Bee
    Sep 12, 2007
  6. Jose M Hernandez

    Graphs in ASP? ASP newb here

    Jose M Hernandez, Jan 6, 2006, in forum: ASP General
    Replies:
    12
    Views:
    341
  7. Brandon Bpolenz

    complete newb stuck on command...

    Brandon Bpolenz, Sep 10, 2010, in forum: Ruby
    Replies:
    2
    Views:
    186
    Brandon Bpolenz
    Sep 12, 2010
  8. Just Me

    Net::SMTP on Windows 2000. I'm stuck!

    Just Me, Nov 12, 2003, in forum: Perl Misc
    Replies:
    2
    Views:
    243
    Jim Mozley
    Nov 13, 2003
Loading...