Jump to content
Xtreme .Net Talk

Wee Bubba

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Wee Bubba

  1. thanks looks like no deleting in windows explorer!
  2. i have 2 ASP.NET applications running on my web server. app B loads the assembly of app A in order to perform some reflection. i have noticed that after this has occurred, it will no longer let me delete the .dll of app A within windows explorer. it's almost as if app B has loaded the assembly but not let go. can anyone help me please.
  3. i am streaming an Excel file within a popup browser window. i am trying in vain to close the popup window once the "Download File" prompt has been sent. i tried adding a Javascript line to the end of my method to achieve this, but it doesnt work. I suspect because I have cleared the Response object. can anyone help me achieve this annoying hurdle? thanks. my code is below. private void ExportToExcel() { Response.Clear(); Response.Charset = String.Empty; Response.ContentType = "application/vnd.ms-excel"; Response.AddHeader("Content-Disposition", "attachment; filename=" + rb.ReportTitle + ".xls"); this.EnableViewState = false; StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); phBody.RenderControl(hw); Response.Write(sw.ToString()); Response.End(); Response.Write("<script language='javascript'> { window.close() } /script>"); }
  4. if i have a static method like this: public static int CalculateNewInt(int myInt) { myInt += 10; myInt = (myInt * 5) / 10 myInt += 100; return myInt; } would I have to worry about concurrency here. what i mean is this. lets say my thread gets to line 3 of the code ready to increment the input parameter variable by a 100. but before this happens another thread executes this method with a different input parameter. would this much the calculation up? i really dont understand this. thanks
  5. hello there. i need to persist the form values of a particular web page so that if a user gets timed out then i can repopulate it when they return to that page. likewise, if a user fills half the form in then decides to browse a different page before returning later on, then i will also need to remember the values. i dont believe that i can trap either of these events with a postback so at the moment i am thinking the best solution is to keep storing the form values inside a cookie every time the javascript 'onunload' event handler fires. i can then repopulate from the cookie when a user comes back to the page. i can enforce that cookies is on for users of my application as it has a private user base so thats not a problem. however ive heard that certain popup stopper applications block this event handler so its perhaps not the best way. is there a better way?
  6. i am trying to design a dataSet in VS.NET Table A has 2 primary key columns CustomerID and ProductID. Table B has a single primary key column ProductID. I want to create a foreign key relation from the ProductID column in Table A to that in Table B. in Visual Studio I click Add > Relation then when I select Table A in the parent element field it shows both its key fields in the grid below. The problem is that it wont highlight the OK button unless I assign a foreign key field to by both CustomerID and ProductID rows in the grid. yet my table only needs a single constraint on one column. am i missing something?
  7. hello. i have some lookups tables which I need to store when a user logs in. the data with these tables is user specific. also this data needs to be accessed for every page so I want to store it somewhere. i can store these dataTables in the session object or I can store them inside the data cache using a unique identifier as the key. i realise that if i place this data inside the session object then the memory will get freed as soon as the user logs out. but the data is non updateable and i also know that the data cache offers quick access and memory scavenging. can anyone offer me ideas as to what the core differences are? thanks.
×
×
  • Create New...