Search

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

Matching Posts

  • DataSet.WriteXml...

    Here some pseudo code: DataSet ds = CreateMyTypedDataSet(); //append a row to an existing data string fn = Server.MapPath("savedData.xml"); if ( File.Exists ( fn ) ) { ds.ReadXml (fn); File.Delete (fn); } AddNewRow (ds); ds.WriteXml ( fn ); First request, when there is no file with fn name, works fine, i.e. file is created on the server. Here I can guess that there are enough rights to create and write. Next requests give IO Permition exceiptin. Perhaps aspnet user can not delete file. Is there a
    Posted to Getting Started (Forum) by mw:17:61 on 11/9/2005
  • Re: Checking checkbox if record exists in another table

    select A.actorID, A.actor, case AD.dvdID when null then 0 else 1 end bChecked from tblActors A left outer join tblActorsDVD AD on AD.actorsID = A.actorsID where (AD.dvdID is null ) OR (AD.dvdID = @dvdID)
    Posted to Getting Started (Forum) by mw:17:61 on 9/28/2005
  • Re: creating a read only custom collection of constants

    IMHO I can not imagine that a reference to a derived class cannot be used instead of a reference to a base class. Derived class may or may not change beaviour of a method. Therefore you may change to throw an exception. if you explain and understant what exectly you want from readonly custom collection that will be easy to descuss. 1. - storage of ordered constants - iteration of those elements stored in it or 2. - using in place where let say NameValueCollection instance expected again in second
    Posted to C# (Forum) by mw:17:61 on 9/2/2005
  • Re: creating a read only custom collection of constants

    rmprimo wrote: how to "silence" unwanted methods and props inherited from a base class. Is it really inheritance if a child does not have a chance to behaive like a father :-). If you exclude (somehow) method in derived class than reference to a child can not be used in place of a reference to a base class.
    Posted to C# (Forum) by mw:17:61 on 9/2/2005
  • Re: syntax to express factory pattern

    The internal keyword does not give you feelings that class instantiated only through the factory // file internaldirect.cs public class C { internal C(){} } public class U { static C instanceOfC = new C(); // direct constuction inside an assembly. } // end I like about the friend keyword that it states clear who whould produce an instance of a class. in particular if I have a kind of singleton scenario where instances varied by a parameter and may be internaly interdependent, factory may maintain
    Posted to C# (Forum) by mw:17:61 on 9/2/2005
  • syntax to express factory pattern

    How does syntax of C# express factory pattern? What is the best way to highlight the fact that product of the factory is not creatable from outside factory. In C++ this idea elegantly expressed with friend keyword. class factory; class producta { private: friend factory; producta(){} } class productb { private: friend factory; productb(){} } class factory { public: producta* geta(){ // create and initialize with new producta(); } pruductb* getb(){ // create and initialize with new productb(); }
    Posted to C# (Forum) by mw:17:61 on 9/1/2005
  • Re: creating a weighted array

    I whould use DataSet (DataTable) and sort it (using DataView) on weighting column.
    Posted to Hosting Open Forum (Forum) by mw:17:61 on 7/14/2005
  • Re: perform Post Action in ASP.NET

    To make a HTTP request to a third web-server System.Net.HttpWebRequest
    Posted to Web Forms (Forum) by mw:17:61 on 7/10/2005
  • Re: Sharing session space between ASP and ASP.NET pages

    As it is written in the article: "The native ASP session can only store session data in memory." Moreover the idea illustrated in the article requires modification of the ASP original.
    Posted to State Management (Forum) by mw:17:61 on 7/3/2005
  • Re: Cache clearing upon aspnet application shutdown

    It looks like you want to have a persistent storage cached. why you do not want simply write in the file what you cached. after stratup and if cache is missed pull data from file and cache it again. like void put (string key object data ) { object chached = Cache.get(key); if ( cached == null ) { cached = CheckIfFileThereAndPullData (); UpdateChacheAndFile(string key object data ); } else { UdateChacheAndFile(string key object data ); } } object GetCached ( string key ) { object chached = Cache.get
    Posted to State Management (Forum) by mw:17:61 on 7/1/2005
Page 1 of 4 (35 items) 1 2 3 4 Next >