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
Similar Messages:
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
Jun 30, 2010
I have been trying to call a vb.net function in aspx page how can i do that?. I have done it in C# by
<td><#%GetItemIndex(Container.ItemIndex)%></td> its working fine in C# but in vb.net it says GetItemIndex not declared.
and trying to convert (rptpages is a repeater)
rptpages.Itemcommand += New RepeaterCommandEventHandler( rptpages_ItemCommand1) from C# to VB.net but i dont see itemcommand property in VB.net for the repeater.
View 15 Replies
Dec 2, 2010
Is there a way to call a public function from a class?
[code]....
View 4 Replies
May 3, 2010
I 've some session variables which are used on a page, i want to clear those session variables as soon as user is redirected from this page,
Is there any method which i can call before user is redirected from this page ?
View 10 Replies
Jun 26, 2010
i have this function on my master page, i want to call it from one of my content page, what should i do?
function showAddress() {
var txtAddress = document.getElementById('txtAddress');
var address = txtAddress.value;
geocoder.getLatLng(
address,
function (point) {
if (!point) {
alert(address + " not found");
}
else {
map.setCenter(point, 15);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindow(address);
}
}
);
View 5 Replies
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
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
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
Sep 7, 2010
I have a problem with calling a method on a aspx page from a usercontrol.
The case is: I have 1 main page with 5 usercontrols, when something goes wrong in the code I want to display the error message in a Modalpopup Extender. I can create for each usercontrol a different modalpopup extender but isn't much easier when I make 1 popup in the aspx page. But the problem is: How should I call a method in the aspx page that open the popup?
I have search several hours on the internet but can't find anything useful.
View 2 Replies
Jul 1, 2010
I wrote a small function in C# that manipulates pdf files using itextsharp. Is it possible to call this function from a classic asp page?
View 6 Replies
Mar 11, 2011
using vb.net/asp.net 2005
I have a content page (<asp:content>) where I am using javascript and normally I am adding the attribut in the code-behind page. however I now need to add a javascript function that will cause when the body or panel loads. I have a test javascript function that simply shows an alert box but I cannot get it to display. Is there a special way to do this in a content page?
[Code]....
View 3 Replies
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
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
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
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
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
Oct 28, 2010
I have a simple website that I'm building (practicing). In the main page, I'm using <div> to format my page.However, I have another page that I wish to load into/or view in the Main page. Can I do this without using a MasterPage?
View 10 Replies
Nov 24, 2010
how can i call javascript function from code behind from my Page.aspx.vb. in my Page i have a button i want to add this function to my button onclick="refreshParent();"
View 8 Replies
Mar 24, 2010
I have a GridView and a FormView on the same page. They both have separate DataSources. This is a simple Master Details configuration, when a someone clicks on the Select link in the GridView, the FormView brings up the Details data. But for some reason the FormView's DataSource is trying to retrieve data when I load the page. This is causing an error because no ID is passed from the GridView.
View 16 Replies
Oct 30, 2010
public void addComment(object sender, ImageClickEventArgs e)
View 4 Replies
Jan 18, 2010
I have an issue in my application . When I am calling a Javascript function OnClick of Submit button, the range validators on my page doesnt work.
View 2 Replies
Sep 28, 2010
In the content page, I have an ajax accordion pane with couple of panes. Within each of those panes there is 1 user control. Initially all the panes except the first one (AccordionPaneMain) is enabled. The first pane user control contains a form view . In formview itemcommand I am doing some processing and then was trying to enable rest of the panes by calling the function showPanes in the main page by using invoker method. My problem is, the method (showPanes) is getting executed but the panes are not enabled.
Sections of code below
[Code]....
View 7 Replies
Aug 30, 2010
I am maintaining a web site project in VS2005 and have to call a new web service on a remote server. I've done add web reference, and created the .wsdl and .discomap files in the app_webReference folder. When I try to create a object representing the web service in the code ( wsnamespace.serviceName ws = new wsnamespce.serviceName(); ) the code wouldn't compile.
The web site project is already calling other web services. When I right click on the type representing the web service and "go to definition" it takes me to a proxy class (derived from of course SoapHttpClientProtocol) in the metadata. I think this is what's missing for the new web service i'm trying to call. Have I missed any steps?
View 1 Replies
Mar 22, 2010
I'm using this Ajax script [URL] to load content from an aspx page on another server than the page calling the content. So far I've learned that this is a no go. The problem seems to be that when using an absolute link to content the script fails as apposed to using a relative link.
I've searched the web for about 10 hours now, and I still haven't found what I'm looking for.
View 2 Replies