How to databind control in one web page from another web page
I have a listbox control and a button control in a web page. Once the user clicks the button another web page is opened.
The new web page will accept some data from the user which will be used to databind the listbox in the first web page.
In other words, the two web pages ( the parent window and the child window) are open at the same time. The child page needs to databind a control in the parent page.
Is there a way to do it?
I need some code.
Thx in advance
I hate to do this.
Looks like I will have to take help of viewstate and session si...how to navigate the url page in one web application page to another web application page
In my project one solution have 2 web apllications in one folder.like
in firt webapplication1 i created one aspx page like sample.axpx.
in second webapplication2 i created one aspx page like sample2.aspx...
in sample2.aspx page have hyperlinl. I need to navigate this hyperlink when i click it go to the sample.axpx.
how can i write navigate url for this...help me.
As i understand u, you need Multi Project soltuionsee this link, http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/archive/2006/02/19...How to open another web page from one web page
Hi, I am writing an asp.net(C#) 2.0 web page with a link to another web page by clicking a button control on the page, so how can I link it in the codes? I cannot access another aspx page class within the current aspx page class.
If you need to re-direct the user to another page after pressing your Button, then use the Response.Write method like so:
Response.Redirect("~/Default.aspx")Thanks, EdMicrosoft MVP - ASP/ASP.NET
1) Response.Redirect( "Destination PageName");2) Response.Transfer("Destination PageName");3) Hyperlink( set Url="...Is it possible to embed part of one web page into another web page?
Any answers will be highly appreciated. Thanks.
If you can adjust the page you want to embed onto the other page, you could use a .ascx (web forms control). Then you can add controls to it and just drag and drop it using VS.NET from the Solution Explorer window to the webform. You can then also embed it onto other pages in that same web project easily by drag n drop. I hope this helps, it's not exactly a portion of a web page but may be an acceptable alternative for you.Rachel AppelMVP - ASPInsider
In order to better answer this, I could use some details as ...A page can have only one server-side Form tag
I have a web user control in my web page. The user control (ascx) consist of a text box and button. The web page consist of text boxes and buttons also. Both pages have form tags with runat=server. When I run the web page it comes up with the error "A page can have only one server-side Form tag." Both the user control and web page need the form tag with runat=server. Is there a way I can code these pages where there won't be a conflict between the web user control and the web page? Thanks
JohnMo wrote:Both the user control and web page need the form tag wit...Can my web page with a form submit to other web pages forms?
I was wondering if I created an aspx page that had a form on it that I could use the submit button to submit this form's contents to other web pages forms(servers accepting those form's data). I am thinking this would be a great way to update data on particular web pages without having to actually visit those similar web pages. Any ideas, examples would be much appreciated. Thanks in advance.
Yes you can. It's called Cross Page Posting: http://msdn2.microsoft.com/en-us/library/ms178139.aspxAlso: http://msdn2.microsoft.com/en-us/library/ms178140.aspx might ...how to embed part of one page into another web page?
Any feedback will be highly appreciated.Thanks
There is a HTML element called IFrame where you specify the size of the frame and the source URL which will then render that URL inside the IFrame.
Philip Beadle (MVP, MCAD, MCT DotNetNuke Core Team)
Use IFrame will contain the whole web page, right? How about I want to contain part of the web page?
Thank you very much for your reply.
...to access a control existing in one page from another page
I want to access a control existing in one page
from another page
How can i do thins in asp.net 2.0 (vb.Net)
I believe you can this by using previouspages. You need to enable it in the page directive and use the postbackurl propertie of a control. For example you have 2 pages. Page 1 contains a label and a button. The button's postbackurl is set to page 2. When you press the button and you get forwarded to page 2 you can then access the control from page 1 by using the previouspage function. Here is a document about it: http://aspalliance.com/...Multiple forms on one page, how do I post on to another page?
I have several submit buttons and text boxes, datagrids, etc. on a single page.
I want one particular text box and submit button to POST to another page. Since there is only one form tag with postback, is this possible.
I need POST instead of querystring because the string may be long (it's a search field) and the results are too large to fit on the same page.
Can I take my text box value and submit that to another page from a page with numerous other postback actions on it?
You can do a couple of things:
(1) Use a non-serv...Web page opens second web page, how does first page know when the second one closes?
I have an app written in ASP.NET where one of the web pages opens up a web page in a second window. When this second web page closes, the first web page needs to update its data. How do you do this?
You can have the child window call a parent method when the user clicks a link to close it. Otherwise, you'd have to set up polling to check for the existence of the child, and refresh if it doesn't exist. Please Mark As Answer posts that helped you."If we learn from our mistakes, I should be brilliant by now."
Thanks, this gives me part of the answer...link a web page to another web page?
I have a web page with my banner and buttons for my site on it.
I want to add this to all of my pages. Instead of copying a pasting that to every page.
Is there a way i can link the pages to the banner page?
Or you could create a template page.
That is: Create a page inherited from System.Web.UI.Page and
place your banner and buttons in this and then have all your other
pages inherit tis custom page instead of System.Web.UI.Page.
...i web page referencing another web page
Can one web page reference a control on another web page?
EX. a page is brought up with a number of textbox controls. Using a hyperlink one can pop up a nother page with the calendar control. Select a date from the calendar control and place the value back in the previous page. Can this be done and how?
I've a frame page called default.aspx that has a left panel as navigation and the content page. When I first start the application, the content page is loaded with login.aspx page for user to login, however, when I first load the default.aspx page, I would like all controls (hylerlink and button) on the left panel be disabled until the user is loggin. So my question is that how do write script to enable the left navigation page one the user successfully authenicated. Which mean updating controls of another page. Is it possible?
Thanks,...passing a variable form one page to a sql query in another page
i have a categories page and when the user clicks on a category it is to go to a products page which list all the products in that category. i cant believe it can be that difficult. ive been all round the block on this and have posted a number of messages on another forum but the trail went cold. the story so far... http://www.sitepoint.com/forums/showthread.php?t=396963
any help would be muchly much appreciated!
You have several options:
QueryString: You can use querystrings to pass variables from one page to another.
If you are using ASP.NET 2.0, you can use Cross ...