VS 2008 Calling Another .aspx Form Using Javascript Not Working?

Feb 17, 2011

I have a .aspx page that has a button on it.When the user clicks on the button, it should call another .aspx page. I am using the following javascript code that works well in our development region. But when it is deployed to another IIS server, it doesn't work.

Code:
function Open_HistoricalRunswindow() {
window.open("http://10.129.1.102/QAWebUI/HistoricalRuns.aspx", "_blank", "toolbar=no, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=no, width=1000, height=500");
}
I replaced the IP address with the word localhost and it didn't work either.For some reason, when the user clicks on the button, it opens up another browser window and the address seems to be like this. which is very weird.[URL]I don't understand why the link is getting messed up? Is there any alternate solution for this problem? May be I use server code to call the .aspx page instead of Javascript?

View 4 Replies


Similar Messages:

VS 2008 - Calling A Server Side Function From Javascript Without Using PageMethods?

Sep 17, 2010

i have used PageMethods to access the server side functions in javascript , but now my problem is that with pagemethods your controls will not go throught the full page lifecyle and these leads me to have "Object not set for an instance of an object" error. Now can someone come with a differnt approach without using pagemethods. What i want is to call a server side function , i dont want to pass any parameters to it

View 5 Replies

VS 2008 - Using JavaScript On ASPX Page

Oct 4, 2011

I'm not conversant with JavaScript, however I need to refresh the page in few seconds so I want to use this code-

<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);", timeoutPeriod);
}
// -->
</script>

<body onload="JavaScript:timedRefresh(10000);">
<p>

This page will refresh every 10 seconds. This is because we're using the 'onload' event to call our function. We are passing in the value '5000', which equals 5 seconds.

</p>
</body>

Now my aspx page is using Content and referencing masterpage, Page Language="VB"

When I try to add this code to a new page it works fine and page refreshes as desired, but on existing page it gives error-ErrorValidation (XHTML 1.0 Transitional): Element 'body' cannot be nested within element 'td' ....

View 7 Replies

AJAX :: Pagemethod Calling Webmethod In Updateprofile.aspx Is Not Working / Getting "undefined" Exception

Nov 24, 2010

I have register.aspx at root level folder and updateprofile.aspx in folder /secure/user/ .

pagemethods are working good at root level folder aspx pages only.

pagemethod calling webmethod in updateprofile.aspx is not working. Getting "undefined" exception.

Why is this so?

View 3 Replies

VS 2008 - JavaScript Datepicker Won't Work Well In ASPX Page

Sep 14, 2013

code behind:

$("input:text.inputTypeDate").datepicker({
dateFormat: "dd/mm/yy",
changeMonth: true,
changeYear: true
});
});

ASP :

<asp:TextBox ID="txtDate" runat="server" Width="120px" class="inputTypeDate">
</asp:TextBox>

It works fine on page load, but when I click on clear button to empty textbox, it stops working.

View 3 Replies

MVC :: View - Can't Get Javascript Working In Aspx

Mar 25, 2010

this is a view of an application i am writing these days.. when a view retrieves some data from the controller the value should be passed on to the javascript function called point it.. well this is about reading and image position.. this javascript works perfectly fine when i just test with pure html... what am i doing wrong..

[Code]....

View 4 Replies

VS 2008 Calling A Sub In A Different .vb File

Jan 3, 2010

I need to call a sub which must be contained within a separate web page, but even though it is declared as public, when I call it like this:Code:

Cart.addMovie(ByVal title As String, ByVal format As String, _
ByVal copies As Integer, ByVal price As Double)

I'm getting this error:
Code:
Error1Reference to a non-shared member requires an object reference.C:Documents and SettingsJohn Wesley CooperMy DocumentsCollegecis259MovieStoreMovieStoreDefault.aspx.vb489MovieStore

View 35 Replies

Web Forms :: Calling Code Behind From Aspx?

May 5, 2010

I often want to call a function in the code behind using the "<%# ... %>" syntax. Sometimes is works and sometimes it doesn't. It is also a difficult syntax to search for. Can someone point me at an explanation of the working (or not) of this syntax?

I just tried this:

<asp:TextBox
ID="TextBox1"
runat="server"
Text="<%# getBCSConnectionString() %>"
></asp:TextBox>

For example. The function is in the code behind (it returns a string). The TextBox is empty and no break point is hit in the function; it does not appear to be called.

View 4 Replies

Web Forms :: Calling An Exe From An Aspx Page

Jun 20, 2010

Regarding the above topic I want to know the following:

1) Is it possible to call the exe from an aspx page with or without parameters?If so client side call or only server side call?

2) What permissions need to be given for it to be accessible - the exe needs to do data transfer with postgres?

3) How to diaplay the output of the exe on the client side in Labels or alert boxes?

Any other problem that may occur while executing exe from the aspx page?

View 7 Replies

VS 2008 Calling Rest Web Service?

Aug 27, 2010

I am trying to interface a website we have with our helpdesk software. The helpdesk software has a REST API that i can connect to. So far I have been successful in getting a current ticket with the following code.

[Code]....

[URL] How would I implement this in ASP.Net? I want to create the ticket, and need to be able to retrieve the access key that it returns. I tried using the same code above, but instead changing the method string to this.

Code:

method = "request.create&tNote=Testing method&sFirstName=Jose"
But I get a "Bad Request" error from it.

View 3 Replies

Web Forms :: Calling Text Box From Default.aspx?

Sep 6, 2010

I was wondering if I can create a method or textbox in an .aspx page (such as 'Default.aspx') and from a different class (e.g 'MyClass.vb') insert values into the textbox?

View 6 Replies

Web Forms :: Calling A Codebehind Method From Aspx?

Mar 9, 2010

I have a code behind which i need to call from the aspx page. Below is the the code in aspx and code behind.

aspx:

<a href='<%# ChangeAlphabet("0") %>' >All</a> </li>

View 7 Replies

Web Forms :: Calling An Aspx Page With New Window?

Mar 10, 2011

I have an web application in a server.there is an aspx page i need to call an aspx page with new window using response.write().

ex: Response.Write("www.abc.com/page1.aspx");

But it will open the page in the same window but i want to open the page in new window.

View 4 Replies

Web Forms :: Calling Function On Different Aspx Page?

Jun 16, 2010

This is such a simple thing but i can't figure it out.

I have this code: (just a section)

[Code]....
[Code]....

Here is the code behind:
[Code]....

I can get it to work if i completely paste the code in there, but this is such a pain. I just dont quite understand OOP. What do i have to write to call that code from another aspx page?[Code]....

View 12 Replies

ADO.NET :: Getting Error While Calling Dataset In ASPX Page?

Nov 25, 2010

I wrote many Dataset in APP_CODE folder and call it in my ASPX Page. But the following error Occured in my aspx Page when i call atset.

ERROR

'DATASET NAME(.XSD)' does not contain a definition for 'DATASET OBJECT NAME' and no extension method 'DATASET OBJECT NAME' accepting a first argument of type 'DATASET NAME(.XSD)' could be found (are you missing a using directive or an assembly reference?)

But when i Build the application some times it's execute with out error. but some times it show's an error. And also i get error in different

dataset in every time when i Re-build the application.

View 3 Replies

Calling Rijndael Algorithm From Aspx Page?

Feb 4, 2011

I have this Rijndael algorithm below as class and my problem is when I tried to call this class from Code behind page the methods inside this class is not appearing with me

[Code]....

View 2 Replies

SQL Reporting :: Make Spider Charts Using Sql Server 2008 As The Database And Working With Visual Studio 2008?

Aug 10, 2010

I want to make spider charts like this one: [URL] I want to know can I prepare it using reporting service 2008? I am using sql server 2008 as the database and working with Visual studio 2008.

View 4 Replies

PageLoad Event Is Not Fired When An Aspx Is Opened Through Javascript Of Another Aspx Page

Jan 25, 2011

I have an aspx application with 2 aspx pages. Second aspx page will get opened on click of a button in first aspx page using JavaScript. The problem is, when the second aspx page is getting opened, its Page_load event is not firing. Only when I refresh the second page, page_load event of second aspx page is fired. what might be the problem and what is to be done to fire the page_load event.

View 1 Replies

AJAX :: JavaScript Function To Pass Value From MasterPage.aspx To Default.aspx And Then Refresh UpdatePanel

Feb 26, 2011

For example, I have master page MyMasterPage.aspx and content page MyDefault.aspx. I have many UpdatePanels at MyMaterPage.aspx, and also I have many UpdatePanels at MyDefault.aspx.

[code]....

I want JavaScript functionClickMenu(this) at input button [id="ButtonMaster1" @ MyMasterPage.aspx] pass its value ["Menu-1"] into text box [id="TextBoxDefault1" @ MyDefault.aspx], and then performing update / doing post-back to server ONLY FOR UpdatePanelDefault1.

I am looking forward an example code for JavaScript functionClickMenu(this).

View 4 Replies

Web Forms :: ASPX Page Calling Web Service Asynchronous

Jun 17, 2010

I need help calling a web service asynchronously. Current scenario is, I have a classic ASP page which does some processing and then redirects to a ASPX page which would call the wcf service asynchronously and then redirect to another classic ASP page. Im currently using the Asynchronous method to call the service with Async="true" included in the header. Testing the ASPX page induvidually it appears that the service call is asynchronous and does not wait for the the service to process data. But when integrating it with classic ASP page i.e ASP to ASPX to ASP it appears that the process takes a while as if the service call is synchronous.

So is there a better idea to use in calling a wcf service asynchronously. The idea behind my work flow is the ASPX page would be used to call the service and then the ASPX page would redirect back to the classic ASP page is came from. Let me know if there is a work around on how to call async wcf service in aspx page. I dont need the ASPX page to wait for a result or anything it is just used to call the WCF service async

View 1 Replies

Calling Aspx Page From Html Submit Button?

Jan 5, 2011

i have 2 forms 1 html others is asp.net in vs 2005 now i want on html page is whn i click on submit button asp.net page is called <action="abc.aspx" method="post"> but its not working

View 2 Replies

C# - Calling A Codebehind Method From Aspx Page From Gridview?

Nov 23, 2010

How do you call a codebehind/class method from a gridview in an aspx page? Also, I need to pass the value of databound column to that method. Is this possible?

Something like this:

<asp:BoundField DataField="Precision" />
<asp:BoundField DataField="MyNumber" DataFormatString="FormatHelper.Format(MyNumber, Precision)" />

View 3 Replies

Web Forms :: Calling A Codebehind Function From An Aspx Page?

Apr 17, 2010

I have a function that returns an image name from an Array, and takes the array index as a parameter, something as follows:

public string imageGallery(int imageNumber)
{
return "~\webForms\profileAdmin\uploadedImages\serkijn\" + iArray[imageNumber].ToString();
}

On the aspx page I have something like this:

<img src='<%# imageGallery(0) %>' />

[Code]...

View 3 Replies

Html - Calling A Silverlight Component In Aspx Page?

Jul 15, 2010

I'm calling a silverlight component in my aspx page like this

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="silverlightControlHost" > [code]...

I would like to modify my page aspx so it takes the parameter itself. Today I'm calling the page

Config.aspx and I would like to do something like this call it

Config.aspx?ConfiguredCarId=11

How do I modify the above code to reflect the change?

View 1 Replies

Calling Sql Server 2008 Stored Procedures Via Dblinks ?

May 6, 2010

Can this be done?

View 4 Replies







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