Have you tried explicitly deckaring type of the Main_Number parameter?
Main Topics
Browse All TopicsHello,
I have a details veiw used to update a data through a strongly typed dataset.
At the _ItemUpdating event I remove some parameters so I can add them back in with the selected values from dropdownlists. Then the program continues to the updating method with the new values. Except for just one value, Main_Number in the code below.
The only difference between this parameter and the others is that it will be used in the method as a string while the others will be used as number types (decimal and integer as shown below). If anything thing I would expect the number types to fail but they work just fine.
I'm trying to figure out why just one (Main_Number) is not properly passed to the method like the others. What happens is the original value is passed instead of the changed value.
Thanks very much,
-Bill
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I just realized that I missed adding part of your recommendation. It flagged it as invalid (maybe that is another clue to the issue I'm having?). So, I needed to write it like this:
odsParentDetail.UpdatePara
odsParentDetail.UpdatePara
"Value" was not in the intellisense, but DefaultValue was. I wonder if that means I'm missing one of the "using .." statements that I need.
I think the problem may be caused by the page code below.
I have a dropdown list where the user selects "Main" by Name, then the Number is passed as the parameter, at least that is what I want to accomplish.
But, I also have a label in the Edit template that shows the selected Number using javascript. I think maybe the Bind in that label prevents my code from using the selected ddl parameter.
Not yet sure how to modify to get around it...
Yes, that is the problem. if I change this:
<EditItemTemplate>
<asp:Label ID="lblMainNumber" runat="server" Text='<%# Bind("Main_Number") %>'></asp:Label>
</EditItemTemplate>
to this:
<EditItemTemplate>
<asp:Label ID="lblMainNumber" runat="server" Text=''></asp:Label>
</EditItemTemplate>
The parameter from the ddl is passed as desired. I would like to show the Number in that label when the page loads if possible. As of the edit above it will show the number after the user selects. So, I need a way other than Bind.
Business Accounts
Answer for Membership
by: Bill732Posted on 2009-09-16 at 15:21:34ID: 25350863
Not that it's relevant, but I missed copying the _ItemUpdating method header into the code snippet above (top method in snippet above):
ct sender, DetailsViewUpdateEventArgs e)
protected void dvParent_ItemUpdating(obje
Sorry