Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










Advantages And Disadvantages Of Using Application Variables In Web Applications?


I haven't used the application variables in my asp.net web applications. Im using asp.net2.0. Is there any disadvantages of using applicationvariables.


View 1 Replies (Posted: Jun 8 10 at 14:19)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Architecture :: Advantages And Disadvantages Of Using Workflow In Web Applications?
I would like to know the advantages and disadvantages of using workflow within asp.net web applications. While I like the event driven model andthe tracking featuresthat it presents I am a little uncomfortable with its asynchronous nature and I have a very complex process to model. Please give me a sample application if possible.

Posted: Dec 03, 2009 02:50 PM

View 1 Replies!   View Related
What Are The Advantages And Disadvantages Of Using Caching
What are the advantages and disadvantages of using caching in an asp.net application?

Posted: Jun 30 10 at 11:50

View 2 Replies!   View Related
IIS Web Garden Advantages / Disadvantages?
When do you need IIS Web Garden feature. What's pro's and con's?

Posted: May 17 10 at 11:59

View 2 Replies!   View Related
Advantages/Disadvantages Of Public Shared Functions
We have an application that has quite an extensive APP_Code directory (about 150 functions). The functions are split acrossmultiplefiles and then classes and namespaces.

On numerous pages we have to create numerous instances of the classes to be able to access the functionality, which can get veryrepetitiveand means we're repeating code on every page declaring the instance etc.

As far as I can tell, a way to navigate this issue, is to make the functions Public Shared (asopposed to just Public functions).

Posted: Jan 08, 2010 09:30 AM

View 5 Replies!   View Related
HttpHandlers / Modules :: Url Rewriting In Asp 3.5 - Advantages / Disadvantages?
i have a question regarding which is best choice to url re writing with following requriments

1.ASP.NEt 3.5 (or later version
2.IIS 5/6/7
3.this site is commnitity site

Choices

1.UrlRewriter.net
2.System.Web.Routing?

what are advatanges and disadvantage to both.

Posted: Dec 23, 2009 03:02 AM

View 12 Replies!   View Related
Architecture :: What's The Advantages / Disadvantages Of Explicit Interface Implementation
I am searching for the advantages and disadvantages of the explicit interface implementation

Posted: Jul 19, 2010 06:37 AM

View 1 Replies!   View Related
SQL Server :: Making Foreign Key Null Able - Advantages / Disadvantages
I would like to know if the forieng key should be nullable or not. We shuld struggle for not making it nullable as much as possible or it doenst matter.

Posted: Nov 17, 2010 05:47 PM

View 1 Replies!   View Related
Forms Data Controls :: What Are The Advantages/disadvantages Of Using Typed Datasets In 2.0
We have an inherited ASP.NET 2.0 app whose pages use a FormView bound to an ObjectDataSource. The ObjectDataSource calls a C# object to get data. The controls in the FormView are bound to the data like this:

<asp:TextBox id="txtSomething" runat="server" text="<% #Bind ("FIELDNAME") %>" />

I think this approach is not very clean: 1) the data and presentation are not cleanly separated, and 2) the values for some controls must be evaluated, formatted and/or put through some complex business logic that I would rather place in the code behind than in the text attribute of the textbox (like text="<% #Eval (SomeFunction("FIELDNAME")) %>").I would rather call the dataset in the code behind and programmatically set the values of the controls there (and preferably all at once like in the Page_Load event). I can do this using a typed dataset or an untyped dataset. What are the pros and cons of typed versus untyped?

Posted: Dec 04, 2009 01:07 PM

View 1 Replies!   View Related
Forms Data Controls :: Advantages/disadvantages Of Dataset And Databinding?
what are the advantages/disadvantages of dataset and databinding?

Posted: Aug 18, 2010 04:01 AM

View 3 Replies!   View Related
Sql Cross Database Or Multi-database Structure Advantages Or Disadvantages
sql cross database or multi-database structure advantages/disadvantages

Posted: Nov 18, 2009 01:01 AM

View 1 Replies!   View Related
AJAX :: Any Disadvantages If Use More UpdatePanels In Application?
is there any disadvantages if we use more UpdatePanels in our application.

Posted: Feb 16, 2010 06:32 AM

View 4 Replies!   View Related
.net - Advantages Of WPFbrowser Application Over Asp.net And Viceversa For Web Development?
I'm not familiar with WPF but I've seen things I like about it for web development. I wonder which advantages has developing a WPFbrowser application over asp.net (webforms/MVC) and viceversa. are there things you can do or use in asp.net you can't do in a WPFbroser application?

Posted: Jun 5 10 at 15:02

View 3 Replies!   View Related
Static Variables In IIS-hosted Web Applications?
If I declare a static field in a type instantiated within an ASP.NET application, hosted within IIS, is the same variable (i.e. same memory location) used by all of the worker threads used by IIS, opening up concurrency issues?

Posted: Jun 27 10 at 21:36

View 1 Replies!   View Related
Net Variables Are Stored In Ram Only And Can Be Shared By Other Applications?
Which asp net variables are stored in ram only and can be shared by other applications?

Posted: Mar 04, 2009 02:02 PM

View 1 Replies!   View Related
Persistent Variables - Assigning Cache - Session And Application Variables In One Program And Displaying In Another
I am assigning cache, session, and application variables in one program and displaying them in another.On one machine, they all persist for a while but then disappear.On another machine with Visual Studio 2008, the cache and application variables seem to persist but the session variable seems not to get assigned. I need the session varsfor individual user information and the application variables to hold lots of table data for the users to share. How can I make this work ? I am reading about application_start etc. now.



Posted: Feb 17, 2009 04:32 PM

View 3 Replies!   View Related
Entity Framework - Is Using Public Static Variables For Compiled Queries Bad In Applications?
I'm coding a business layer for an ASP.NET application. I've created database methods in my BLL as static. I've created public static Func variables to be compiled and used in several different methods, like this:

namespace BLL
public class User
{
public static Func<Context, variable, result> selectUser;
private static void CompileQuery()
{
if(selectUser == null)
{
selectUser = CompiledQuery.Compile......
}
}
public static UserClass Select(int id)
{
CompileQuery();
//uses selectUser
}
public static SomethingElse DoSomethingElse()
{
CompileQuery();
//also uses selectUser
}
}

It'll be used in ASP.NET layer like this: using BLL;

private void AddUser()
{
UserClass user = User.Select(id);
}

My question is, since static variables are not thread-safe, is this a bad design decision? I'm thinking of either implementing a locking mechanism, which makes me think if it'd slow down the application, or using instantiated class approach which makes me wonder if query compiling would be beneficial.

Posted: Aug 19 10 at 8:58

View 1 Replies!   View Related
State Management :: Sharing The Session Variables Between Two .net Applications Using SQL Server Mode?
I have two different IIS applicationswithin the same domain(let us say www.mydomain.com), both of these applications use the same database instance(same connectionstring), now what I want is that both of applications can see each sessions variables , can SQL Server session state mode helps in this case? Did someone try that before? Is there any other way to share the session variables?

Posted: Sep 18, 2010 03:39 PM

View 3 Replies!   View Related
Looking For Applications To Develop Own Application?
I am developing a web application for mortgage business related data (not mortgage calculation)in C#.( My job is to convert a classic asp app ..so workflow is already there. )Suggest sample application from where i can read and follow structure . It should have tabbed panes, user creation with different level of rights, complex web forms taking lots of input and using ajax.(even a bit of LINQ....as demanded by management!!) I found Nopcommerce interface very good. something similar but smaller in size. My ASP.net webforms knowledge is beginner to intermediate level.

Posted: Nov 9, 2010, 02:48

View 1 Replies!   View Related
How To Communicate With Each Of Web Applications And SL Application
I have a very huge Asp.Net application using Asp.net 3.5 with aournd 3000 pages. Now we need to integrate some Silverlight controls in it. For e.g we need to change the dashborad to incorporate new SL UX. My question is that easy to use these 2 technologies i.e. Asp.Net and SL and both have different projects. Will that be difficult for us to communicate with each of these web applications and SL Application. We are in the middle of making a decision as to how to integrate SL in our exisiting application.

Keep in mind that its out of the question that we can shift the whole application to SL. We must have to stick to asp.net 3.5 or 4

Posted: Aug 16 10 at 9:41

View 1 Replies!   View Related
Create An Application That Monitors All Applications?
I need to create an application that monitors all applications that are opened and closed, thier time at which they are opened and an excel file for the same should be generated before shutdown, I need to know what allnamespaces I need to use. Any software available in market that I canrefer to?

Posted: Jan 18, 2011 10:22 AM

View 5 Replies!   View Related
Web Development - How To Share Application Cache Between Two Applications
I have one website over at utopiapimp.com. The website is used for a popular web based game. Some company internets don't allow the website to be accessed so I opened up another domain at utopiashrimp.com. Same website but a different iss application. Both have same database backends. They also both sit on the same virtual machine. I put my brand new code on shrimp and solve bugs with that code. I host the solid code on pimp. So I can't just forward the shrimp domain to pimp because I need a test bed.

The problem is that they don't share the same application cache. So my question is, can two websites share the same application cache? I really need to figure this out. I would rather not create a webservice and or a handler that one website needs to hit to change the cache on the other application.

Posted: Oct 27 10 at 19:24

View 2 Replies!   View Related
Web Forms :: Will 2 Versions Of .Net Applications Run In One Application Server
I have a query regarding the web applications.

I am having two versions of applications and i have only one application server running on .net 1.1 framework.

I have developed a new application in .net 2.0. I want to know two versions of .net applications run in one application server.

Posted: Dec 04, 2009 11:24 AM

View 2 Replies!   View Related
How To Use Application Variables
I cant figure out how to use the Application["myvar"] variable to store data for the application in asp.net 4.0 web app using c#. It say Application is not a known object and I can't for the life of me figure what to do a "using" on to expose it. I am in a static class at the time I cant use it. It seems to work in other units?

Posted: Jan 26, 2011 12:33 AM

View 3 Replies!   View Related
Access "Application" Object In MVC To Store Application Wide Variables?
How do I store a variable or object application wide in ASP.net MVC. In regular ASP, you had the Application object, and in ASP.net too apparently.

Posted: Aug 7 10 at 14:49

View 1 Replies!   View Related
Configuration :: Want To Host Two Web Applications In Single Application Domain?
to host two web applications in single application domain? For example two web applications web1 and web2 being hosted in single application domain.

Posted: Aug 30, 2010 12:44 PM

View 3 Replies!   View Related
State Management :: Multiple Web Applications Run On Same Application Pool?
I have 2 different applicationshosted onan IIS server. I have created a new application pool.Can i run both the applications on the same pool??Will sessions or other values of one application be available to the other application if I do it this way?

Posted: Jul 09, 2010 07:00 PM

View 2 Replies!   View Related
Configuration :: Isolate A Parent Application From The Child Applications?
I have a parent application and several child applications in .NET 3.5. The parent application is a CMS custom app that needs to be isoalted from the child apps. THe URLs that we use to access the apps are:

[URL]

The root application on http://myserver is the cms application that needs to be isolated entirely from the other applications. Is this possible in ASP.NET and how do I go about doing it? Right now when I run sub_app1, I get a DLL binding error for a DLL that is only used in the root application.

Posted: Sep 03, 2010 08:40 PM

View 1 Replies!   View Related
Application Variables Work The Same In Both ASP And ASP.NET
This question actually refers to a classic ASP page I'm working on, but I'm assuming that app variables work the same in both ASP and ASP.NET Let's say we have a bunch of websites, owned by different people. The sites are all different, but the common theme is they are car enthusiast websites. Each of these websites has their own unique index page (of course), but also "common" pages, which are pages shared by all the websites.

One of the common pages, checks for the value of an application variable, which may or may not exist. For example, lets call this page luxurycars.asp, which is a simple page that shows the top 10 luxury cars of this year. This common luxury car page will pull and use the app variable like so:

[CODE]
Dim SiteOwner
SiteOwner = Application("OwnerName")
Response.Write("This site is managed by " & SiteOwner)
[/CODE]

This app variable is set uniquely in each clients index.asp page like so:

[CODE]
Application("OwnerName") = "John Doe"
[/CODE]

Will this work? I just started learning classic ASP (for my job), and I'm reading that application variables are universal and only one copy of the variable will exist. So does this mean if John Doe sets Application("OwnerName") to "John Doe" in HIS index.asp page, will everyone that visits the common luxury car page see John Doe's name? Regardless of whether they got to that page via John Doe's page or someone elses? And if so would using a Session variable instead solve this problem? Sorry if this sounds confusing, let me know if I need to re-word it or give more detail...

Posted: May 16, 2010 10:31 PM

View 2 Replies!   View Related
Modifying Application Variables In (MVC)?
I store a large structure holding my application's reference data in a variable I access through HttpContext.Application. Every once in a while this data needs to change. When I update it in place, is there a danger that incoming requests will see the data in an inconsistent state? Is there a need (and a way) to lock some or all of this structure? Finally, are there other approaches to this problem other than querying the database every time you need this (mostly static) data?

Posted: Mar 15 at 14:28

View 3 Replies!   View Related
Cache And Application Variables Disappearing
I have problems with cache and application variables disappearing. To get around the problem, I am trying to recreate themwhen they disappear by checkinga var calledcache("redo") when any page loads. Ifcache("redo") is missing , then Iserver.execute("redo.aspx"). When redo.aspx loads, it queries statictables, assigns them to application variables, and sets cache("redo") back to a value. I don't know if this is a bad way to deal with the disappearing problem and am worried about 2 or more users encountering disappeared vars and running redo at the same time.

1. Does that seem like a good way tohandle the disappearing problem?
2. What happenswhen2 or more users run redo.aspx at the same time ?

Posted: Mar 04, 2009 06:30 PM

View 1 Replies!   View Related
Web Forms :: Static Variables Throughout Application
i am developing a website in asp.net i have created a class "Utility" in App_Code Folder this class contains a static object of another class(LoginInfo) as described below:

[Code]....

This LoginInfo Class is my business object which only contains 2 properties UserID and UserName
Now what i am doing on my login page, after user authentication i am setting these properties with current logged in UserId and UserName

[Code]....

I am using this CurrentUser object on my webpage to get userid and username. It works fine, but after few minutes my CurrentUser.UserID and CurrentUser.UserName is set to blank string.I am not able to figure out what is the problem. may be due to asp.net recycles.

Posted: Oct 06, 2010 09:07 AM

View 3 Replies!   View Related
To Lose The Session Variables In Application?
I am using asp.net 2.0 Visual Studio 2008 and .net framework 2.0 and IE 6

I seem to lose the session variables in my application. I am using Forms Authentication

Applicationstarts with Start.aspx then use redirectFromLoginPage to redirect to index.aspx, which contains a disclaimer statement.From index.aspx I then redirect to Default.aspx using Response.Redirect("~/default.aspx", false)

In Default.aspx.cs inOnPreInit, I check for (!Page.IsPostBack) and assign a session variable "VAR1".

I want to use this variable later on for one functionality in the application. When I deploy in IIS, thisfunctionality works fine the first time, but fails in subsequent times. It comes up with Object Reference Not set (as Session variable "VAR1" does not exist"). Also sometimes, when I refresh the Default.aspx page in the browser, it comes up with same error message.

Posted: May 06, 2009 12:01 PM

View 10 Replies!   View Related
C# - Use Session Variables In Windows Application Using VC#?
im new to asp.net. . . im doing my final year project.How to use session variables in application using VC# and I also need to check with data base?

Posted: Feb 24 10 at 7:36

View 2 Replies!   View Related
Variable Not Retaining Value / How To Define Application Variables
I have a master page that contains some login texboxes. In the code-behind file I check to see if it is a valid login. If a user has logged in, I set a boolean variable to "true" else "false". I've defined the boolean variable in the master page code-behind file as "Public" and set it to "false".

My problem is, after a user has logged in successfully, the variable is set to true but when I run the code thru the debugger and it hits another control event, the value is still "false". Where should I define my application variables at? I tried to add a .bas module but obviously web apps don't offer that...at least I didn't see anything like that.

Posted: Nov 23rd, 2009, 01:31 PM

View 7 Replies!   View Related
C# - Accessing HttpApplication.Application Variables From A Class?
I set up various global parameters in Global.asax, as such:

Application["PagePolicies"] = "~/Lab/Policies.aspx";
Application["PageShare"] = "/Share.aspx";
Application["FileSearchQueries"] = Server.MapPath("~/Resources/SearchQueries.xml");

I have no problem accessing these variables form .ascx.cs or .aspx.cs file -- ie. files that are part of the Web content. However, I can't seem to access 'Application' from basic class objects (ie. standalone .cs files). I read somewhere to use a slight variations in .cs files, as follows, but it always comes throws an exception when in use:

String file = (String)System.Web.HttpContext.Current.Application["FileSearchQueries"];

Posted: Jun 9 10 at 23:35

View 1 Replies!   View Related
Preserve Session Variables In Web Application After Build?
Every time I build my web application, my session variables are lost from before the build. Is there anyway to preserve session variables during the build?

Posted: Nov 15 10 at 20:23

View 3 Replies!   View Related
Store / Access - Application Wide Variables Or Globals In Asp.net
What is the recommended or usual way an ASP.netwebapplication(in C# language)can store/access values that areneeded accross the various pages in a website.For example a basic company website might need the company's name and other related information available to multiple pages. Where do I declare these variables/values and how doI access them. Coming from c++ application programming I would usually store such data in a Singleton class object.

Posted: Feb 08, 2010 05:21 PM

View 5 Replies!   View Related
C# - How To Enable Access To Application Variables Inside A Web Service
I know I can allow the web service access to Session variables by adding (EnableSession=true). Is there a way to allow it access to global Application variables?

I have several resource intensive variables that are loaded in the Global.asax and I need access to there in the webservice.

Posted: Dec 15 10 at 15:41

View 1 Replies!   View Related
WCF / ASMX :: Building Services To Work With Web Applications And Console Applications?
I've been worked with web services so far, and I'm interested in expanding my services to console applications as well so I started digging up with WCF but I'm conserned that I won't be able to use the HttpContext collection that I've been used to do with web services one important thing which is to generate a random value from HttpContext.Current.Request.ServerVariables["ALL_HTTP"] that I need to reckon if it's the same or at least near what machine that is calling my service. How can I overcome this problem?

I need to know what machine is calling to count the number of attempts to login into my system for example. So must do it inside of the svc code otherwise if I let the client inform what ip address or what computer he is using, anyone could forge this argument and surpass by another machine. May be I'm approaching this matter wrongly. And I should count the number of attempts per state session, but how is it done?

Posted: Jun 07, 2010 02:22 AM

View 1 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved