473,763 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No two-way databinding

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?
Nov 19 '05 #1
6 3573
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?


Nov 19 '05 #2
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?


Nov 19 '05 #3
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?


Nov 19 '05 #4
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?


Nov 19 '05 #5
> 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


Nov 19 '05 #6
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.FindC ontrol("Multivi ew1!View!Textbo x1") 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


Nov 19 '05 #7

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

Similar topics

7
1593
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 Macgregor): To the tune of "Torn Between Two Lovers": Torn between two languages, both of which are awesome tools Lovin' both of you is breakin' all the rules Torn between two incredibly awesome scripting languages, I'm startin' to drool
8
1748
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). TABLE matchResults cont_id team_id contest_result 1 1 3 1 2 5
6
1883
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
0
1698
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 became realllllllllllly slow. Content in LoginView Role Groups was not displaying even after a user in a role had logged in. It was taking about 15 seconds or so for the login control to display when the login link was selected on the homepage....
9
5273
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 w1 and w2 make up the first string and, w3 and w4 make up the second string. I do not want to allocate memory, then put the words together to create a string only to facilitate strcmp() comparison. My question; Does anyone know how to get the...
6
2481
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 --------------------------------------------------------------------------------- @strProductCode nvarchar (50)
3
6213
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 is some minute deference.
8
1995
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 server, but I get the problem that the two sessions are not getting updated values from each requests. Is this by design or is there any solution to do this? -- Best regards | Schöne Grüße
13
5603
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 compile although it appears to me that it should. template<typename TYPE> void foo( std::map< int, TYPE pmap )
0
9563
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9938
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.