It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm new to ASP.NET, as subject, how to use asp.net to connection SQL Server...
How to remote connect "localhost\Instancename", for example connect 192.168.0.2/sqlserver2
You don't use ASP.NET to connect to a database directly. ASP is used to call backend function written in other languages like C#/VB.NET etc. which will fetch data and populate controls in the UI. e.g, You click a button. ASP will transform this click to a C# event (assuming that backend is in C#). The C# event handler will fetch data from DB and dump it into an ASP.NET table that you have on the UI (or wherever you want).
I think this will be a good place to start: http://www.asp.net/data-access/tutorials . It has everything you need, both in VB and in C#.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am building a web application, where a function is needed where i could make the web app send a specific stream of data to the desktop application, which is running on the web server where the website is also running on.
In example: you push a button, a certain code (probably an integer/string code) gets sent to the desktop app which then does something.
Why it's needed/wanted: we currently use this desktop application to quickly launch specific gameservers, without having to fiddle around with a million different shortcuts to each server, for each different configuration.
Now we'd like to have a web application to work as a "middle man" so certain people could start gameservers without having to connect to the server through RDP.
Extra info: the desktop app is currently written in VB.Net, but rewriting it in C#.Net shouldn't be a big problem, if it's needed.
Does anyone of you guys know of any good tutorials or techniques to do this, or have a better solution for my needs?
How about setting up some code in your Web app to write data to a DB. You could then have your desktop app poll the database using a backgroundworker. If it finds new records then it can continue processing.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've got a windows based application (not one I have control over) that will push an xml file to an ftp server. I would like to have that file automatically processed by my asp.net application without having to poll the ftp server. From within the windows application I can control the ftp server that it is being sent to, so I could setup an ftp server on my iis box, but then i would still have to poll for a change in the file. I am open to any suggestions on accomplishing this without having to poll an ftp server.
The FileSystemWatcher class is designed to monitor a directory and respond to events such as the creation of a file.
I'd suggest creating a Windows Service application to host the FileSystemWatcher and handle the OnCreated event.
FileSystemWatcher:
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher%28v=vs.100%29.aspx
OnCreated event:
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.oncreated%28v=vs.100%29.aspx
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is it possible to connect to a DATABASE which is in WEBSERVER through HTML5 only without using ASP.NET, JSP etc.
Html5 is a browser display language. It has no inherent methods or capabilities to connect to server side technology. You will always need a server side technology to connect to a database, even when using AJAX through a service. When you think about it, isn't this how you should want it? Would you really WANT to have a client connect directly to your database for any reason? You'd be exposing authentication information and allowing direct public access to your data store. Not terribly sensible.
The short answer is "No".
The slightly longer answer is "Maybe, it depends". e.g. If your database is CouchDB, then it is possible to host HTML documents directly on it (as an attachment to a regular CouchDB document). These can include JavaScript which can hold your application logic.
There is a specification called Web Sql Html 5, which is a variant of SQL. Unfortunately, this specification is stopped. You can see more details on these links.
Web SQL Database
HTML 5 Web SQL Database
Introducing Web SQL Database
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
What is the difference between using the built in SQL Server Database (.mdf) over using sql server management studio? Is there any differences or benefits of using one or the other for say a CMS?
answer was here What is an MDF file?
Both Visual Studio and SQL Server Management Studio work with the same .mdf files. These are simply the data format files that make up a SQL Server database. SSMS will give you a much more rich set of administration features to help in your database maintenance.
If you are going to be building full system, you will want to begin using SSMS at some point in my opinion. This will give you some easier GUI interface options to work with for administrating.
Another thread on .mdfs
Starting with SSMS
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have built an ASP.NET application that needs to be password protected. This application will be installed on multiple offline computers, and we need to make sure that when being installed it requires a password. But even if it requires a password, someone can easily copy the database and the published folder and duplicate the application on their system right?
I need a way to prevent this. Any ideas? It should only work on laptops that we have installed it on.
You could create a licensing tool like any other client app. Check the license key during app startup and occasionally during the runtime. Look at this post for ideas: Protect .NET code from reverse engineering?