Search

You searched for the word(s): userid:795592

Matching Posts

  • IIS Crash - ODBC listed in Event Viewer

    Hello all, I'm using classes in the System.Data.Odbc namespace (OdbcConnection/OdbcCommand/etc.) Every so often, I'm seeing 100+ of the following error in the Event Viewer, and I have to recycle my IIS application pool in order to make them go away. I've looked for hours and hours for a solution to this, and have used IIS Debug Diag tool to little effect (it points to possible heap corruption/memory leak, but that's the best info I've gotten). Any help on this is greatly appreciated
    Posted to Other Databases (Forum) by Piper Douglas on 7/9/2009
  • Very Slow PostBack

    Hello all, I have an ASP.Net 2.0 web page that contains a Repeater which loads up to 400 user controls. The user control is 100 lines of markup and about 1600 lines of code (I know, bad form). The web page in question runs great when there is a small number of user controls (< 100). Under use cases where the number of controls is high though, it's taking a long time to PostBack the page AFTER having loaded all X number of controls. That is, to bind the Repeater to the 400 user controls is
    Posted to Web Forms (Forum) by Piper Douglas on 5/21/2009
  • Re: Need help on starting an Outlook Email from webapp with file attachment

    If the attachment file exists on the client's machine, then it's possible. If you can transfer your file(s) from the server to the client, you can attach them. Check out the following function... The function allows for a single attachment on a PLAIN TEXT file only (.txt, .html, .aspx, .csv, etc.). I'm using the Scripting.FileSystemObject to dynamically create a file on the user's machine. If you have a file that's NOT plain text, and/or you don't want to dynamically create
  • ImageButton inside UpdatePanel Always Causes Complete Refresh

    Hi All, I have a strange one here. I have a .aspx page with the following: UpdatePanel w/ UpdateMode="Conditional" LinkButton inside UpdatePanel ImageButton inside UpdatePanel (there are also lots of other UpdatePanels on the page, but only the above is germaine to this post...I think) When I click the LinkButton, it does a partial page refresh as expected. When I click the ImageButton next to it though, it does a COMPLETE page refresh (the onload event for the page fires), and the screen
    Posted to Web Forms (Forum) by Piper Douglas on 11/18/2008
  • Re: RegisterRequireControlState causing stack overflow

    Actually, I was wrong to tell you to remove the MyBase.OnInit(e). Here's a link to the correct code: http://msdn.microsoft.com/en-us/library/system.web.ui.control.savecontrolstate.aspx According to that reference, SaveControlState needs to be called one control at a time. Keep in mind also that there's automatic ViewState too, so unless you're doing something very specialized, you probably don't need to be doing this at all. Anyway, if you DO need to save every control's state
    Posted to Web Forms (Forum) by Piper Douglas on 9/19/2008
  • Re: RegisterRequireControlState causing stack overflow

    The stack overflow is happening because you have an infinite loop scenario. When you call MyBase.OnInit(), it in turn calls Page_Init (http://msdn.microsoft.com/en-us/library/system.web.ui.page.oninit.aspx) and the cycle happens until you get the error. The "call stack" is filling up with method calls until it reaches its breaking point. Try removing MyBase.OnInit(e).
    Posted to Web Forms (Forum) by Piper Douglas on 9/18/2008
  • Re: memory stream

    What is the problem then? Here are more links for you: For uploading a file for insertion into a database: http://aspnet.4guysfromrolla.com/articles/120606-1.aspx For retrieving a file from the database: http://www.aspfree.com/c/a/ASP.NET/Retrieving-Images-from-a-Database--C---Part-II/
    Posted to Web Forms (Forum) by Piper Douglas on 9/18/2008
  • Re: do PostBack question...

    It actually doesn't sound like you need to do a PostBack. Why do you want to PostBack? If you already know that selected index 0 is the item you want selected, and it corresponds to information in your details view, that should be enough for you to do whatever it is in your details view that you need. In your Grd_Carti_DataBound method, you shouldn't need to PostBack there - instead of calling Grd_Carti.DataBind() again, just call DetailsView1.DataSource = "whatever it should be"
    Posted to Web Forms (Forum) by Piper Douglas on 9/17/2008
  • Re: How do I handle multiple selections in a group of DDLs ?

    dsorrell's approach would work, but it's prone to SQL Injection attacks and should be avoided. The selections made in the DDLs should correspond to parameters in a SQL query or stored procedure. If you use ADO.Net to add the selections from the dropdowns into the SQL statement as in the following, you can avoid SQL Injection. (The following is untested, but this will give you an idea): Dim con As New System.Data.SqlClient.SqlConnection( "blah" ) Dim command As New System.Data.SqlClient
    Posted to Web Forms (Forum) by Piper Douglas on 9/17/2008
  • Re: memory stream

    See http://aspnet.4guysfromrolla.com/articles/012203-1.aspx . Both the System.Drawing.Image class and the System.Drawing.Bitmap classes offer "Save" methods with overloads that allow saving to a stream. Cheers, Andy
    Posted to Web Forms (Forum) by Piper Douglas on 9/17/2008
Page 1 of 3 (25 items) 1 2 3 Next >