Architecture :: Want To Use Same Instance Of Opened Forms From Application?

Mar 13, 2011

I have window application and I want to use same instance of opened forms from application. I know this is possible with singleton pattern so if you have code example of singleton pattern then

View 2 Replies


Similar Messages:

Web Forms :: Kill Excel Process - Opened By Current Instance?

Jun 30, 2010

I have an asp.net application, which opens an excel file and reads it content. If user closes the application or the page when the excel file reading in progress, i want to kill the Excel process (which is opened by the current instance.

View 17 Replies

Web Forms :: Check If A Page Is Opened . IF Opened, Close The Page?

Nov 4, 2010

I am generating a new report page by using the following code.

[Code]....

But, the above script is used in more than 20 parameter page which ultimately always open the same Report_preview.Aspx page.

What i want to check while running the above script is "give a warning if the Report_preview.Aspx is already opened"

View 5 Replies

Architecture :: Should DAL Reference Added In Presentation Layer? How To Access The Instance Of Table In Presenta

Mar 3, 2011

I creating 3 tier arch wpp in VS 2010. I added the BusinessAccessLayer refernce in Presentation Layer. and I created DataAccessLayer[DAL] and ORM [DBModel.DBML]. when i try to create the instance for the Table in presenation layer[default.aspx], The Table name is not shown.After adding the DataAccessLayer refernce in the presentation layer, the table name[MM_User] instance are shown.Is it the right method [Adding the DAL refernce in Presenation Layer]? If not, whats the solution for for accessing the instance of the tables[MM_User].Is it related to the Creating the DataContextWrapper class in DAL?

View 5 Replies

Architecture :: Auto Update Application Like In Wordpress, Application Must Check If New Updates Are Available?

May 3, 2010

I need to auto update application like in wordpress, Application must check if new updates are available, download this updates and install.But I don't know how to install application. Because if some files in bin directory are updated application is restarted.Is it possible to create ASP.NET web application which will be auto updatable?now we have a new technologies, could u please suggest me any kind of soultion for the above problem. here i am enclosing my email idsunnyb4uu@hotmail.com

View 2 Replies

Architecture :: Design An Application To Fetch Data From Different Application Databases

Nov 10, 2010

I need to develop an application, which will get records (orders) from one application and process them. The updates to this records (order updates) will be sent back to the source application for end customer reference. I'm planning to achieve this data synchronization at the database level using triggers and stored procedures to insert database between the 2 databases.

But, the issue is I have to deploy this application in 3 different customer sites and I have to change the database names (cannot use the same database name) in each deployment manually. Because of this deployment issue, I was thinking of handling this within the asp.net application where I can store the db name in the database and then build the query within the application, but I dont want to do it as building queries like that doesnt look very professional.

View 2 Replies

Web Forms :: Using Datasets As Part Of Web Application Architecture?

Feb 18, 2010

i am using datasets as part of my web application architecture.

i have one dataset which has two tables which are populated from database . everything works fine but when i have change in stored procedure. i change structure of datatable in dataset file after that compilation errors start to throw up. when i check cs file of dataset it shows multiple classes with different names.

cant get into it. since im using datasets for first time. its getting frustating.

View 4 Replies

Architecture :: Best Way To Pass A Values From One Application To Another Application?

Dec 8, 2010

Which is the best way to pass a values from one application to another application in asp.net

View 5 Replies

Architecture :: Best Way To Kill Session From One Application To Another Application In C#?

Dec 8, 2010

Which is the best way to kill session from one application to another application in C#

View 5 Replies

One Application Instance For Two Domain Name?

Jun 17, 2010

I have two web applications in ASP.NET which are quite the same (same business logic, same DAL, same DB scheme but different instance).

The only thing that I need to change is the design (logo, color,...) and the text (global and local resource) to adress two separate business sector. We cannot "subdomain" the application because we need the two app "seems to be" independant.

Is it a good idea to run only one instance for the 2 web applications.

For example :

I will have 2 hostnames : mycompagny.com and mycompagny2.com and I will put an HTTP Module which will set a string which will be propagated in my application like 'company' and 'company2'. I will instanciate the dal only once but the connection string will change depending on the string 'company' or 'company2'.

Just for information it is a Multi-Business and Multi-Tenant application because both application will have custom theme for some parts of the application.

For example :

mycompagny.com/Busineess1, mycompagny.com/Busineess2, mycompagny.com/Busineess3,..
and
mycompagny2.com/Busineess2, mycompagny2.com/Busineess2, mycompagny2.com/Busineess3,...

View 3 Replies

Architecture :: Want To Create Another Application Or Sub Application?

Aug 25, 2010

I m sure this question has been asked before. I have a web application hosted underhttp://localhost/abc. which is mapped to c:inetputwwwrootabc folder. I have APP_Code, App_LocalResources, BIN and other folders under abc folder. Everything is great. Now I want to create another application or sub application
http://localhost/def. Both abc and def apps need to use some common classes and resources. Whats the best way to do it. I dont need to create a separate application for def. All i want is the url
http://localhost/def.

View 3 Replies

How To Create Multi Instance Application In Azure

Feb 6, 2010

I want to create multiinstance application in Azure. and then demontrate that if one of the instance is down other instance is working fine. How should I achive that.

View 1 Replies

.NET Application - Error When Trying To Connect To A SQL Server 2008 Instance?

Jan 3, 2011

I'm trying to publish an ASP.NET website over an IIS 6.0 (Windows 2003 Server), and I have some troubles trying to connect to the database. Curiously, I have installed another ASP.NET website into the same IIS 6.0 with the same properties and security parameters and can connect without problems with the same database. The application that works fine is almost the same that the one that can't connect with SQL Server (actually is the same but with several modifications).I'll enumarate some information related to the problem:

S.O: Windows 2003 Server
SQL Server Engine: SQL Server 2008 SQL Server accept remote connections? Yes.
ASP.NET version: 2.0.50727
The connections via TCP/IP are enabled to the SQL Server instance? Yes.
The corresponding user that I have in the connection string, actually exists into the database with the "owner" role? Yes.
ORM Tool used: nHibernate

I get the following error when I try to run the aplication into the browser:

Error while establishing a connection
to the server. When connecting to SQL
Server 2005, this failure may occur
because the default settings SQL
Server does not allow remote
connections. (provider: Shared Memory
Provider, error: 40 - Could not open a
connection to SQL Server)

I made some test. For example, using the web app that works fine I can connect without any problema with the database that uses the web app that can't. With this evidence I concluded that the problem is within the web app and not into the SQL Server instance.

View 2 Replies

Crystal Reports :: Implement Without Adding Any Instance Of Into Application

Aug 29, 2010

I'm using Visual Web Developer 2010 Express, and I'm at the point in my web application where the data from my database (SQL Server 2008 express) needs to be put in a nice format. So I decided that I want to use Crystal Reports, and I see some online tutorials on how to implement them in ASP.NET/VWD, but I don't see any way to create a .rpt file or add any instance of Crystal Reports into my application. How does this work? What exactly do I need to configure/setup so that I can use Crystal Reports in my web application and just in general, Visual Web Developer?

View 4 Replies

State Management :: Session Variable And Multiple Web Application Instance

Oct 13, 2010

I have a web application using window authentication. There are a search page and a edit page in the application. In search page, user can enter some search criterias in the textboxes and the search result will be displayed in the gridview by clicking the "Search" button. User can select any row from the gridview and it will take him to the edit page. In the edit page, there is a "Back" button to take the user back to the search page. I use session variables to remember what the search criterias the user entered in the textboxes and what page number the user was in the gridview. So when the user goes back to the search page, the textboxes are pre-populated with the search criterias and the gridview is displayed in the correct page number.

The problem is: If user1 opened one browser window and did a search using search criterias1, then user1 opened a 2nd browser window and did a search using search criterias2. When the user1 went back to the search page from the edit page using the first browser window, all the textboxes and page numbers are from the 2nd browser window, instead of the 1st one. Can anyone explain this problem to me and how to prevent it? It will be helpful too if you can give me some links about the similar problem. I am thinking if the same user logged on two different machines and did the search on each machine, what is the result?

View 4 Replies

Turning A Single Instance Web Application Into Multiple Instances - Concept?

Feb 11, 2010

Here is a conceptual questions that I was going over the last few days. I have a simple application that I want to turn into a hosted solution.

My take on it is that in a sense each record in the database would have its own ID representing the hosted instance of the application, rather

than installing the application each time a new one is needed. Then I can easily differentiate between the instances, however I don't want to

store the instance ID in a session (bad for URL back links etc.) and don't really want to add it as part of the URL.

What would you suggest ?

Another part of the question would be how to pragmatically create a sub-domain representing the application instance, however that's a

Whole different question J

View 2 Replies

Is It Acceptable To Cache An Instance Of The Database Connection On Application Start

Jan 5, 2010

Is it acceptable to cache an instance of the database connection on application start?

Looking at the MSDN documentation on thread safety, I quote:

Any public static [...] members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Given that, is it acceptable/safe for code such as this example below:

[code]...

View 1 Replies

Use MVC Architecture In Web Application?

Nov 2, 2010

I am beginner in MVC architecture, how to use MVC architecture in Web applicaion?

View 2 Replies

Elect One Web Application Instance To Perform A Task Triggered By An External Event?

Mar 4, 2010

I have an ASP.NET application running on multiple IIS6 web servers, with a SQL Server 2005 database back-end.

I need to:

monitor the database for the completion of an external job event, and then have exactly one web application instance submit some information to a web service For (1) it seems like a SqlDependency would be the best approach (or just plain old polling). Each web application instance would register such a dependency when it starts up. (I don't want to configure a 'master' instance because the failure of that instance would mean the task doesn't proceed, even if other instances are available. Thus my design is to ensure that if there is an instance available to do the work, then the work ought to proceed.)

For (2) I have been thinking of having some sort of flag in the database that the web application instances try to update once they receive the SqlDependency notification in (1), along the following line (greatly simplified):

UPDATE StatusTable SET TaskStatus = 1 WHERE TaskStatus = 0

SELECT @@ROWCOUNT

that only one application instance would have been able to update the TaskStatus, and thus only one instance would have a @@ROWCOUNT > 0. This would then be the instance 'elected' to submit the information to the web service.

View 1 Replies

Architecture For A Web Application With Sub-Apps?

Jan 17, 2011

I'm starting to plan an architecture for a big web application, and I wanted to get suggestions and/or recommendations on where to begin and which technologies and/or frameworks to use.The application will be an Intranet-based web site using Windows authentication, running on IIS and using SQL Server and ASP.NET. It'll need to be structured as a main/shell application with sub-applications that are "pluggable" based on some configuration settings.

View 3 Replies

Web Application Architecture Using Nhibernate

Dec 10, 2010

I'm designing my first asp.net web app, using nHibernate as the data provider. i've read a lot about nhibernate in web applications using session-per-request pattern. my application will have a few pages which are 'monitors', meaning- they're updated automatically every few seconds to reflect recent changes to data. in that case, my thought is that opening a session for every request would not make much sense, since I know that an identical request is sure to follow in a few seconds. my thought is that session-per-conversation would make more sense for me, but I'm having trouble finding examples of implementations. I'd appreciate any good resources for how to implement session-per-conversation

View 2 Replies

Architecture :: Use Different Database For One Application?

Nov 24, 2010

How to use different database for One Application

View 6 Replies

Architecture :: To Design Application?

Jan 18, 2011

I am very new to application design, how and from where should i start to design application

View 3 Replies

Architecture :: Web Application From Scratch?

Apr 21, 2010

I have to build a web application from scratch(a 4-layer architecture). give me a checklist that are required such as tools, how to create the projects and their references,writing base page classes, how to set up and configure the application in Visual studio(asp.net 2.0 or above versions) ,IIS, database server, source safe and cruise control tools as well as the structure of the project.

View 6 Replies

Architecture :: Going To Develop A Web Based Application With C#?

May 30, 2010

i am going to develop a web based application with c# but i am very upset that how to design a good pattern how to code to let the program more efficient.

View 3 Replies







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