473,396 Members | 2,109 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,396 software developers and data experts.

Control in FormView1 = Control in Formview2

Simple question from Newbie. Please help. I'm using VS2005 .Net2 in a
simple ASPX page.

In FormView1, I'm in the EditItemTemplate. In FormView1, I have Label1
Databound.

For Testing, I created another SQL connection to another table in Formview1
and added another Formview INSIDE Formview1. The new FormView ID is
Formview2.

In FormView2, I have Label2 databound to the new Connection. I added a
Button to FormView2 and I want the On_Click to pass the value from Label2 to
Label1. Remember, FormView2 is inside FormView1. This way when I click
Update in the EditItemTemplate, it will pass on the new value to the DB.

In summary, I want On_Click:

FormView1.Label1=FormView1.FormView2.Lable2

Please help!
Thanks!
Phil
Jul 24 '06 #1
4 1699
Can I get the answer in VB? Thanks!
"Phillip Vong" <phillip_vong*at*yahoo*dot*comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
Simple question from Newbie. Please help. I'm using VS2005 .Net2 in a
simple ASPX page.

In FormView1, I'm in the EditItemTemplate. In FormView1, I have Label1
Databound.

For Testing, I created another SQL connection to another table in
Formview1 and added another Formview INSIDE Formview1. The new FormView
ID is Formview2.

In FormView2, I have Label2 databound to the new Connection. I added a
Button to FormView2 and I want the On_Click to pass the value from Label2
to Label1. Remember, FormView2 is inside FormView1. This way when I
click Update in the EditItemTemplate, it will pass on the new value to the
DB.

In summary, I want On_Click:

FormView1.Label1=FormView1.FormView2.Lable2

Please help!
Thanks!
Phil

Jul 25 '06 #2
What have you tried so far?

"Phillip Vong" wrote:
Simple question from Newbie. Please help. I'm using VS2005 .Net2 in a
simple ASPX page.

In FormView1, I'm in the EditItemTemplate. In FormView1, I have Label1
Databound.

For Testing, I created another SQL connection to another table in Formview1
and added another Formview INSIDE Formview1. The new FormView ID is
Formview2.

In FormView2, I have Label2 databound to the new Connection. I added a
Button to FormView2 and I want the On_Click to pass the value from Label2 to
Label1. Remember, FormView2 is inside FormView1. This way when I click
Update in the EditItemTemplate, it will pass on the new value to the DB.

In summary, I want On_Click:

FormView1.Label1=FormView1.FormView2.Lable2

Please help!
Thanks!
Phil
Jul 25 '06 #3
Not really anything. I'm confused on how to start this. I thought
something like this would work but it didn't.
FormView1.FindControl("Label1").text = FormView2.FindControl("Label2").text
"clickon" <cl*****@discussions.microsoft.comwrote in message
news:DF**********************************@microsof t.com...
What have you tried so far?

"Phillip Vong" wrote:
>Simple question from Newbie. Please help. I'm using VS2005 .Net2 in a
simple ASPX page.

In FormView1, I'm in the EditItemTemplate. In FormView1, I have Label1
Databound.

For Testing, I created another SQL connection to another table in
Formview1
and added another Formview INSIDE Formview1. The new FormView ID is
Formview2.

In FormView2, I have Label2 databound to the new Connection. I added a
Button to FormView2 and I want the On_Click to pass the value from Label2
to
Label1. Remember, FormView2 is inside FormView1. This way when I click
Update in the EditItemTemplate, it will pass on the new value to the DB.

In summary, I want On_Click:

FormView1.Label1=FormView1.FormView2.Lable2

Please help!
Thanks!
Phil

Jul 25 '06 #4
Anyone? Please help!!!

Basically trying to pass a value from one obect to another.

"Phillip Vong" <phillip_vong*at*yahoo*dot*comwrote in message
news:uF**************@TK2MSFTNGP04.phx.gbl...
Not really anything. I'm confused on how to start this. I thought
something like this would work but it didn't.
FormView1.FindControl("Label1").text =
FormView2.FindControl("Label2").text
"clickon" <cl*****@discussions.microsoft.comwrote in message
news:DF**********************************@microsof t.com...
>What have you tried so far?

"Phillip Vong" wrote:
>>Simple question from Newbie. Please help. I'm using VS2005 .Net2 in a
simple ASPX page.

In FormView1, I'm in the EditItemTemplate. In FormView1, I have Label1
Databound.

For Testing, I created another SQL connection to another table in
Formview1
and added another Formview INSIDE Formview1. The new FormView ID is
Formview2.

In FormView2, I have Label2 databound to the new Connection. I added a
Button to FormView2 and I want the On_Click to pass the value from
Label2 to
Label1. Remember, FormView2 is inside FormView1. This way when I click
Update in the EditItemTemplate, it will pass on the new value to the DB.

In summary, I want On_Click:

FormView1.Label1=FormView1.FormView2.Lable2

Please help!
Thanks!
Phil


Jul 26 '06 #5

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

Similar topics

4
by: Daves | last post by:
hi, sorry for re-posting but it's a simple question and ought to have a very simple solution; I am trying to use Findcontrol to grab a Button control within a Formview control: <form ID="Form1"...
0
by: Chris | last post by:
I have treeview control I want to populate progamatically. It will sit in the edit and insert template of a formview. If I want to reference it with Formview1.FindControl("treeview1") and populate...
2
by: Mr. SweatyFinger | last post by:
Dim checkboxlist1 As CheckBoxList = FormView1.FindControl("insertitemtemplate.checkboxlist1") this doesnt' work. what's wrong
3
by: YMPN | last post by:
Hi Everyone, I'm deen from Riyadh. Please do help me with some problem i have. I have this formview control setup to recieved inputs from user (textbox, dropdownlist, others). After...
0
by: trint | last post by:
I have several GridViews that call a fuction, when clicked, called "getSelected". The very last thing I want getSelected to do is to SetFocus on a FormView (FormView1). Here is how I have this...
4
by: trint | last post by:
I have SetFocus(GridView1) set to the gridview. However, it just goes to the left edge of the control instead of making it visible in the center of the aspx page. Any help is appreciated....
0
by: yosri2005 | last post by:
Hello, I'm sure many of you have seen the error message in the subject. I found quiet a few posts on the web regarding this issue, but the ones I saw mainly tackle this issue when you have a...
1
by: Cirene | last post by:
I have a simple usercontrol with a few controls and a few public functions. It basically is a time control - 1 textbox for Hour, 1 textbox for Minute and 1 dropdown for am/pm. Some public...
3
by: Cirene | last post by:
When you set the value of a user control in a master page, do you have to reference it differently? Also, do they have to be given different names in the templates? For example, this is what I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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,...
0
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...
0
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,...

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.