Web Forms :: How To Open In Blank Page
Sep 8, 2010
I have created master page in my application using site map and have some web forms. When I click a link from site map I would like to open in blank page like popup window. How can I do that ?
View 3 Replies
Similar Messages:
May 7, 2015
I have designed menu using <ul> and <li> tags and handled onserverclick event, where redirection code is written. This code works fine for normal click. But when I right click on the link and select "Open link in new tab", it opens blank page. So how can I handle this scenario.
Following is the sample code,
<ul class="rounded-corners "> <li name="menuSample"><a onserverclick="lnk_clicked" runat="server" href="~/Sample.aspx" title="Sample">Sample</a></li>
</ul>
Server side code:
protected void lnk_clicked(object sender, EventArgs e)
{
strPage = (sender as System.Web.UI.HtmlControls.HtmlAnchor).Title.ToString();
Response.Redirect((sender as System.Web.UI.HtmlControls.HtmlAnchor).HRef);
}
View 1 Replies
Apr 11, 2010
I created a very simple webService using the VS2008 template. i am planning to use Ajax call for the webService.when i try to open my webservice in IE browser using following link to see the Javascript proxy, it return blank page.[URL]
View 3 Replies
Feb 17, 2011
I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:
Response.Redirect("results.aspx");
This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:
Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]
View 1 Replies
May 19, 2010
Recently I had migrated my ASP.net 1.1 based application from a IIS5.1 based platform to a IIS 6.0 based Platform.The new platform has 4 nodes with a load balancer.
One of the page of my application, which is perhaps the heaviest one in terms of form components like textboxes, dropdown is not behaving properly.Some times the users only get a "Blank White Screen" and some time they get a "Invalid ViewState" , Invalid length for a Base-64 char array.
Based on the KB
http://support.microsoft.com/kb/831150 I understand that the view state is getting truncated.
I had been facing this issue since we migrated to the new platform and the application was working perfectly fine on the old platform.
View 1 Replies
Sep 1, 2010
I'm trying to insert few values to a table, when i press the submit button the aspx page goes blank and i don't get any error message. I'm not able to find where the error is.
The code:
Protected Sub AddMInfo_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles AddMInfo.Click
View 5 Replies
Feb 7, 2011
any page that I open in my browser comes up blank.
I don't get any errors, it just comes up blank.
I also noticed that it seems to bypass forms authentication. For example, even though the page I open is blank, it is the actual page name that shows up in the browzer instead of the page that it usually redirects to for the forms authentication.
View 5 Replies
Feb 14, 2012
Gridview Print PAge coming blank
for below code
but if I comment
GRDV.AllowPaging = False
GRDV .DataBind() this code then it page is not blank
I want to print complete Gridview
Code is :
Protected Sub PrintAllPages()
GRDV.AllowPaging = False
GRDV .DataBind()
[Code].....
View 1 Replies
Jan 10, 2011
I have a reports UI that allows users to select the reports that they want to run. I want to be able to display each selected report in its own window so the site does not navigate away from the reports UI. Is there a way to acomplish this? Maybe through the response object? UI Summary
The user selects the reports from a list then clicks the run button. On post back the selected reports are placed in a collection and redirects to a new blank page that will prompt for any parms, render the report, remove the report from the selected reports collection, and redirect back to the reports UI. If reports still exist in the selected reports collection it redirects to a new blank page until the collection is empty.
View 6 Replies
Feb 2, 2010
I have a single page with multiple gridviews.
[Code]....
The data binding is done manually in the code behind, which means you have to manually write the onpageindexchanging in there too. Normally that's done like so:
[Code]....
When you click to the next page on such a page, it is only blank if you have if(!Page.IsPostBack){} around your manual data binding. Well on this page with multiple gridviews I don't have that. But it's still blank when you click to the next page.
View 5 Replies
Jul 10, 2010
i have dropdownList Binded to a data source and its working fine But want i want to do is when the page loads its initial value should Blank until clicking the dropdown button
View 6 Replies
Mar 16, 2010
I have 3 nested grids as Parent/Child/GrandChild and I have assigned SqlDataSources to all the grids at declaration time. I place the SqlDataSource next to each grid as follows.
<GridView>..</GridView><SqlDataSource>..</SqlDataSource>
Because of this I am not doing anything in RowDataBound(...) event. But I used the RowCreated(..)event of Parent and Child grids to access session (Please look at the select statements of Child/GrandChild grids).
Parent grid's RowCreated(..) event puts the value in the session which is used by Child grid. Child grid's RowCreated(..) event puts the value in the session which is used by Grand Child grid.
GrandChild grid has paging enabled and whenever I click on page index, Child and GrandChild grids goes blank. Parent gird doesn't go blank because its select statement doesn't take any "select parameters".
how to overcome this problem. I am attaching .aspx and .aspx.cs files
[Code]....
View 4 Replies
Jun 9, 2013
i have a button,i want when a button is clicked a alert message should be display, i wrote the code like this
protected void btn1_Click(object sender, EventArgs e)
{
Response.Write("<script>alert('Your account has been created')</script>");
}
It work well, but when it pop-up background color become gray,i want when it pop-ups,the background should remain same .
like when we click on button which is associated with confirmbuttonextender..the background become fade but it doesn't go blank..
View 1 Replies
Jun 2, 2010
I have a form which a user can fill in x times with the data they want too. The form is posted to the following Action.
[HttpPost]
public ActionResult Manage(ProductOptionModel DataToAdd)
{
if (!ModelState.IsValid)
{
return View(DataToAdd);
}
var ProdServ = new ProductService();
if (DataToAdd.ID != 0)
{
//Edit Mode.
DataToAdd = ProdServ.EditProductOption(DataToAdd);
ViewData["Message"] = "Option Changes Made";
}else
{
//Add
DataToAdd = ProdServ.AddProductOption(DataToAdd);
ViewData["Message"] = "New Option Added";
}
var RetModel = new ProductOptionModel() {ProductID = DataToAdd.ProductID};
return View(RetModel);
}
So at the bottom I blank the model (Leaving just the required field) and then return to the view. However the view holds the data from the previously submitted form. I have debugged the code and checked that the RetModel variable is empty.
View 2 Replies
Apr 7, 2010
i have created a .net chart, but when i load the page to see the results, all i see is a blank gray rectangle. no graph inside. (while if i split view it in VS i see the chart)here is my code,
[Code]....
View 5 Replies
Aug 31, 2010
I have a project which is developed by using VS 2003 with Framework 1.0.My project works very well while I am testing it on localhost.But 'sometimes' my application will appear blank page after click a save button in the production side(using IE 7).I set 'Try catch' into server codes to detect any error caused after users click save button. And they never see any error description page but 'sometimes' blank page.So I assume my server codes are safe.
View 7 Replies
Mar 2, 2011
I would like to create a completely blank aspx page, but I can't figure out how. When I open up Visual Web Developer 2010 Express, and I go to File -> New Web Site, I have a few options. When I choose the ASP.NET Empty Web Site, it does not give me any tools in the Toolbox on the left, so this is no good. But when I choose ASP.NET Web Site, it gives me this template and all of this other stuff. I dont need this 'Welcome to ASP.NET!' template. I'm thinking that I need to choose the Empty Web Site and then Add New Item, but what item? I'm lost!
View 8 Replies
Jun 1, 2010
I'm developing an ASP.NET (C#) application using EPiServer CMS 5. On the startpage we have four WebPart-zones and everything works great running it through Visual Studio. When publishing it to the production-server (IIS 7) the startpage shows as a blank page, no error what so ever...
When we remove these lines of code it works, so it has something to do with the WebParts.
<WebParts:ExtendedWebPartManager ID="WebPartsManager" runat="server"></WebParts:ExtendedWebPartManager>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone1" runat="server" ID="WebPartZone1" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone2" runat="server" ID="WebPartZone2" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone3" runat="server" ID="WebPartZone3" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone4" runat="server" ID="WebPartZone4" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
View 2 Replies
Nov 9, 2010
There are two frames. In ASP page 1 that is being displayed in frame 1, we have a form with hidden variables. On some action this from is submitted to frame 2 with action as ASP page 2 (target = frame2, action = 'ASP Page 2') using POST method. But on ASP page 2 when we try to get Form's hidden variable via Request object, sometimes we get them correctly but sometimes they are blank. Generally, first or second time, they show some values but after that they go blank. This problem is seen in IE 7 only and has not been observed in any other version of IE or other browsers.
View 1 Replies
Mar 2, 2011
Ok so I am trying to setup a WCF web service. I thought I had my .svc and webConfig ready to go, but when I hit this service all I get is a blank page.
[Code]....
View 1 Replies
Feb 20, 2010
Formview1 is databound to SQLSource that has a while condition. this while condition has a term which is a control in my page set by user. The problem is when there is no match (between users' value and database) the page *becomes blank*
i want the controls of my formview and rest of the page to still be available
View 1 Replies
May 28, 2010
I am getting blank page after deploying the blog engine on Main Production server.
Same application is running smooth on my local system
View 4 Replies
Feb 11, 2011
I am calling a report from my ASP web app and was working perfectly, but now for some reason the report is coming up as blank and only shows the header section where it shows export, page numbers etc...The report works 100% direclty from reports and reportsmanager but not from my application - there are no errors to even guide me to solving it.At first i had reporting services 2005 and was having this problem and then i installed Reporting services 2008 and hosted the report on there but i am still getting the same problem.....very frustrating!!Does anyone have any idea what could be causing this??
This might be a clue: this app is on my clients pc and i installed VS2010 on the pc so i can try troubleshoot this but when i open the app VS2010 tells me it is setup to use framework 2.0, strange cause before this problem i opened it in vs2010 and was in framwework 4.0 - but now ifi go to the build dropdown it does not give me the option to select framework 4.0 - just goes up to 3.5??the app was originally created in VS2005 then I upgraded it to vs2010.........it could be possible that there is aconflict with the report viewer on the webpage conflicting somewhere???the app still works 100%(except for reporting) on IIS using framework 4.0 so it is still on the PC..please help - my client is unable to use the app without the printing and i am getting desperate!!Here are the hardware and software details:
-Windows 7 Pro
-IIS 7
-framework 2, 3.5 and 4
-ASP.net 4 Web app developed in VS2010
-DB on SQL 2005 exp adv
-also have SQL2008 exp adv installed
View 2 Replies
Jul 5, 2010
I'm having problems using an IHttpHandler on PDF files.
I'm redirecting "*.pdf" in <httpHandlers> of web.config to a IHttpHandler class that blocks access unless the user is authenticated.
Code:
<add verb="*" path="*.pdf" type="Handler.Class, Handler.Dll.Name" />
I have no problems accessing any PDF file from firefox while authenticated, but when accessing using any other browser (chrome/safari/opera) I only get a blank page appearing with no content. Accessing the PDF files from other computers gets the same result (blank page) including firefox on other computers.
Contents of the IHttpHandler:
C# Code:
[code]....
View 30 Replies
Jan 10, 2011
I have been building web apps for a while now and still do not know the answer to this.
I have just built a web app (using webforms) which has a page for inserting a new budget request and a page to edit and manage this budget request.
What is a pain is if I have to make changes to the business logic then I need to edit same / similar code in two places.
What I am thinking of doing is creating one page to handle this with only UPDATE logic and if the URL on page load has no ID parameter then create a blank row in table and use this new ID and then UPDATE.
Is this bad practice? I obv know I need to clear out old blank rows at some point.
View 3 Replies