I'm having unusual results with the following block of code. I'm having issues with the Application state "losing" its data. If the Application was emptying I wouldnt have any trouble, but the DataTable being stored loses all of its rows and keeps the schema intact. If it were empty...
thats what he meant by using an interface.
Define a base report like:
public interface IReport
{
void SetDataSource(DataSet ds);
}
Make all of the report classes derive from this interface, ie:
public class MyReport : IReport
{
public void SetDataSource(DataSet ds)
{
//...
I use session all over the place.. mostly for serializing data that I'm going to have to use over and over again.. ie dynamic navigation, content, etc.
I also use the application state for similar reasons.
sounds like a permissions issue. if you havent already, switch to advanced sharing by going to My Computer > Tools > Folder Options > View, then Deselect "Use simple file sharing". Then, share the database or database folder with IIS (IUSR_<machine> and ASPNET). Give both accounts...
We have a two-man operation. When we started about a year ago, we estimated project time and billed at $40/hour. We use line items as well, so the client doesn't actually know what we're getting paid hourly. Most of the time the project took too long and we ended up with $1/hour.
We moved to...
I'm having issues with the IE 5.2 for Mac and I need some advice.
I have 2 frames. On the top frame, named nav, I am using ASP to populate 3 <select>'s. Each select is in its own form. When the page loads, "nav" has a single <select> with categories. On load the bottom frame, named...
You will need to keep track of which index in the datagrid goes to which primary key in the database. When OnItemCommand fires to a handler, it'll need a sender and the event arguments, like so:
void Command_Grid(Object sender, DataGridCommandEventArgs e)
If you look at...
Use the relative path with the HttpContext.Current.Server.MapPath function (as in legacy ASP).
Ex: path = HttpContext.Current.Server.MapPath("./data/db1.mdb");
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.