Yes, you can easily do that. You can use CacheDapendency with the data. When ever the source of the cached data will change cache data will update automatically. From where you are reading the data ? If it is sql server you can easily set dependency with the database server or if you are reading data from file then also you can set the dependency with the file.
Let me know if you need any more help.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Hey guys, I have searched about this on the new and here but I'm still confused, so I'm gonna lay out this and hopefully with your help I can get it over with.
I'm trying to design and implement a 3 layer web application,
I want to fetch the info(fields such as name, email, ... ) for a student from Student table in my database:
(consequently I want to do update, delete and insert as well)
In my DAL class I fetch the record from database and return a dataset:
2- populate a grid view ( which is easy by assigning its datasourse to the dataset which was returned)
one thing is that the point of having 3 layered is not having any codes related to database, but I have to have a dataset in my page !
I have read a lot that this isn't such a good way of implementing 3 layer architecture, I'm working on my final project and I need something not too much confusing.
I would really appreciate it if you could send me a sample of redirect me to a page ( again as I mentioned before, I 'm looking for something less confusing and easy to implement), so I can finish it and also learn something.
You've done the right thing, you can have dataset, datatable or class object (orm) in your page, otherwise you can implement your requirement! Let me ask you something, can you tell me what db you're using by looking at ds, dt or object? No, you can't because that's independent of actual database your ds,dt doesn't know from what type of db they're getting data.
Please don't forget to mark 'Good Answer', if you find it really a good one!
I'm facing an big issue. i have created an small project which is working good in normal environment.
but when it is going in cloud computing, events are not working properly.i have used datalist and itemcommand is used. but its not working.
Please help me as soon as possible. Its very urgent.
Actually i have taken datalist inside datalist. Now on the page load i'm filling the datalist. first time its working fine. but when i click on a button inside datalist, now everything get disappear, means datalist is not loading again. This is happening in cloud computing environment.
But the same thing is working fine in normal .net hosting environment.
i want to show the navigation path in my website like from which page the user navigated.
eg:home>>default1>>default2>>.....so on.can any body give me idea what shud i do.shud i maintain session or is there any other way....thank's
Is there a combobox in asp.net? I am using Visual Studio 2008 c# I have a Gridview that need a column more like a combobox then the Dropdownlist I can find.
I would like to display/edit a multi selection enumerated flags dropdown stored in a bit masked value.
for this column and row in the grid they can select multiple option. I have a checkboxlist to day, it work but will not collapse so the edit row or the insert row fill the whole grid. when I am an old roll comp sic new to this interment.
public DataTable FetchType()
DataTable dt = new DataTable("AppCode");
foreach (int index in Enum.GetValues(typeof(AppCode)))
if (Enum.GetName(typeof(AppCode), index).Substring(0,3) != "All")
dt.Rows.Add(index, Enum.GetName(typeof(AppCode), index));
hi, I have two MVC applications. I go to the MVC2 application from MVC1 application, I pass a token. When the MVC2 applications is loaded, its fetch the token and create the session. There are two button Logout and Save. I open MVC2 application in a IE browser and open the same application on the another tab. I just click the Logout button, which deletes all the sessions of the MVC2 application. Then I go to the first tab and click on the save button. Before saving the data, I simply check whether the session is exist or not, If session is exist then it will save the data otherwise redirect to the MVC1 application. But when I click on the Save button its shows the error "This page is accessing information that is not under its control. This proses a security risk. Do you want to continue?"
I have used following code to check the session in the save button
i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox...
var date = document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value;
var cal = window.showModalDialog('Calender.aspx', date, 'resizable:off;dialogheight:250px;dialogwidth:360px');
document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value = cal;
now on child page i added (var read = window.dialogarguments;) but know i dont know how to take value from calender and return it back....
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-23 22:22