Web Forms :: Saving Data In Application Or Session?

Mar 6, 2012

i have performance issue when accessing the web application which is datacentric & populaed in a grid

ijust came across storing the data in applicatin or seesion using datatable

i have cutsom paging & navigation causes lot of time though i display records on request

 mean my page size is 75 records / page & at at time only 75 records are fetched i have a query accordingly with the total records of 6780 records

i need to optimize the performace so how do i save it in session or applicatin object & use it

View 1 Replies


Similar Messages:

Forms Data Controls :: Saving Sorting And Gridview Row In A Session Before The Modal Popup Is Activated?

Feb 8, 2011

Dear All I have a modal popup designed like this below

[Code]....

How do I save my current gridview sorting and the gridview row that was used to activate it in a session

View 6 Replies

Is It Safe Saving Credential Data In Session State For Short Period Of Time

Jan 1, 2011

Because of some situation , I had to save users password in session state for short period of time .it unsafe holding some important data in session state?

View 5 Replies

Web Forms :: Saving XML File At The External Application?

Apr 7, 2010

I'm trying to figure out how to save my XML file in the outside location.

I have a Main web app that uses an XML file as a datasource for one of it's pages. This XML file is generated manually by accessing a utuility page in the same app. I created a utility app that resides outside of the Main app ( it's on my C:/Inetpub/wwwroot) but it should save an XML file in the directory of the Main applicatoin. My utility works fine if I need to save to C:/Inetpub/wwwroot/XMLFiles) but I when I try to access the file at the Main application something like that:

objXML.Save(Server.MapPath("../../_MainApp/App_Dev/Marketing/Tests.xml"));

It gives me an error: System.Web.HttpException: Cannot use a leading .. to exit above the top directory. If I just type full URL it says that URI cannot be resolved.. How can I access that Tests.xml file to update it?

View 6 Replies

C# - Converting From Saving In Session To Cookies?

Mar 5, 2011

So, I am working on a demo web dashboard. Previously, I had been using Session to store settings about the dashboard, but I would like to move it to a more persistent means of saving settings.It seems to me that using cookies would be my best bet. I'm not entirely positive I have the time to work everything out for writing to/from a database properly.That being said, I might be in over my head on some assumptions I had made about the similarities between Session and Cookies. Currently, I have some code like this:

public Dictionary<string, RadPageViewSetting> PageViewStates
{
get

[code]...

View 2 Replies

Session - Saving Variables In Page?

Dec 25, 2010

I'm trying to convert a game I made (WindowsFormApplication) to an ASP.NET page.

My Problem is that I have a lot "private" variables in my WindowFormApplication and those variables are important for the game. But when after I Declare all my variables (in my Page_Load), they turn null no matter what I do(click a button, refresh the page).

Is there anyway to save my variables between buttons (other than Session, because I'd have to create like 6 more sessions)

View 1 Replies

C# - Saving And Retrieving Values From Session State?

Dec 20, 2010

I am reviewing some web code and I am not exactly sure how ASP.net session state works. If a User object is saved to the session state during login, and User.FirstName and User.LastName is set. If other web pages retrieve the user object from the session and set the FirstName to something else is that persisted on other web pages? Or, do you need to re-add the user object back to the session once it has been modified?

View 3 Replies

Alter Session Objects But Atlerations Not Saving?

Jul 23, 2010

I am developing a website where the user enters data into a form. The user can then go back and edit the data that is saved in a session variable and then the data is resaved in that session variable in an arraylist. However, for some reason although the data is resaving it is resaving the original data. I know this as I tested the code without the remove request to the arraylist and the original data was just added to the bottom of the array. I wondering if anyone would know why the new data is not saving. Any help would be really appreciated as I have only been programming for a few of months. Some of the code is below.//The gridview shown on a page which lists the objects saved by the user which he/she can edit and edit is the only one I am concerned with here as the other works

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"
OnRowCommand="EditPenaltyPointsGridview" >
<Columns>

[code]...

View 4 Replies

Web Forms :: Persist Data Across Event Calls Without Using Session / Application Variables

Oct 26, 2010

If I have a 2 control load events and one page load event subs and the control1_Load events fires first, can I lookup some database things and persist them? I would like to use the persisted data in the other two events when they fire. Normally I've been using session variables , is there a better way?

View 3 Replies

Forms Data Controls :: Is Possible To Maintain Two Session Modes In A Single Application

Jul 23, 2010

"Is it possible to have two session modes in a Single Application"?

View 2 Replies

VS 2008 - Saving And Loading Datatable From A Session Variable?

Mar 25, 2011

I need to save data in a datatable on a web page where the user is adding items to order. I know how to create a datatable and add data to it. And I will be binding it to a gridview control. But I do not want to loose the data when the page does a postback. Do I need to save it to a session variable for this? Or will the data stay in the datatable?

I found this code posted online. Is this how I would save it to a session variable and then load it anytime?

Code:
Dim dt As New DataTable()
Session("MyDataTable") = dt
' To retrieve it from session
Dim dt As DataTable = DirectCast(Session("MyDataTable"), DataTable)

View 1 Replies

State Management :: Saving And Casting A List Of Date In Session?

May 18, 2010

I am trying to save the every date clicked in a List of Date using a session variable. I am getting a casting error ..."when casting a number the number must be less than infinity".

[Code]....

View 1 Replies

State Management :: Session Object Not Saving Items Inside UpdatePanel

Jun 23, 2010

I have a multiview inside an updatepanel. in one of the views, I save a value in a session object like this:

Session["xyz"] = "some string value";

Then I switch to another view and try to pick it up the value in a button's OnClick event:

string x = Session["xyz"].ToString();

But I get a null reference error. Debugging it shows that Session["xyz"] is indeed null, yet other Session variables are still there. Is there something special about Session and AJAX?

View 5 Replies

Saving Files For Web Application?

Jun 19, 2015

I'm creating a web application where the users can upload and download files. In the past, I've usually done so by saving the files as binary in a sql database. I did this because, this way, I know which files belong to which users (based on an ID). How would I do this if I plan on saving the files on the HDD? I figure I would create a unique folder per user (and I would save their files there), but I'm wondering what the standard or better way of approaching this.

View 3 Replies

Saving A List Of Items In Application State MVC ?

May 10, 2010

I'm having a bit of trouble with knowing how I can save items from a list I have in Application state in the global.asax as- Application[""].

My controller basically takes in some user input, I then pass this to another classes Method as parameters it gets added to a list all the time. This data thats getting added to the list I want to store it, but without using a db. By using Application State. . I have been instantiating this class and calling its method to return the list of items but I dont think Application State is saving it.

Here is what I have so far. .

protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
TimeLineInformation t = new TimeLineInformation();
IList<SWTimeEnvInfoDTO> g = t.getInfo();

[Code]....

The SWTimeEnvInfoDTO type has get and set methods for the data.

I am calling the application from a View as well. It works with a string

Application["AppID"] = "fgt";

and shows this once i read it from my view.

View 1 Replies

Saving A Text File To The Application Folder?

Jun 22, 2010

i have build an MSI file for my project. Now what i need i am having some text boxes on my form. If i click on save i would like to save it as text file to the application installed folder.

View 3 Replies

Session / Renew An Application Session By Just shaking The Mouse?

Apr 9, 2010

Is it possible to renew an application session by just shaking the mouse?

View 8 Replies

Configuration :: Bitmap Image Saving When Running The Application On Iis Server

Apr 2, 2011

I m facing one problem which is related to Bitmap Image Actually My image is saved properly without iis server but when i run application on iis server then its give Exception "A generic error occurred in GDI+."
I m using this code-

Byte[] bytes = (Byte[])ds.Tables[0].Rows[r][1];
MemoryStream memStream = new MemoryStream();
memStream.Write(bytes, 0, bytes.Length);
System.Drawing.Bitmap origBMP = new System.Drawing.Bitmap(memStream);
System.Drawing.Bitmap newBMP = new System.Drawing.Bitmap(origBMP, 100, 150);
System.Drawing.Graphics objGra = System.Drawing.Graphics.FromImage(newBMP);
objGra.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
objGra.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
origBMP.Dispose();
newBMP.Save(Server.MapPath("ImageUpload\" + r + ".Jpeg"), System.Drawing.Imaging.ImageFormat.Jpeg); //exception throw "A generic error occurred in GDI+."
newBMP.Dispose();
objGra.Dispose();

View 3 Replies

State Management :: Save Session Data To Oracle 10g R 2 In Application?

Feb 26, 2011

I am creating a web application that will be running on an infrastructure which will utilise a number of web servers, web gardens and a load balancer.

As the application is using Sessions, and that our application is using Oracle as the database, we would like to use the database to save the Session data. However, I am struggling to find any good examples on how to do this with Oracle.

I note that Oracle provides the following class: Oracle.Web.SessionState.OracleSessionStateStore, but I am unsure what I need to do in the Code Behind and what if any tables do I need to create in the database.

View 2 Replies

State Management :: The Service Seems Not Working Correctly - Application Pools Recycles The Application Loose The Session?

Jul 7, 2010

we are experiencing big difficulties in the configuration of ASP.Net state service and II7. The service seems not working correctly because when the application pools recycles the applicatio loose the session.If we try the same configuration in IIS6 it works correcly.What is the correct way to configure the aspnet session state service in iis7?

View 2 Replies

State Management :: Use Session Variable From Application To Another Application?

Apr 27, 2010

I Want To Use A Session Variable From One Application to Another Application. Is That Possible in ASP.NET 3.5 Or Greater To Use Session Variables As i Required. My Both Applications Host In Same IIS Server.

Me To Sort Out This Prob. ASAP

View 1 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

Web Forms :: After Login Get The Application Role In A Session?

May 11, 2010

In my application. I have a master page where i have a menu control. After login i get the application role in a session. Now based on the application role I need to remove some of the items which are not required for general users.How can we check the menu and remove in master page. I tried below code but its not working.

[Code]....

View 7 Replies

Web Forms :: Creating Application Level Session Object?

Mar 24, 2011

creating session object to use across my web application.

I'm working on an application that requires a login control upon which we would need to set around 10 different session variables (related to the user). These values are required/ used many times across the web application so it would be really handy to create a class/ object which can be accessed in all pages with doing multiple lookups into the user table on DB. Also, I would like to avoid any conflicts with multiple developers using same session variable names and thereby causing issues down the road.

I know this is not a new kind of request and must have been created and used by many of the developers.

View 4 Replies

Web Forms :: Saving Data For Postbacks?

Dec 31, 2010

I would like to save some data for use after a page postback. Here is an example of what I'd like to do:

Partial Class TestPage
Inherits System.Web.UI.Page
Private _CategoryID As String = ""
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
_CategoryID = "ABC"
Me.ViewState("CategoryID") = _CategoryID
Else
_CategoryID = CType(Me.ViewState("CategoryID"), String)
End If
End Sub
End Class

I've tried both session variables and view state. The page loads fine initially, but on postback I get the following error:

Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

What am I doing wrong? How can I save this data for use after postback?

View 7 Replies







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