Call Pagemethod From External Script?

May 8, 2012

I have an ASP.NET site, hosted internally on our company's intranet server. The site uses the client's default network credentials for authentication. The main page for the site, Default.aspx contains the following web method that syncs some data from an Oracle server to an MS SQL server:

<WebMethod()> _
Public Shared Sub syncOracle()
OracleSync.MainSync()

[code].....

View 1 Replies


ADVERTISEMENT

Call A Javascript Function From An External File?

Apr 20, 2012

I have a Javascript function in the js file (test.js) and I need to call her in visual basic 2010 enter her input parameter and load response javascript functions in visual basic.

View 2 Replies

Api Call - Moving And Resize External Window From Application

Jun 5, 2009

I had been looking for a way to move and resize an external window from my application and I came across this method: [Code] now this does not work, after looking around I many threads about how api calls in .net are different.

View 6 Replies

VS 2008 Move Functions To External File And Call Them?

May 27, 2009

Im not exactly sure how to word this question, but I will give it my best shot.In a new program I am starting I would like to put all the code from a button_click event into a file (many others as well into different files), kind of like a class file in the sence of it being external.lets say I have a button called btnadd and it has some validation code in it Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click

[Code]...

View 5 Replies

Calling VB Pagemethod From Ajax?

Feb 18, 2011

I have a simple aspx file with 2 text boxes and an ajax autocomplete extender attached to textbox2

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test4.aspx.vb" Inherits="test4" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

[code]......

View 1 Replies

Jquery - Sending A Complex Object As Parameter To Asp.Net PageMethod

Feb 22, 2010

I am trying to send an object created in JavaScript to an ASP.NET PageMethod. This object mirrors the properties of an existing custom business object, so i was hoping that i could pass a single object instead of a parameter for each property. I am getting an error "Unknown web method SavePart when attempting to use this method.

Javascript:

function() {
var pt = { Id: 1, Onhand: 20, LowPoint: 30, __type: 'Custom.Objects.Part'};
$.ajax({

[Code].....

View 2 Replies

Pagemethod Doesn't Work From Asmx File Rather Aspx?

Jan 25, 2012

I am using simple json method for calling webmethod but it works with aspx file ie url:

'myclass.aspx/myfunction'

but it doesnt work if I put same function in an asmx file and change url to asmx.

Is there anything else have to be done to enable asmx service ?

asmx with vb code: // this works
<%@ WebService Language="VB" Class="WebService" %>
Imports System.Web
Imports System.Web.Services

[Code].....

View 2 Replies

Call External Windows Application Form From Application?

Aug 17, 2011

I Have one Windows Application in which i have one MDI Form (Say App1). And I too have another Windows Application in which I have a Child Form (Say App2). So now i want to Call App2 from App1 .. And want to Display App2 form As MDIChild in App1 MDI Form . I am Able to open the Form of App2 , But how to set It As App1' Child .

View 2 Replies

Use Shell To Have Application Call An External Application But Its Not Working - Error: 'System.windows.shell'

Jun 3, 2011

I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!

Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.

Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click

[CODE].....................

View 2 Replies

Zip A Folder Without Any External Dll Nor Any External References?

Feb 3, 2012

I wanted to know if it is possible to Zip a folder without any external dll nor any external references - just with native features.I've been able to Zip files with System.IO.Packaging, but it does not include folders and I cannot tell it to Zip the parent folder.I know there are external dll and so, but I'd like to know if it's possible to make it from a native way.

View 1 Replies

.net - Cannot Call Stored Procedure From Code Which Works On Direct Call To Database

May 17, 2011

I connected to the Informix server using RazorSQL, created a stored procedure and tested it, getting the expected answer, so the procedure exists in the database in some form.

I then run the following code:

If ConnectToInformix() Then
Dim cmd As New IfxCommand("dc_routeHasOutstandingQuantity", conn)
cmd.CommandType = CommandType.StoredProcedure

[Code]....

This error does not occur when calling the stored procedure from a live SQL connection.

View 1 Replies

Call A Dynamic Compiled Func(of ) Function Via Expression.Call?

Mar 22, 2012

I want to create an ExpressionTree where a Func(of Vector, Vector, Vector, Vector, Double, Double, Vektor) should be called. So I use

Expression.Call(Forces(0).Function.Method, {Vec1, Vec2, Vec3, Vec4, Double1, Double2})(Vec1-4, Double1-2 are declared as ParameterExpression and Forces(0).Function as Func(of Vector, Vector, Vector, Vector, Double, Double, Vector). But I get an AgrumentException, because Forces(0).Function.Method has seven Arguments. (System.Runtime.CompilerServices.Closure as seventh argument at Index 0).

View 2 Replies

VS 2010 : Convert A DLL Function Call Which Has The Callback Function Routine Called Within The DLL Function Call?

May 25, 2012

I am trying to convert a DLL function call which has the Callback function routine called within the DLL function call.The DLL function call signature is like this:

typedef void *HANDLE;
typedef HANDLE HACQDESC;
DECLARE_HANDLE (HWND);

[code]....

how to convert this DLL call to VB.NET and also how to create the callback function and send it as parameter to this function
call.

View 15 Replies

Call C# Form - Call The Form Called 'main'

Sep 22, 2010

I have a VB .NET 2010 application. I added a C# project to my solution. I tried to call the form called 'main'. However, I could not figure out a way to do that. What is the best way to do that? I Goggled, and did not find anything. Actually I noticed that my Developer converted everything to VB .NET.

View 5 Replies

.Net 3.5 - Run An External App In A Thread?

Jul 7, 2011

Is it possible to run a ( external program/process ) in a thread of your vb application?

so you don't see the process in taskmgr?

View 12 Replies

Executing An External App?

Oct 1, 2010

im working in a windows app that execute another apps.. writing the name of the app in a text box (i.e firefox.exe) and click enter to run it im using >> (System.Diagnostics.Process.Start(app_name.Text)) to run apps it works fine with me .. but it didnt with some apps like when I write for example ares.exe it says:Win32Exciption was unhandled :The system cannot find the file specified

View 1 Replies

Getting PEB For External Process

Jun 9, 2010

There are tons of examples of how to access the process environment block (PEB) from C++ code but I'm wanting to do it from VB.NET and am seriously struggling.I call NtQueryInformationProcess and get a Process_Basic_Information structure back from that which has a member named PebBaseAddress and this holds a pointer to the PEB (I have verified that this member does hold a valid pointer at runtime). The problem is that when I try to read data from the address that this pointer references I just get nothing. One important thing to mention is that it works fine if I try to use it on my own process, its just when I try and read the PEB for an external process that it gives me no data. I've enabled the SeDebugPrivilege (and confirmed it is enabled for my process in Process Explorer) but this made no difference. I've also tested it on Windows XP x86 as I'm currently testing on Windows 7 x64 but XP had the exact same issue, only sometimes the XP one would just crash completely with a memory access violation and thats the other thing, I am getting fairly inconsistent results - even on the Windows 7 machine sometimes I end up with no data but other times I get memory access violation errors, and other times I get the data for my process even when I have passed in the handle of a different process..

View 2 Replies

How To Get External IP Address

Apr 1, 2012

I want to develop a function that will return the external [public] IP from my router.
Not the Internal [local] IP, something like 192.168.1.X.
But something like this 216.XXX.XXX.XXX

View 3 Replies

IE With External Application?

Oct 3, 2009

I have a quick, yet simple (i think?) question. How can i use the address bar to send commands to a external application?

Example:

AOL Instant Messenger I havent used this application in a long time. But i remembered if you wanted to add a friend to AIM from their online profile it directed them to a link such as:

aim:addfriend=contactID and AIM would pick this up and add it the contactID to the application. The link i posted is more than likely not the correct link they use but it shows what im trying to accomplish.

Im looking to achieve something along the lines of: myApplication:command=commandValue

View 3 Replies

Run An External Dll File/

Nov 27, 2009

I have a dll file which is reading a in.txt file and write a out.txt file. No need pass any variables to dll. Dll file runs alone.

I could not add this dll as referance. What I nned to do to just run this dll?

View 11 Replies

Run An External EXE File?

Dec 17, 2011

I'm creating an installer program. As part of the install process, I need to run/install the "AccessRuntime.exe" file.

How do I run this external EXE file from within my installer program?

View 6 Replies

Running An External .exe

Aug 16, 2010

i am creating a visual basic program, which acts as a very simple GUI for another program. I have built the whole Visual Basic project, but i am unable to do one part, the most important part you could say.I have a button(button1) on a form, when the button is clicked, i want it to run a program, named 'mover.exe' which is located in the SAME FOLDER that my visual basic program will run from. The directory of this folder will change. So, there are two problems..i have:

1 - to make the program run the .exe program when button1 is clicked (it also must be run with administrative privelages).

2 - to make the program always look for 'mover.exe' in the folder in which it is started from.

View 7 Replies

Use External Functions With XSL?

Oct 28, 2009

I have a visual basic file with a number of functions I want to use inside my XSL. I can build it as a dll and reference in my XSL project but I don't know how to reference it in my XSL file. I am using visual studio.[code]...

View 1 Replies

VS 2008 : VB Won't Run External .exe

Jul 23, 2009

I've been working on a program and the final step in it is to run an external exe. This particular exe is a video game exe. What happens is the code will run fine, the game starts up, and right when the screen blinks to go into the game, the game stops stops. I don't even get to the logos in the beginning.

This game in particular is Star Wars Battlefront II, and I'm trying to run the main game file (BattlefrontII.exe). I've tried TONS of ways to try and get this work.

System Diagnostics, MyProcess.StartInto blahblah.....

View 5 Replies

VS 2008 Getting External IP?

Mar 30, 2010

I just want button1 to make label1 the external IP when you click it.I found this:[URL]..and it is just your ip when you go to it.I don't know how to make this work and I have looked around a bit.

Dim wc As New Net.WebClient
Dim html As String = wc.DownloadString("http://whatismyip.com/automation/n09230945.asp")
Label1.Text = html

View 6 Replies

Waiting For External EXE To End Before Doing More

Apr 23, 2011

I keep trying different things I find on the net, but I can't get VB.net express to wait for exit. Hopefully someone can point me in the right direction here. Here is my code and all of this works but there is no way to tell when mugen stops.

[Code]....

View 6 Replies

Launch An External Program?

May 3, 2009

So I have my form, I add one combobox (combobox1) and a button that says "Launch..."Button 1's

Process.Start(ComboBox1.SelectedItem)

When you select a program from the combobox (combobox1) and click launch, it launches that program, for example, cmd.exe (command prompt) when I click the button, it launches the command prompt, but if I select a game (for example chess.exe, for vista), it says it can't find the file, this is because the search for the file is only: WindowsSystem32, how can I change that? OR, how can I add a reference that searches the WHOLE Disk, not just WindowsSystem32?

View 6 Replies

.Net 3.5 - Maximize A External Minimize App?

Jul 25, 2011

How do you maximize a external minimized application that is already running?

iMatthiWare
MatthiWare N°1 .NET Freeware & Shareware site! Title: Project leader, Owner @ MatthiWare Current project: MW Virtual Desktop Contact: Admin@matthiware.net.ms Website: MatthiWare " MatthiWare... What else?!? "

View 3 Replies

Access External DLL In VB2010?

Jul 22, 2011

I have a DLL that I made in FORTRAN to do some number crunching. It works in VB6 and in VBA within Excel. But I cannot get it to work in VB2008 or VB2010. If I try to access it the subroutines in the DLL I get either, 1) Structure of DLL invalid error or 2) Cannot find the DLL error.

Here is my VB2010 code for a smaller demo app that came with the FORTRAN development system. Again, this works with VB6 and VBA but not with VB.net

vb.net
Imports System
Imports System.Runtime.InteropServices
Public Class Form1

[code]....

View 3 Replies

Access Public Sub From External Dll?

May 20, 2010

I'm attempting to call an external public sub from another dll. I've added the dll as a reference and in VS Express 2010 it shows in my intellisense, however, it errors "Non-shared member requires object reference.[code]...

View 1 Replies







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