I get the following error : The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.
Currently i have created Anonymous Profiles, i am not knowing whether the data will be saved in SQL database or Cookies, as i do not want to grow the database for Anonymous Profiles ? But in future i may migrate the Anonymous Profiles to Authenticated ProfilesBelow are the clarifications i need related to Profiles1) Do data of Authenticated Profiles saved in SQL database ?
i am working on a web application. i have 10 textbox control, in the page and 6 check box control . i need to store all those values in a session. but storing such a big field value is nothing but to create more session values. but i dont want create more than one session variables. how should i do this.
I want to store List<Class> object to ViewState, when i try to do this than its giving me error to make class serialize,but my class is partial class so didn't get serialize keyword on class how can i store List object to viewstate.
i want to store IQueryable value to ViewState. my code is as below:
Private Property _Query() As IQueryable Get Return CType(ViewState("_Query"), IQueryable) End Get Set(ByVal value As IQueryable) ViewState("_Query") = value End Set
but when i run my page i get following error:
Type 'System.Data.Linq.DataQuery`1[[DynamicQueries.VW_EmployeeProfile_Filter, DynamicQueries, ersion=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable
what should i do to get rid of this error. previously i was doing like this:
Private Shared _Query As IQueryable
but problem is that in Multi users environament, Shared variable is making problem, that is why i want to store it in ViewState.
can i get few data from textboxes (like 12 text boxes) and store it in cookies? so the next time the user will not need to type the data again (so the data will place auto in the text boxes for the next times)
i am building an N-tier application now i want to store Data(like XmlNode) that is common to all users ..
now i thought using Application to hold the data but my data lays in the BLL tier which is an Class Library project and i can't store any datain there for example :
I have a object of Class named "Employee" I need to store the object in the session. what happens if i do not serialize the object and store in the session.
I have some webforms and the main page grabs the users email address when they login and a UserID. It's not uncommon for the user to keep the web page open all day. Is it good practice to store the email address and ID as a session variable and up the timeout to say 10 hours? Or is there a better way? My concern is A) Session variables timing out before the user login timesout B) Doing this incorrectly.
In my website the page viewstate values in hidden are very large.So i wish to store this values into another methods(session,files etc).so please advice me to some methods..
First one is registration page.second one is Gridview page.
When i click on submitt button,the data will store in gridview.
If i want to update the data,click edit button.it will navigate to registration page with concer data.
I wrote code in first page as
[Code]....
In second page gridview as
[Code]....
Now the problem isWhen click on edit,data is stored in concern textboxes.but i open first page it diplays session data.it did not show empty textboxes.I want empty form wen i request first page and wen i click on edit it will store entire data in textboxes with update buttonand client id and client code readonly property false.how to do it?
I have a public property that I use to store a GUID in the viewState:
Property myGUID() As Guid Get Return CType(Me.ViewState("myGUID"), Guid) End Get Set(ByVal value As Guid) Me.ViewState("myGUID") = value End Set End Property
I include this code on many pages in my website...is there any way to migrate this to a common code file, so I don't have to repeat it on each page? If I try to add it to a class file, the "Me" part of course is out of scope.
I have a class that being used to connect with the DB. Now I want to count how many times each web request executes the queries, but I've no idea where to store the counted value. I mean, Session wont, ViewState wont work as site also have webservices. What else I can use?
I have a FormView on my page and each ItemTemplate consists of 4 Radiobuttons. Now, let a user select a RadioButton, say r, on PageIndex, say p, and then moves to PageIndex k. When the user comes back to Index p, he should see the button r selected. I'm not able to do that. I have been able to save the radio button that was checked, but when the user goes back to the index, none of the buttons are checked. I've tried a lot of things like setting the button during PageIndexChanged, PageIndexChanging and PageLoad, but none worked.
i am currently storing my shopping cart in a datatable assigned to the session. but i wanted to know is it a good idea to store the GUID for the session shopping cart?
I'm working on a web page that is going to be used to enter data into a database. The page is going to be dynamic in that the user has the ability to add a row to the table with the same fields, ie lname1, fname1, mi1 then lname2, fname2, mi2
I'm wanting to use a variable to keep track of how many lines there are so that when I generate the added line I am creating a new field with the ID of lname+# . Whats the best way to do this, a global variable, session variable? As side note, first time programming in .Net or C#.
My problem is regarding title written above. Currently I have some functions that rely on Sessions to do the job. Everything works smoothly when it is left to default. However, I do not like the idea of losing sessions in case of crash and I have modified my web.config to use Sql Server mode instead.
I have run the necessary commands to create tables and stored procedures in my database using aspnet_sql.exe. I am able to store values into the database but have not been successful retrieving them. Since it has been working fine with InProc mode, I think I can safely assume that there's nothing wrong with my codes. Here's my web.config setting: