ADO.NET :: Finding Best Way To Maintain Log
Mar 11, 2011
Currently I'm using asp.net 2.0 for my current project. I want to have complete log information like insert,inserted by, updated , updated by, what are the things being inserted or updated and person who making all these changes, every thing i want to keep information..
View 5 Replies
Similar Messages:
Oct 26, 2010
I need to maintaing the Session throughout the day? On or before session expires, how do I enforce session throughout the day without giving any session timeout either in IIS or web.config?Note: Default Session Timeout in IIS - 20 minutes.
View 6 Replies
Apr 7, 2010
I am working on an existing project, setup by another coder. I'm having some trouble understanding how state is being maintained between pages. There is a Class library which has some helper objects. Mostly these objects are just used for there static methods and rarely instantiated or inherited.
This is an example class I'm testing with.
public sealed class Application
{
public static string Test;
}
Now when i run something like the following in the base class of my page, I would expect the result to be "1: 2:Test" all the time (note that "1" is empty), but strangly its only this way the first time it is run. Then every time afterwards its "1:Test 2:Test". Somehow its maintaining the state of the static variable between pages and being refreshed??
Response.Write("1:" + SharedLibrary.Application.Test);
SharedLibrary.Application.Test = "Test";
Response.Write(" 2:" + SharedLibrary.Application.Test);
I need to create more classes like this, but want to understand why this is occurring in the first place.
View 4 Replies
Jan 8, 2010
i am using Fileupload and 3 dropdown control in update panel, 3 dropdown will be post back on dropdown selected index change event (i.e like Country,states and city... get the value from db as per country,states and city)
THE PROBLEM IS
While postback the filename path is gone from the file upload control(as expected/ or Default property).
I am converting the file to byte array, to store in the database from file upload control.
How can i retain the value or Is there any way to solve this issue.
Is there any ajax control for file upload or any free controls which retain the value after postback also...?
Or it is possible to set the value to file upload control during postback ?
View 4 Replies
Nov 22, 2010
I created an application that grabs jokes from a database on start and shows the first joke on screen. Now when we hit the Next button it should show the second joke. When I first grab the jokes, I put them in a globally declared datatable. To show the first joke I'm doing:
Title.Value = dt.Rows[0]["joke_title"].ToString();
Detail.Value = dt.Rows[0]["joke_content"].ToString();
Now when I hit Next button I'm running these commands:
Title.Value = dt.Rows[0+1]["joke_title"].ToString();
Detail.Value = dt.Rows[0+1]["joke_content"].ToString();
but when the Next button is hit, the page posts back and I lose the values in datatable. How do I solve the error without losing the data in the datatable?
View 3 Replies
Feb 2, 2011
I'm interested to know how others maintain their web.config files for deployed applications. (assuming no automated deployment mechanism - that is out of the scope of this question)So during development, some developers might make use of web.config transformations, build/publish their projects (debug/release, test/live configurations), then deploy all published artifacts to a web server and set up IIS. Some developers might build/publish their projects, deploy published artifacts to a web server, set up IIS, then manually update the web.configs for the specific environment (test/live, etc) they are deploying into
View 2 Replies
Oct 22, 2010
How can I maintain a 3 level heirarchy by using a gridview?
View 1 Replies
Feb 20, 2010
Im using asp.net treeview in my apllication.i have apply css class for selecte node of treeview
.MyNavTreeSelected
{
background-color:Gray;
}
when i run the page first time last node of my treeview automatically set that background color as i applied in css.....and if i select any node of my treeview as soon as my css has worked but after page post back it just disapper...how do i maintain that css after postback... and last node of my treeview defaultly set css....
View 1 Replies
Oct 3, 2010
Does anyone know how to maintain postback while calling WebForm_DoCallback? it always set the vertical scrollbar of the page to the very top.
View 2 Replies
May 7, 2015
How to maintain log in text file about insidences happening in program , for seprate date wise.
View 1 Replies
Nov 29, 2010
I have to create a very simple database driven website ( for a project ) with basic features like a login system, etc. I have completed most of the basic tasks required, but there is one section that is asking me to 'Use persistence to maintain state/relationship'.
I have read a few articles and videos about persistence but I don't understand its benefits and why and how it should be used. Can anyone point me towards a site that explains how to implement state persistence in a simple way. I don't need anything advanced just a very simple way of integrating this into a very simple site to say its been done.
View 1 Replies
Jan 19, 2010
how can i do this? At the moment a user's session is lost whenever they close the browser, but sites like facebook have a 'keep me logged in' option. How does this work exactly and are there any well known ways to do this in .net? i understand part of the way it works is that they store the username in a cookie.
View 4 Replies
Aug 28, 2010
My question is that how to maintained page load time in c# and what page time load is good for site to crawl google index
View 1 Replies
Mar 27, 2011
Is it possible to send the object to the web service and the web service returns the object?is it possible to maintain the state of the object while sending it to the user through web service?
View 2 Replies
Dec 29, 2010
If my model has a property of type Dictionary<int, int>, and I populate the dictionary in my GET controller action, how do I maintain the values so they are still there when I am doing a post to another action like this:
[Code]....
View 2 Replies
Feb 8, 2010
How can I maintain focus to a textbox which is placed inside a usercontroll while on postback.
View 6 Replies
May 7, 2010
I am loading tabs (using ajaxcontrol tookit) dynamically and populating UserControls and inside tabs.
Now, I have only the below code in aspx. How to maintain the tab focus?
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
</asp:UpdatePanel>
View 2 Replies
May 15, 2010
I'd like to maintain a session state per browser tab.
Is this easy (or even possible) to do in ASP.NET?
Example: A user hits Ctrl-T in firefox 5 times and visits the site in each tab. I'd like each tab to have its own session state on the server
View 2 Replies
Jul 9, 2010
I have two identical applications setup on IIS on different virtual directories (I have done some workaround to ensure that they both have the same application name). Is there a way to share session id across two asp.net web applications?
Since I'm storing the session in StateServer, they should both be getting the same session data, however, a different session id is created everytime I go from application a to applicatino b. Wouldn't this happen in a load balancing scenario as well? Where when I go to www.test.com, it would redirect that request to server a, and then if I hit it again, it would go to server b, but since it's a different web application, it would create a new session id?
View 3 Replies
Dec 5, 2010
I have a Grid which contains a field with a file upload control in it. The problem is if you go to update the grid and a validation fails the file is lost.Can someone please tell me how and where I could store the file during postbacks?Currently it is in a static field
View 1 Replies
Jul 20, 2010
Probably simple question but it has been a long time since i work with UI,I have a textarea that the user can enter his input. I'm saving the input into sql server table.when i want to display the input all the breaks that the user entered are gone.I remember there was a way to replace char 13 with <br/> (did that with classic ASP)I wonder if there is any better way to over come this problem with asp.net,
View 2 Replies
Jan 20, 2011
How can maintain the browser history while performing ASP.NET AJAX asynchronous postback operation.
View 1 Replies
Feb 28, 2011
how can I get back to the same position of a page on postback. It always seems to get to the top of the page
I've tried using ' maintainScrollPositionOnPostBack = "true" ' but its not working.
View 3 Replies
Mar 1, 2010
I have a webpage which inherits teh master page and this master page is designed in such a way that irrespective of content place holders contents it fits the screen. Till now it is good now i have a requirement that i will have to populate a usercontrol dynamically in the content place holder. but when i do this i can observe that size of my page is getting incresed eventhough there is lot of white space in the content place holder that has to be occupied and also i could see that it is not increasing the
content place holder's height instead it is increasing the page size by including a white space after the entire master page is rendered..........
View 1 Replies
Apr 7, 2010
i used the dropdown list in user control.when i select the dropdownlist that scroll bar went to top.how can i maintain the scroll bar position in that situation?
View 3 Replies