Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

Member 3426936

@Member 3426936
About
Posts
8
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Response.TransmitFile not working on local network
    M Member 3426936

    All, This is a strange problem, I tried to find answer without success. The file I am tring to transmit is an xslx file. I have the following piece of code that works fine when our employees/clients access our website from outside our network.

    Response.ContentType = "application/vnd.ms-excel";
    Response.ContentEncoding = System.Text.Encoding.Default;
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + newFile.Name.Replace(" ","_"));
    Response.AddHeader("Content-Length", new System.IO.FileInfo(newFile.FullName).Length.ToString());
    Response.TransmitFile(newFile.FullName);
    HttpContext.Current.ApplicationInstance.CompleteRequest();

    But when someone within our local network/office accesses this website I get the following error, "Unable to download xxxx from xxxx.com. Unable to open this Internet site. The requested site is either unavailable or cannot be found. please try again later." I tried different approaches like adding Response.Flush() and Response.End() etc., nothing worked so far, I appreciate any help with this. This only happens with IE, works fine in Chrome and Firefox, if this helps.

    C# help com sysadmin

  • Generate DataSet Table Code
    M Member 3426936

    Thanks, but this is not what I am looking for, I am talking about pasting the xml code when DataSet is opened using "View Designer". Once I copy the xml code generated by code generator and paste it in the DataSet designer window it should create the table.

    C# xml database com question announcement

  • Generate DataSet Table Code
    M Member 3426936

    All, I have a rather unusual situation, Tried to look for a solution online, but not able to, so I am posting it here. I have a dataset the loads and fills all the tables during app startup. When I copy a table and paste it in a notepad I get the following <?xml version="1.0" encoding="utf-8"?><xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"> xs:annotation <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <ConnectionRefs /> <Connections /> <TableRefs> <DesignTableRef Name="IntersectionPedSignalNotes"> <ColumnRefs /> <SourceRefs /> </DesignTableRef> </TableRefs> <Tables /> <RelationRefs /> <SourceRefs /> <Sources /> </DataSource> </xs:appinfo> </xs:annotation> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="NewDataSet" msprop:Generator_DataSetName="NewDataSet"> xs:complexType <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="IntersectionPedSignalNotes" msprop:Generator_TableClassName="IntersectionPedSignalNotesDataTable" msprop:Generator_TableVarName="tableIntersectionPedSignalNotes" msprop:Generator_TablePropName="IntersectionPedSignalNotes" msprop:Generator_RowDeletingName="IntersectionPedSignalNotesRowDeleting" msprop:Generator_UserTableName="IntersectionPedSignalNotes" msprop:Generator_RowChangingName="IntersectionPedSignalNotesRowChanging" msprop:Generator_RowEvHandlerName="IntersectionPedSignalNotesRowChangeEventHandler" msprop:Generator_RowDeletedName="IntersectionPedSignalNotesRowDeleted" msprop:Generator_RowEvArgName="IntersectionPedSignalNotesRowChangeEvent" msprop:Generator_RowChangedName="IntersectionPedSignalNotesRowChanged" msprop:Generator_RowClassName="IntersectionPedSignalNotesRow"> xs:complexType xs:sequence <xs:element name="NoteId" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-100" msdata:AutoIncrementSt

    C# xml database com question announcement

  • Complicated size calculation
    M Member 3426936

    All, I have a slightly complicated issue, I have a Sql 2005 DB which is like 20GB right now, It has different tables related like Projects->Facilities->Locations->Pictures What I am looking for is the size occupied by an individual project, Lets say Projects Table has the following 1 Sample Project One 2 Sample Project Two Facilities has the following 1 1(ProjectId) Facility One 2 1(ProjectId) Facility Two 3 2(ProjectId) Facility Three and Locations and pictures are related similarly using FacilityId and LocationId Now I need the data occupied by the entire Project One including the data related to Project One in all other tables. Hope this is clear, I welcome any suggestions, Thanks in advance

    Database database help

  • Self Update .Net application with a web service.
    M Member 3426936

    All I have an application that the client uses, we do release updates every few months and everytime there is an update we send them a CD.We decided to update app automatically. The application uses an exe file along with 3 DLLs installed into GAC, while programming for auto updates I have no problem pulling the new files in to clients machine or with installing DLLs into GAC(because the DLLs have newer version number). But I am struck at replacing the original exe file, since the user clicks on a menu item that says "Get Updates", I don't see how I can replace the exe file without exiting the program itself!!!!! Appreciate any help ~Sri~

    C#

  • Images not displaying in IIS7 [modified]
    M Member 3426936

    No luck, here is how I tried it, http://i43.tinypic.com/x6d8wn.jpg[^] Let me know if anyone has other ideas, Thanks in advance Sri

    ASP.NET sysadmin help question announcement

  • Images not displaying in IIS7 [modified]
    M Member 3426936

    Thanks, But I do enable the control in code behind before I assign the image to it, Like I said it shows the Alternatetext value but not the picture. Sri

    ASP.NET sysadmin help question announcement

  • Images not displaying in IIS7 [modified]
    M Member 3426936

    All I have a website that works perfect on IIS6 with Windows 2003 server, I am trying to move the website to Windows 2008 server with IIS7, everything works fine except the images does not display in the webpages, I did some search and installed static content, tried adding new handlers etc. without any success, Here is the picture control code And here is how I am calling the picture FacilityPicture.ImageUrl = "facility.imgx?pictureId=" + facility.MainPicture.ReplicationId.ToString(); I have added the imgx handler in the web.config add verb="GET" path="*.imgx" type="*****.Web.DatabaseImageHttpHandler, *****.Web, Version=1.2.0.0, Culture=neutral, PublicKeyToken=89330ffe59e80120" / I replaced the DLL name with *s. All the pictures are displaying the "alternatetext" value and not the picture itself. Appreciate any help Thanks in advance Sri

    modified on Monday, March 9, 2009 6:55 PM

    ASP.NET sysadmin help question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups