473,626 Members | 3,325 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows function call from aspx code behind?

Hi,

is it possible to call a Windows function from VB code behind an aspx page? Shell seems not to work??

Task: I want to execute an SQL script for SQL Server and want to avoid to be forced to write a very complicated stored procedure (with all the dynamic SQL problems and ....), as I have a (generated) script, that is working quite fine.

Thanks for help in advance

Regards

Hartmut
Nov 18 '05 #1
1 1399
You can call whatever you want in your code behind, but keep in mind that
everything you call is going to be happening on the server, and not on the
client. If you want to run a script, just set up a SqlCommand object with
the text of the generated script that you want, and then execute it.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Hartmut Schroth" <msdn_hs_sup01. hotmail.com> wrote in message
news:83******** *************** ***********@mic rosoft.com...
Hi,

is it possible to call a Windows function from VB code behind an aspx
page? Shell seems not to work??

Task: I want to execute an SQL script for SQL Server and want to avoid to
be forced to write a very complicated stored procedure (with all the
dynamic SQL problems and ....), as I have a (generated) script, that is
working quite fine.

Thanks for help in advance

Regards

Hartmut

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
359
by: Jason | last post by:
Does anyone know how to do this? cntHeader is my control. When I try to set the value of lblDistributor = label1.text, I get the following error. Object reference not set to an instance of an object PLEASE HELP!
2
1310
by: C | last post by:
Hi, I have an ASP.Net application. I have an aspx page with a button that submits the page. In my codebehind I check if it is a postback and instantaite a class and use a method of the class. On coming back from the class I instantiate it hits the
7
2417
by: Gene | last post by:
I have a number of aspx pages on which a single user control appears. All of the aspx pages and the user control make user of code-behind modules. I need for logic in the user control's code-behind to read the current value of a variable in the hosting aspx page's code-behind. How is this accomplished? Thanks.
4
8736
by: April | last post by:
Hello, I'm fairly new to this whole ASP.NET world, so please bear with me. I have an ASP.NET .aspx page. I written most of the functionality in the code-behind .aspx.cs file. But, now I need to pop up a message box from my C# code-behind code. I don't know how to do this and haven't been very successful in finding any online help. It's basically: if (valid == false) { }
5
12818
by: jason.gyetko | last post by:
I'm using JavaScript to capture a keypress in my web form. Right now all it does is post an alert message box. Is there a way to have it call a function in my VB code behind? All I really want to do is open another web form when a certain key is pressed. I guess I'd also like to be able to give focus to a specific textbox on the page when a key is pressed. In case you're wondering why... I am scanning in most of my values and each...
2
2320
by: Hiten | last post by:
Is it possible to have more code behind file but that file will have same class in way of partial class, Default Structure I -------------- Homepage.aspx + Homepage.aspx.cs (this .cs file will have "Homepage" class which is partial)
3
21738
by: moni | last post by:
Hi.. I am trying to use javascript for google maps display. If I call the javascript function from my aspx file I use: <input type="text" id="addresstext" value="Huntington Avenue, Boston, MA" name="yourName" style="width: 287px" />
1
1359
by: justin | last post by:
I thought I posted this an hour ago, but don't see it. I'm sorry if it's shown twice. Hello, recently I was working on a project where I needed to automate PDF generation. I found two open source libraries that I liked, but the best one required the Windows.Forms class to be used in the C# code-behind. When I tested the library, this worked fine in Visual Studio 05.
0
8199
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.