Web Forms :: Contents Changed - New IE Window Opens?
Sep 2, 2010
I am implementing a web form, and when a checkbox is clicked, contents of the form are changed (i.e. additional checkboxes are being selected), and webform is refreshed to show the new contents. however, instead of displaying new contents within the original IE window, a new IE window is openned with new contents, and the old window remains there without any content update. i did not request for window.open or provide a _blank to specifically indicate a redirect should go to a new IE window. I just want the original IE window being refreshed to reflect the content changes. i have worked with asp.net for years and i think that be default refresh of the webform to reflect new changes always stay in the same IE window and thus never pay attention on how to open or surppress a new IE window? i think it is some config, but don't know what config and where i should look for it.
View 3 Replies
Similar Messages:
Apr 4, 2011
lstItems.Attributes.Add("onclick", "javascript:window.location.href='" + Project2.Constants.MySiteURL + "myPage.aspx/" + ID + "';");
edit:-
i found this solution on SO but dont know how to use it in my case :
window.open("http://asdf.com", "window_name","location=1,status=1,scrollbars=1,resizable=no,width=650,height=650");
edit 2 :-
Any Javascript expert in here ?
edit3 :-
@Headshota:: Its still opening in new tab in firefox and as apop up window in IE :(
edit 4 :-
@ Craig :: What does this mean? "possibly got a misplace target="_blank" somewhere" How do i check for it?
View 2 Replies
Feb 24, 2010
I have a Radiobutton that opens in a new window, not in target=self. This only occurs after I click on another button which has a target=blank. I can't seem to find a property in the Radiobutton (Ie on clientclick) that I can set the target to self on the Radiobutton that defaults the self behaviour.
View 1 Replies
Aug 31, 2010
I'm using the following span to open a page in a new window. What is INCREDIBLY odd is that it is exactly the same code from three different pages, but the first refuses to open in a new window. The only difference is that the first example resides within an Ajax Accordian Panel so I suspect that it might be an Ajax related issue.
[Code]....
View 2 Replies
Jun 3, 2010
Is there a tool/control to accomplish this. Have you seen the Yahoo Messenger or MSN messenger, when you get a messenger, a window suddenly opens from no where. How do I do that with Asp.net?Meaning, if there's a incoming IM, I want a window to popup like it does with Yahoo and MSN
View 8 Replies
Feb 14, 2011
I have a javascript that opens a new window for "PreChecking" a site. The problem is when i click the button, it works fine... but wichever i button i press next makes the method fire again, despite i doesn't call it. Its just the button with id "lnkPrecheck" that should call the method. Have searched far and wide for a slolution that just opens a new window for the lnkPrecheck button, not the others on the site.THere must be a way for only 1 of 3 buttons makes the function call, not all of them!
The code:
<asp:Button OnClick="lnkPrecheck_Click" OnClientClick="NewWindow();" ID="lnkPrecheck" runat="server" text="Precheck (Opens in a new window)" />
function NewWindow() {
document.forms[0].target = "_blank";
}
View 3 Replies
Nov 5, 2010
I have an MVC 2 application with 2 views sharing the same master page. When I post the form and return a view, it opens a new window. I want the same page to be displayed, but with the new view.
aspx page
[Code]....
Controller
[Code]....
View 2 Replies
May 20, 2010
.rdl file in asp.net crystal report.Data is displaying vertically in the report, when i filter on the date field.
1. I need paging in this.paging is not working.when i click on paging,a authentication window opens and after ths fill,all data comes on the report with out filter.
View 1 Replies
Jan 22, 2010
I've been trying to add a Hyperlink column to my gridview that opens a page via a pop-up window that passes an ID. Target="_blank" won't work because I need it to be a specific size.
I've been trying to set it up with Javascript functions but DataNavigateURLFormatString takes away the clickablility on the field if you call javascript. NavigateURL seems to work but without an ID passing to the function it will only open one specific webpage.I have also tried Boundfields but have had no success either.This is the closest I have come to getting it to work:
<asp:HyperLinkField
DataTextField="Catalog_Number"
HeaderText="Catalog Number" [code].....
But with the NavigateURL its only displaying the link as is.
View 2 Replies
Jan 17, 2011
i want to get the contents of a textbox and set them to a asp label for output, we can cause a postback to if that makes it easier, so far i did this and it comes up trumps
View 11 Replies
Jan 13, 2010
After some code change I have published my AJAXised web application to the server and the application failes to work properly - something weird is going on, as all .aspx pages are displayed as an ASPX markup text (page declaration, html controls, etc.), rather than a page is being rendered as an html. I have not changed the webconfig, only changed my pages' content/code behind.
View 4 Replies
Feb 22, 2010
I have a pdf file, how can I extract the contents of the pdf file and show the contents in one of my web page
View 4 Replies
Jul 2, 2010
I know this might be a detail problem but yet kind of annoying.
The first time you click LinkButton1, the webpage [URL] is not opened. But when you click the second time, then a new browser window is opened. I wonder why that happens. ? I use IE8.
[Code]....
View 6 Replies
Sep 14, 2010
For our ASP.NET project for school we had to build a sport event management web application.
We provide the application in three languages (English, Dutch & French) which you can switch all the time. This has worked all the time for all users, well that's what we think anyway.
Yesterday I found out that switching from one to another language isn't working for 2 of our users. So I started testing a bit and I always got this error.
I'll try to explain what happens behind the doors when changing the language:
First of all the current language is saved in a session so we don't have to check the user row every time a page loads. Besides that we save the language in the users row in the database.
Users Table:
Id int
Unchecked
Email varchar(150)
Unchecked
View 2 Replies
Oct 18, 2010
i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?
View 2 Replies
Mar 1, 2011
In my application i allow users to download a csv file from the App. When a user clicks on the Download file link , they see the Download file dialog box. My problem is that some o f the files opens as an HTML document.This happens intermittently.
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType =
"application/octet-stream"
;
Response.AppendHeader(
"Content-Disposition",
"attachment;
filename="
+ sf.FileName);
Response.OutputStream.Write(sf.Data, 0, sf.Data.Length);
Response.Flush();
Response.Close();
I tried Response.End() insted of Response.Flush(); but didnt help.
View 1 Replies
Oct 5, 2010
I am perfectly able to create a Hyperlink that opens a new page (using the following code, with '_Blank' being my target opening the new page):
[Code]....
...But how can i achieve this with a button?! I've tried but i'm guessing that _Blank isn't really applicable to a button?
View 2 Replies
Mar 1, 2010
i m facing a problem while using the latest version of ckeditor.actually i designed a asp.net page and include a ckeditor in it.
ck editor is at the bottom of add report page.
every time i open that page the ckeditor is mainly focused . that is the page automatically scrolls down to showw the Ckedito.
I google a lot but did.nt get any solution
i also tried MaintainScrollPositionOnPostback="false" directive in page directive but no effect
View 2 Replies
Nov 15, 2010
I have embedded you tube video into my project.The problem which i'm facing is that when i double click on that video it opens in new tab.What i want is that when i click that video it should open in full screen.Below is the link where i have seen this behaviour
youtube.com/watch?v=yYDOltMx0MQ
View 1 Replies
Jun 10, 2010
I've created a folder with spaces in between them. Example "New Folder 1". and added a new webform "test1.aspx" into this folder. When i render this page,i 've three browser window opened with /new/test1.aspx,folder/test1.aspx and 1/test1.aspx.When i remove the spaces between the folder "NewFolder1" things work well.
View 4 Replies
Apr 23, 2010
When I select a date on a calendar control it opens a new login page, here is the sequnce of events.
1. Login using the login page
2. Click on a hyperlink and open a popup window
3. On the popup window I click on a text box which opens a modal window with a calendar, when I click on the calendar it opens another instance of the web browser with the login page and I am not able to capture Calendar1_SelectionChanged events,
Code which opens the modal window:
[Code]....
Definition of Calendar in Calendar file:
[Code]....
View 11 Replies
Jan 28, 2010
i have following datalist in WhatsNews.aspx page.
[Code]....
when i open home page and click a link in whatsnew section, IE 8 opening the links in a new window.but firefox 3.5.7 opens in parant window, just like i want.how can i make IE 8 also open the links in parent window?
View 3 Replies
Sep 25, 2010
I am trying to return true or false from popup window to the parent window. Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message. But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?
View 5 Replies
Nov 17, 2010
i have a page Parent.aspx,, and this is responsible to open the window as a model dialog(model.apsx). model.apsx has OK button when we click on this button then server side method called to save the data. while saving the data it return the id of saved data. i need this id on my Parent.aspx.Cs file, so how can i get this id on my Parent.aspx.cs file?
View 5 Replies
Mar 10, 2011
I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop
So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.
View 1 Replies