I have a web page with a formview, and a multiview in the formview. When I
databind the values inside the multiview views, there is no option for
two-way databinding. The form populates fine, but when it calls the update
method, it calls it with no parameters.
Is there just no support for two-way databinding inside these controls, or
is there a technique I am missing? 6 3547
Two-Way databinding is supported in ASP.NET 2.0. In 1.1 upon postback you'll
have to map the values yourself manually.
-Brock
DevelopMentor http://staff.develop.com/ballen I have a web page with a formview, and a multiview in the formview. When I databind the values inside the multiview views, there is no option for two-way databinding. The form populates fine, but when it calls the update method, it calls it with no parameters.
Is there just no support for two-way databinding inside these controls, or is there a technique I am missing?
Umm, since I am using a formview and a multiview, I am using ASP.Net 2.0
(unless these were added to ASP.Net 1.1 when I wasn't looking). It still
doesn't work in the scenario I described. Their is no option listed, and the
update method on the objecdatasource is called with nothing passed for each
parameter.
"Brock Allen" wrote: Two-Way databinding is supported in ASP.NET 2.0. In 1.1 upon postback you'll have to map the values yourself manually.
-Brock DevelopMentor http://staff.develop.com/ballen I have a web page with a formview, and a multiview in the formview. When I databind the values inside the multiview views, there is no option for two-way databinding. The form populates fine, but when it calls the update method, it calls it with no parameters.
Is there just no support for two-way databinding inside these controls, or is there a technique I am missing?
How are you databinding? If you use Eval, then that's still one-way. Change
your templates to use Bind and then you'll get the two-way behavior. The
quick starts go into this a bit. Maybe they'll help: http://beta.asp.net/QUICKSTART/aspne...spx#twowaybind
-Brock
DevelopMentor http://staff.develop.com/ballen Umm, since I am using a formview and a multiview, I am using ASP.Net 2.0 (unless these were added to ASP.Net 1.1 when I wasn't looking). It still doesn't work in the scenario I described. Their is no option listed, and the update method on the objecdatasource is called with nothing passed for each parameter.
"Brock Allen" wrote:
Two-Way databinding is supported in ASP.NET 2.0. In 1.1 upon postback you'll have to map the values yourself manually.
-Brock DevelopMentor http://staff.develop.com/ballen I have a web page with a formview, and a multiview in the formview. When I databind the values inside the multiview views, there is no option for two-way databinding. The form populates fine, but when it calls the update method, it calls it with no parameters.
Is there just no support for two-way databinding inside these controls, or is there a technique I am missing?
I am using Bind, which is the default when using Visual Studio. I even tried
setting the bind method in the custom setting. It works fine on a form when
the controls are not in the multiview control. When I use the multiview is
when I run into a problem. There are too many controls for me to display to
the user all at once, which is why I am using the multiview.
I just found it on the bug reports, so aparently this is a bug with ASP.Net
2.0. Any time a control is in a container it does not bind properly. I will
need to code around this until RTM.
"Brock Allen" wrote: How are you databinding? If you use Eval, then that's still one-way. Change your templates to use Bind and then you'll get the two-way behavior. The quick starts go into this a bit. Maybe they'll help:
http://beta.asp.net/QUICKSTART/aspne...spx#twowaybind
-Brock DevelopMentor http://staff.develop.com/ballen Umm, since I am using a formview and a multiview, I am using ASP.Net 2.0 (unless these were added to ASP.Net 1.1 when I wasn't looking). It still doesn't work in the scenario I described. Their is no option listed, and the update method on the objecdatasource is called with nothing passed for each parameter.
"Brock Allen" wrote:
Two-Way databinding is supported in ASP.NET 2.0. In 1.1 upon postback you'll have to map the values yourself manually.
-Brock DevelopMentor http://staff.develop.com/ballen I have a web page with a formview, and a multiview in the formview. When I databind the values inside the multiview views, there is no option for two-way databinding. The form populates fine, but when it calls the update method, it calls it with no parameters.
Is there just no support for two-way databinding inside these controls, or is there a technique I am missing?
> I just found it on the bug reports, so aparently this is a bug with ASP.Net 2.0. Any time a control is in a container it does not bind properly. I will need to code around this until RTM.
Oh yes, this does ring a bell. I think the problem was that FindControl doesn't
work for a MultiView, since the child controls are contained in one of the
views. Thus on postback when trying to find the posted controls it wasn't
able to... ick.
-Brock
DevelopMentor http://staff.develop.com/ballen
On kind of a different subject, it seems a little silly that the controls
added are not accessible in the codebehind like they were in 1.1. I have to
use Formview1.FindControl("Multiview1!View!Textbox1") to find a text box
placed on the view. This is true with any "naming container" including
panels. I still haven't figured out how to rig events to these controls
(AddHandler after finding control maybe?).
"Brock Allen" wrote: I just found it on the bug reports, so aparently this is a bug with ASP.Net 2.0. Any time a control is in a container it does not bind properly. I will need to code around this until RTM.
Oh yes, this does ring a bell. I think the problem was that FindControl doesn't work for a MultiView, since the child controls are contained in one of the views. Thus on postback when trying to find the posted controls it wasn't able to... ick.
-Brock DevelopMentor http://staff.develop.com/ballen
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jamey Cribbs |
last post by:
At the risk of calling my manhood into question, I humbly submit the
following little diddy (which is a blatant rip-off of a heart wrenching
melody of the '70s by that international superstar, Mary...
|
by: John Grenier |
last post by:
Hi,
I have to determine the "standing" (WIN - TIE - LOSS) from
confrontations between two teams on a contest. The table matchResults
has fields cont_id, team_id and contest_result (int).
...
|
by: Willem |
last post by:
Hi,
I have a newbie question: is it possible to make a search form in asp that
searches in two different databases (access)?
Willem
|
by: clintonG |
last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2
development. After installing Visual Studio and SQL Express RTM my
application has blown up. Logging in to the application...
|
by: Steven |
last post by:
Hello,
I have a question about strcmp(). I have four words, who need to be
compared if it were two strings. I tried adding the comparison values
like '(strcmp(w1, w2) + strcmp(w3, w4))', where...
|
by: Laura K |
last post by:
This is probably a simple question but I want to make sure I am doing
it right.
I have a spoc with two select statements which results in two tables.
Very Basic
...
|
by: Simon |
last post by:
Dear reader,
For matching of two fields it is required that the fields has the same
content.
But now I have the situation that two text fields has not precisely the same
content but there...
|
by: Michael Schwarz |
last post by:
Hi,
I have a problem where I have two requests (i.e. two different windows that
are using the same session) that are accessing the session collection. The
requests will need more time on the...
|
by: paul.joseph.davis |
last post by:
Hi,
I've just had my first encounter with two-phase lookup and I'm
scratching my head a bit. The idea behind two phase look up is pretty
easy to understand, but I have a case that fails to...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |