Web Forms :: Javascript Function To Open A New Window?

Feb 5, 2010

I have the following 2 lines of code:

Dim sHyperlink As
String =
"<a href=""LabPopup.aspx?RefNo=" & iLabRefNo &

[code]...

View 3 Replies


Similar Messages:

Window.open Javascript Function Is Not Working In Mozilla, But Working In Other Browsers

Mar 18, 2010

Window.open javascript function is not working in Mozilla, but working in other browsers, here is what I have write.

<a href="javascript:window.open('../Terms.aspx','Terms','width=550,height=400')">
click here</a>

Actually what happened in Mozilla is popup is opened but parent window is blank with [object Window]

View 2 Replies

Web Forms :: Can Open A New Window When Calling A Function

Oct 7, 2010

How can I open a new window when calling a function. I do not want to open this new window on a click event. There are now buttons or hyperlinks involved. When a function is called I need a new window to open.

View 12 Replies

Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because

our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies

Using The Javascript To Open A Child Window Using Window.showModaldialog?

Sep 24, 2010

I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.

View 2 Replies

Open A File Share Link From Window.open Javascript?

Aug 2, 2010

I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?

View 1 Replies

Window.open Function In HREF TAG Not Working?

Feb 2, 2011

I am trying to open popup using window.open finction but somehow it's not working ... well below is the code

string properties = "left=250px, top=245px, width=700px, height=450px,scrollbars=yes, status=yes, resizable=yes";
TableCell cell = new TableCell();
cell.Text = "<a href="javascript:void(window.open('details.aspx?node="+node+"','"+properties+"'))">" + "View Details</a>";

But his is not working. While clicking the anchor tag getting javascript error "Invalid argument".

View 1 Replies

Javascript - Open A Window In Asp:updatepanel

Feb 13, 2011

I have a pop-up CustomControl which I use in a large-scale web application. The pop-up works well everywhere other than when used inside an asp:UpdatePanel, the problem arises when controlling the visibility of the pop-up (the pop-up is nested in a table) with other controls:

When I click the button to open the window I get Error: Object expected and when I try to debug the error with IE 8 JSEditor I get ``Source Code is not available for this location.

I believe that the code of the pop-up is not being initialized completely, but it is just my guess and I don't know how to resolve this issue.

View 2 Replies

Javascript - Window.open As Modal Popup?

Oct 14, 2010

I want open window.open as modal popup.

var features = 'resizable= yes; status= no; scroll= no; help= no; center= yes;
width=460;height=140;menubar=no;directories=no;location=no;modal=yes';
window.open(href, 'name', features, false);

I can use Window.ShowModelDialog(), but in my child window I am calling parent javascript method. That is not happening with ShowModelDialog().

function CallParentScript(weburl) {
alert(weburl);
if (weburl != null) {
var url = weburl;
window.opener.SelectUserImageCallback(url);
window.close();
return false;
}
}

If I use window.open(). I can call Parent javascript. But window is not modal. How to solve this? Can I write something in child popup to always top?

View 3 Replies

Open New Https Browser Window Using JavaScript?

Jul 30, 2010

I have situation where in c# code I am adding an onclick client event handler.
It should do:

Button1.Attributes.Add("onclick", "javascript:window.open('https://"+Request.ServerVariables["HTTP_POST"]+"/reports/?type=1&id=2");

in the end the URL looks like:

https://servername/reports/?type=1&id=2

in the reports folder of my site I have a default aspx page that handles those parameters.

When I click the button with this event, a new window opens but it says there is no page at that address. When I use the link like this

https://servername/reports/default.aspx?type=1&id=2

The page opens but it's blank.

When I run this code as non secure with HTTP, everything works just like it should. The report opens.

Is there any difference using those two different URLs with default.aspx and without it, because in development it behaves the same way, but under HTTPS one page doesn't exist and another is blank?! Is HTTPS the reason for that?

View 3 Replies

Use Javascript To Open A New Window On Page Load?

Jan 19, 2010

i have aspx pages with vb.net in the back. I need to use javascript to open a new window on page load. I am also sending a querystring (www.mysite.com/default.aspx?dest=register.aspx) from the previous page. I need the javascript to parse the querystring and open the new window only if the URL has a querystring.

View 4 Replies

Open New With Javascript And Use Parent Window's Existing Session?

Jan 8, 2010

I am opening a window with window.open and I am losing the server session. Is there a way to open a window with Javascript and use the same session? I need this working in IE 7 and higher. I am working with ASP.NET on the server side. The sever does not have a sessionless cookie state.

<sessionState mode="InProc" timeout="15" />

View 2 Replies

Call Child Window Function From Parent Javascript

Feb 25, 2011

On my xyz.aspx page I added a Iframe and set it src to abc.aspx page, when I load xyz page Iframe is alos loaded as well abc.aspx page inside it. I am able to call a function from abc.aspx to xyz.aspx function, the question is how can I call abc.aspx function from my xyz.aspx page?

View 1 Replies

Javascript - Session Behavior - Open A New Window From Internet Explorer

Feb 4, 2011

I have a requirement to open a new window from Internet Explorer, but the new window should be in new asp.net session. It should not share the same session of previous opened window or the parent window. How can it be possible? Any thoughts? I'm using window.open('mywindow.aspx') from parent page javascript to open new windows.

View 1 Replies

JavaScript - AJAX Enabled WCF Service Function To Redirect To A New Window?

Apr 1, 2011

Scenario : I am going to access external web service [ExternalWS] using AJAX. So obviously, need to create local proxy service [LocalProxyWS] first, which in turn will access the external web service. Now, the external service webmethod [Process] basically redirects the current page on our site to their site, does some work and then return back to our site.

What I want : I want that when the user clicks the button ('Process') on our site, it should open a new window and then starts executing the request on the new window, so that I can have the page on my website to be displayed permanently (which will poll a request every 15 seconds to the external service (via local proxy) for the status).

Local Proxy service which calls external service is as follows..

[ServiceContract(Namespace = "LocalProxy")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class LocalProxyToExternalService
{
[OperationContract]
public void InitiateTransaction(string amount)

Basically, I am opening a new window from the button click and then want to process the new request in that new window, so that I can show the status to the user from the current page on my website So far, it opens the new window, but doesn't transfer the request on to that, but I get an error message in firebug as follows...

View 1 Replies

Javascript - Session Null After Window Open In Minimal SharePoint Page

Apr 4, 2011

I'm storing a token in a session variable. I launch a report that needs this token in a new ASPX page by using the javascript windows.open function. When this new page loads the HttpContext.Current.Session is null.I have gotten around this by passing the token in the query string but activity in this window needs to keep the session of the parent window active and I'm not sure what the session object being null means for this scenario.

View 3 Replies

Javascript - Open A New Window With Specific Record Details From A Select Row ID In A Datagrid?

Dec 2, 2010

I have a gridview displaying all employees. Upon selecting an employee, I'd like to open a new page or window that would display all of the information for that employee with the option to edit/delete/update. Once this transaction is complete, return to previous page with gridview of all employees. ((language I'm usings is VB))

<asp:TemplateField Visible="true" headertext="Select">
<ItemTemplate>
<asp:HiddenField ID="hdID01" runat="server" Value='<%# Eval ("PersonnelID") %>' />
</ItemTemplate>

[Code]....

View 1 Replies

Data Controls :: Open New Window When DataList Item (Row) Is Clicked Using JavaScript

May 7, 2015

How to make the entire datalist item to clickable.....

View 1 Replies

How To Open Full Size Window / Toolbar / Address Bar And Menu Should Be Hidden Using Javascript

May 25, 2010

How to open full size window. Toolbar, address bar and menu should be hidden

View 2 Replies

Not Open A New Window (JavaScript Popup) If JQuery Validation Plugin Returns False?

Sep 23, 2010

I have an .aspx page with a couple of textfields. I validate these with jQuery validation plugin when the user clicks the submit button. When the submit button is clicked I also open up a new window, but I only want to open the window if the fields are correctly filled out.How do I stop the window from opening if the fields are not validated?

.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{

[code]...

View 1 Replies

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

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

Web Forms :: Close Popup Window And Open Page In Parent Window?

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

Web Forms :: Retrieve Value From Popup Window Opened Using Window.open?

Apr 28, 2010

I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.

View 3 Replies

Web Forms :: How To Open The Redirected Page From Iframe To Open In The Parent Window

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

Web Forms :: Click Imagebutton Open Window.open In Class 2.0

Sep 11, 2010

Click imagebutton open window.open in class asp.net 2.0

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved