473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

NEWB stuck (ASP.NET 2)

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
Mar 28 '06 #1
2 923
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

Mar 29 '06 #2
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" <Sc*****@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
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

Mar 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
3
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
2
by: ASiF | last post by:
Hi i am completely novice at programming, would appreciate some help. The program needs to be able to take a set of up to a 100 numbers (between 1 to 9) "inputted" at the prompt and then assign...
4
by: eltower | last post by:
Hey all, I'm trying to write a program in Python for learning purposes which is meant to: Generate a random number from 0 to 6 Insert this random number to the end of a list unless the number...
3
by: Kadagan | last post by:
I am just learning CCS and I can't get my external sheet to affect my pages... I've tried to simplify it and it still is having no affect. I'm running windows XP media center edition 6.0. I've...
3
by: zylo | last post by:
hello ive just started learning c++ and im really stuck. the program doesnt seem to beable to read the if statement properly # include <iostream> using namespace std; int getDaysHire(int);...
2
by: Carl | last post by:
I'm new to C#, and I have only limited programming experience. I've been doing the video tutorials at MS's website, and they're very helpful, but I decided to experiment with GDI+ and have gotten...
1
by: johnny | last post by:
What I want to do is the following: Web user uploads a word doc (web app written in php), and I need it to move the uploaded word doc, on to another machine and conver it to pdf. Then update...
2
by: uluvale96799 | last post by:
Hi, I'm very new to programming so forgive me for asking the dumb question. I'm trying to develop a database application using c#, and I'm using the northwind database. I'm currently using...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.