I thought I would try this question again as I didn't get a
satisfactory reply first time.
Within a Form View (fvSingleLineOrders), I have two DropDownLists.
The
first, ddSiteTypes, contains a selection of Site Types. The second
(ddDestinations), is to contain a different selection based on the
choice of Site Type.
Here is my code:
protected void ddSiteTypes_SelectedIndexChanged(object sender,
EventArgs e)
{
DropDownList myList =
(DropDownList)fvSingleLineOrders.FindControl("ddSiteTypes");
int number = Convert.ToInt32(myList.SelectedValue);
Session["siteTypeID"] = number;
fvSingleLineOrders.DataBind();
}
Unfortunately, this resets all the other fields on the form.
How can I make it so it only updates ddDestinations?
fvSingleLineOrders is a Form View Control. It has its own databinding
code. I only want to update one field on the form - ddDestinations
What basis do you have that posting the same question twice will yield
different results? Your first premise reads: "please let me waste
your time". Regardless, it is a simple sort of thing you are asking
so can't believe wasn't answered satisfactorily the first time you
asked it.
#1 make sure you are only binding to your first dropdown data source
when !IsPostback, and
#2 make sure that dropdown causes postbacks (not the default behavior
on the property pages)
Am I missing something?
On May 12, 11:11 am, stapes <steve.sta...@gmail.com> wrote:
> I thought I would try this question again as I didn't get a
> satisfactory reply first time.
> Within a Form View (fvSingleLineOrders), I have two DropDownLists.
> The
> first, ddSiteTypes, contains a selection of Site Types. The second
> (ddDestinations), is to contain a different selection based on the
> choice of Site Type.
> Here is my code:
> Unfortunately, this resets all the other fields on the form.
> How can I make it so it only updates ddDestinations?
> fvSingleLineOrders is a Form View Control. It has its own databinding
> code. I only want to update one field on the form - ddDestinations
On 12 May, 20:33, "Crisatunity (blog.crisatunity.com)"
<cleveridea....@gmail.com> wrote:
> What basis do you have that posting the same question twice will yield
> different results? Your first premise reads: "please let me waste
> your time". Regardless, it is a simple sort of thing you are asking
> so can't believe wasn't answered satisfactorily the first time you
> asked it.
> #1 make sure you are only binding to your first dropdown data source
> when !IsPostback, and
> #2 make sure that dropdown causes postbacks (not the default behavior
> on the property pages)
> Am I missing something?
I don't know how to do that, that is why I am asking. Here is the
field I want binding to:
<cleveridea....@gmail.com> wrote:
> What basis do you have that posting the same question twice will yield
> different results? Your first premise reads: "please let me waste
> your time". Regardless, it is a simple sort of thing you are asking
> so can't believe wasn't answered satisfactorily the first time you
> asked it.
> #1 make sure you are only binding to your first dropdown data source
> when !IsPostback, and
> #2 make sure that dropdown causes postbacks (not the default behavior
> on the property pages)
> Am I missing something?
> On May 12, 11:11 am, stapes <steve.sta...@gmail.com> wrote:
> > Hi
> > I thought I would try this question again as I didn't get a
> > satisfactory reply first time.
> > Within a Form View (fvSingleLineOrders), I have two DropDownLists.
> > The
> > first, ddSiteTypes, contains a selection of Site Types. The second
> > (ddDestinations), is to contain a different selection based on the
> > choice of Site Type.
> > Here is my code:
> > Unfortunately, this resets all the other fields on the form.
> > How can I make it so it only updates ddDestinations?
> > fvSingleLineOrders is a Form View Control. It has its own databinding
> > code. I only want to update one field on the form - ddDestinations
1. Not really. The list is noisy. The list has rules. The OP is making it noisier, and violating a rule. 2. So what was YOUR purpose here? Just to stop in, take a pee on someone's leg, and leave, also without being helpful?
OP: please regard the rules of the forum. By breaking the rules, you make the experience less pleasant for us all, and will tend to incline yourself towards getting less help.
On Tue, May 13, 2008 at 10:20 AM, Gomerbiz <gomer...@iname.com> wrote:
> Or in other words:
> I'm better than you so let me be condescending and belittle you. Then > and only then will I agree to be helpful.
> On May 12, 2:33 pm, "Crisatunity (blog.crisatunity.com)" > <cleveridea....@gmail.com> wrote: > > What basis do you have that posting the same question twice will yield > > different results? Your first premise reads: "please let me waste > > your time". Regardless, it is a simple sort of thing you are asking > > so can't believe wasn't answered satisfactorily the first time you > > asked it.
> > #1 make sure you are only binding to your first dropdown data source > > when !IsPostback, and > > #2 make sure that dropdown causes postbacks (not the default behavior > > on the property pages)
> > Am I missing something?
> > On May 12, 11:11 am, stapes <steve.sta...@gmail.com> wrote:
> > > Hi
> > > I thought I would try this question again as I didn't get a > > > satisfactory reply first time.
> > > Within a Form View (fvSingleLineOrders), I have two DropDownLists. > > > The > > > first, ddSiteTypes, contains a selection of Site Types. The second > > > (ddDestinations), is to contain a different selection based on the > > > choice of Site Type. > > > Here is my code:
> > > Unfortunately, this resets all the other fields on the form. > > > How can I make it so it only updates ddDestinations? > > > fvSingleLineOrders is a Form View Control. It has its own databinding > > > code. I only want to update one field on the form - ddDestinations
> 1. Not really. The list is noisy. The list has rules. The OP is making it
> noisier, and violating a rule.
> 2. So what was YOUR purpose here? Just to stop in, take a pee on someone's
> leg, and leave, also without being helpful?
> OP: please regard the rules of the forum. By breaking the rules, you make
> the experience less pleasant for us all, and will tend to incline yourself
> towards getting less help.
> On Tue, May 13, 2008 at 10:20 AM, Gomerbiz <gomer...@iname.com> wrote:
> > Or in other words:
> > I'm better than you so let me be condescending and belittle you. Then
> > and only then will I agree to be helpful.
> > On May 12, 2:33 pm, "Crisatunity (blog.crisatunity.com)"
> > <cleveridea....@gmail.com> wrote:
> > > What basis do you have that posting the same question twice will yield
> > > different results? Your first premise reads: "please let me waste
> > > your time". Regardless, it is a simple sort of thing you are asking
> > > so can't believe wasn't answered satisfactorily the first time you
> > > asked it.
> > > #1 make sure you are only binding to your first dropdown data source
> > > when !IsPostback, and
> > > #2 make sure that dropdown causes postbacks (not the default behavior
> > > on the property pages)
> > > Am I missing something?
> > > On May 12, 11:11 am, stapes <steve.sta...@gmail.com> wrote:
> > > > Hi
> > > > I thought I would try this question again as I didn't get a
> > > > satisfactory reply first time.
> > > > Within a Form View (fvSingleLineOrders), I have two DropDownLists.
> > > > The
> > > > first, ddSiteTypes, contains a selection of Site Types. The second
> > > > (ddDestinations), is to contain a different selection based on the
> > > > choice of Site Type.
> > > > Here is my code:
> > > > Unfortunately, this resets all the other fields on the form.
> > > > How can I make it so it only updates ddDestinations?
> > > > fvSingleLineOrders is a Form View Control. It has its own databinding
> > > > code. I only want to update one field on the form - ddDestinations
You will always get grief for spreading a single question across
multiple threads; deal with it. -- Improve *yourself* in this regard
before you do it again.
And, I gave you a straightforward answer. You are too stupid or lazy
or both to try and understand it. Good luck.
On May 14, 3:31 am, stapes <steve.sta...@gmail.com> wrote:
> You will always get grief for spreading a single question across > multiple threads; deal with it. -- Improve *yourself* in this regard > before you do it again.
> And, I gave you a straightforward answer. You are too stupid or lazy > or both to try and understand it. Good luck.
> On May 14, 3:31 am, stapes <steve.sta...@gmail.com> wrote: > > Still no solution to my initial problem. What is wrong with you guys? > > If you can't give me a straightforward answer, then shut up.
* If you can't give me a straightforward answer, then shut up.*
Dear Stapes,
as I learn from my 2 weeks stay in this forum, some of the most active people here (maybe moderators) are actually sharp-tongued people, plain ignorant with the level of your urgency, or just having fun teasing their inferiors. but all of it does not matter 'coz you shouldn't rely on everything (your actual problem to be solved) here in the forum. this forum can actually be a great place to learn -or at least to motivate yourself to learn elsewhere.
and no, those people will not shut up, 'coz they DO give solutions, sometimes as crystal clear, (never straight-up to the codes as far to my knowledge), but most of the time just talking about the concepts, where it gets back to yourself on building the solution out of the scraps. though about being straightforward or not, I'm afraid that's a one relative statement that different people may feel depending on your programming level/skills..
loosen up and have a little sense of humor, I hope you'd enjoy your stay here as much as I have.
ps: as a newbie I'd use temporary variables to reload all fields and make sure they do not resets while one or two fields (DropDownList) being updated. hope it helps
On Thu, May 15, 2008 at 2:19 AM, Andrew Badera <and...@badera.us> wrote: > +9000
> On Wed, May 14, 2008 at 1:56 PM, Crisatunity (blog.crisatunity.com) < > mich...@crisatunity.com> wrote:
>> You will always get grief for spreading a single question across >> multiple threads; deal with it. -- Improve *yourself* in this regard >> before you do it again.
>> And, I gave you a straightforward answer. You are too stupid or lazy >> or both to try and understand it. Good luck.
>> On May 14, 3:31 am, stapes <steve.sta...@gmail.com> wrote: >> > Still no solution to my initial problem. What is wrong with you guys? >> > If you can't give me a straightforward answer, then shut up.