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 12 years ago.
I have been asked these question in interviews...
Is it pages will compile in server?
In server pages will compile or execute?
When application object will create?
Can anyone explain them in detail...
Is it pages will compile in server?
Yes the code behind compiles on server with the first call and product dlls.
In server, pages will compile or execute?
After the pages have been compiled on dlls, on every call the system use the dll + aspx to create the page. You can call it execution, maybe not of the page but of the pool.
Actually the pool, use the strings-html that find on aspx, with the dll of the page that is used to make the cycle of an aspx page and create the final html
When application object will create?
The application object will created when you start the WWW service and signal the Application_OnStart, one object per pool, and is stop when system finds the app_offline.htm, or you close the WWW service and signal the Application_OnEnd.
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.
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#.
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?
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.
Can you scan directly from an asp.net page or even an embedded Silverlight object?
Silverlight doesn't have access to local devices like scanners. ASP.NET pages run in the web browser, so they also don't have access to scanners.
What are you trying to accomplish?
If user can use the 'Windows Fax and Scan' utility to scan the document and save it in the local hard disk, You may use Silverlight OpenFileDialog and read the document and save it on the server.
I've done exactly this in a few company website applications that I've worked on.
You have to use an ActiveX control to gain access from the client's browser to the configured TWAIN scanner on the machine. Once you have access you can then initiate the scanner via a webpage button, scan the document and use the newly delivered image object within your website code.
I'd recommend looking at an already developed activex component library to do this for you. An example being http://dynamic-web-twain.smartcode.com/info.html
The downside of this approach is obviously ActiveX only works with IE and requires the user to trust your website. If your user base is a trusted company or are internally based then this should not be a problem.