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="...want to allow create new web page and edit exiting web page using my web application?
I am using asp.net 2.0 VS 2005 pro edition.
I want to make web application(web form) where my uses can go and create simple web page or can create page , so then can add page/edit features
let me know if some one know , how to do this , any idea,
I want to allow my user to create web page and edit web page using my web applications.
some one tell me how to do that
Note : I dont want to use HTMl editor or any third party software tools
Hello, There is many ways you can implement this.
And to build your application you to need to understand the exact ou...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...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 ...Encrypt web application/ web site (all web pages)
Hello, I want to encrypt (secure) the whole web site when it is deployed on a remote server. Is there a way in ASP.NET 2.0 / IIS / 3rd party tool to encrypt all web pages that will render it useless for a competitor if they get it?I did look up this forum and google and did not find anything (though I will keep looking). Please respond if you know anything about it. Thanks,vp Please click "Mark as Answer" if you think this post answers your question
Yes and no. First, you can't encrypt web pages. Those are HTML and displayed in the client's brow...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 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.
...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 ...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...Call one web application forms with in another web application ..
I am having forms named A1,A2,A3,A4,A5 in my web application1. And i am having B1,B2,B3,B4 and B5 in my web application2.I am using Windows authentication for my web application1. And i am using Form Authentication for my web application2.I am planning to host these 2 applications in 2 different servers.Here i am planning to have web application1 as a stand alone application.And Web application2 should interact with web application1.I want to call my web application1 forms in my web application2.But both authentication types are different.........???How to do it....??Any ideas ??Kamran Shahi...All web pages hang on web server when one of the web pages calls a run away sql query
We have a Windows 2003 dedicated web server running the .NET Frameworks 1.0 and 2.0. We have a SQL Server cluster running SQL Server 2000. Unfortunately, we do not have a test environment. I have 2 .NET web sites in production. My coworker has a voting .NET web page using AJAX on the same server. The coworker wrote a query that was not indexing properly and when the page fired the query...the cluster went to almost 100% utilization. My two web pages would hang and show a blank white page on the default.aspx. Neither of m...activating new web page from another web page
I'm trying to activate a web from from another web form.
I meen, something like:
public class RptReq : System.Web.UI.Page
private void Page_Load(object sender, System.EventArgs e)
// Put user code to iniialize the page here
Report rpt = new Report();
//Web Form Designer generated code
Report is another class in my name space.
Can I get the right way to do it?
Best regards to all.
<p><a target="_blank" href="sdfdf.asp">rdfgfdg</a></p>
...diplay a web page into an area of another web page
How can I display a web page into an area of an other web page? I am using asp.net 2.0 and would like to avoid frames, but the functionality I need is just the one of a frame.
You can use an iframe:http://www.mike-levin.com/iframes/ Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you!
Wow! Thanks for the extremely helpful link, Mr. MVP Moderator. And we are supposed to look up to you guys...
Giancarlo: Here are some useful and releva...how to open a web page in form of a popup web page
I have two web pages, let say.
Page A :
With a Button on it.
PAge B: with some info.
Now I need to:
When I click on the Button of page A.Page B must open in a pop up window. I can do this but problem is this when I clicked on the button for first time it does not show me any thing and when I clicked on the button for second time then It shows me Page B .My code is as follow: 1 protected void Page_Load(object sender, EventArgs e)
3 if (!this.Page.IsPostBack)