473,480 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

bind data from another page

Hi,

I want to have an asp:hyperlink (with target set to _blank) that
points to a multi-field form a user would fill out. After submitting
the form, I want to dynamically change the text of the asp:hyperlink
based on the content of the filed form. How do I do this? Code
examples would help greatly.

Thanks
Nov 18 '05 #1
3 1313
After you have collected your data, you would need to use a JavaScript
handler to force your main page (which you can get to using the
window.parent property) to post back. Of course, if you did this right away,
your child page would not have had an opportunity to post back yet, so there
is no new data on the server. An easy solution might be to have the child
page post back, and direct you to a new page containing a script to force
the parent to update and then close itself.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Hyrum Mortensen" <hy****@hotmail.com> wrote in message
news:28**************************@posting.google.c om...
Hi,

I want to have an asp:hyperlink (with target set to _blank) that
points to a multi-field form a user would fill out. After submitting
the form, I want to dynamically change the text of the asp:hyperlink
based on the content of the filed form. How do I do this? Code
examples would help greatly.

Thanks

Nov 18 '05 #2
this is quick but can't you pass the control name to the pop up window and
then pass something back to the javascript.window.opener and set the value
of the control you passed?

I believe a good example of this can be found by doing a search on google
about .net pop up calendar control.

Marty U.

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
After you have collected your data, you would need to use a JavaScript
handler to force your main page (which you can get to using the
window.parent property) to post back. Of course, if you did this right away, your child page would not have had an opportunity to post back yet, so there is no new data on the server. An easy solution might be to have the child
page post back, and direct you to a new page containing a script to force
the parent to update and then close itself.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Hyrum Mortensen" <hy****@hotmail.com> wrote in message
news:28**************************@posting.google.c om...
Hi,

I want to have an asp:hyperlink (with target set to _blank) that
points to a multi-field form a user would fill out. After submitting
the form, I want to dynamically change the text of the asp:hyperlink
based on the content of the filed form. How do I do this? Code
examples would help greatly.

Thanks


Nov 18 '05 #3
> this is quick but can't you pass the control name to the pop up window and
then pass something back to the javascript.window.opener and set the value
of the control you passed?


Absolutely. It all depends on what information you are collecting. If you
collect a date, and want to display all entries for that date from a
database, then you need a server round trip. If you just want to display
that date, you can just feed it back and modify it on the client.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
Nov 18 '05 #4

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

Similar topics

3
384
by: Steve | last post by:
C# I have some combo boxes, full of lookup descriptions. When I retrieve a dataset for my record, the values that need binding to the combos are the actual record IDs that relate to these...
0
1393
by: Steve | last post by:
Hi I have a db with 2 tables that I want to bind to a grid depending on a selection in a Dropdownlist Also I want to be able to select a row from the gris to fill some textboxes. The databases...
4
4072
by: Greg Linwood | last post by:
I am wondering what the best approach to binding XML data to an asp:Table from the Page_Load event in a code behind module? I'm using VB.Net and initially approached this by adding a table to the...
3
1710
by: david | last post by:
I have bind a dataset, DentistDataSet1, to TextBox, txtLastName, by set the textbox property (databindings--> simple binding--> ... -->LastName) and also bind it to a dropdown list, DropdownList1...
4
1158
by: Shapper | last post by:
Hello, I have this code to bind a DataGrid to a DataReader when page loads: Sub Page_Load(Sender As Object, e As EventArgs) dgContent.DataSource = drContent dgContent.DataBind() End Sub ...
2
1686
by: Jim in Arizona | last post by:
Being new, i experiment a lot and usually get results I'm not hoping for. My current problem is reading from a SQL 2000 table and populating an ASP dropdownlist with a column from the table. The...
1
1820
by: mr2_93 | last post by:
Hi All, I am new to ASP.NET and I am looking for help with the dropdownlist data control. I wonder if someone could show me how to past the SelectedValue of a data-bind dropdownlist to...
17
2727
by: A_PK | last post by:
I have problem databinding the DataGrid with DataView/DataSet after the filter... I create the following proceudre in order for user to filter as many as they want, but the following code is only...
0
1019
by: Nick | last post by:
Hi, I have a Repeater control and want to bind a hyperlink to each repeated row. For this I can use the following syntax (excuse any incorrect naming but I don't have any code to hand): ...
2
3372
by: duancg | last post by:
Hi, I wonder if someone could help since I wasn't able to find the answer through search. I have a simple .aspx page that shows data from a database table, as a table in UI. Now the data uses...
0
7040
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
6905
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
7041
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
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6908
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...
1
4772
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...
0
4478
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2994
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...
0
178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.