473,378 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 1388
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**********************************@microsof t.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
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...
2
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...
7
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...
4
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...
5
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...
2
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...
3
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,...
1
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.