Search

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

Matching Posts

  • Re: No Return Type for a Stored Procedure in a Linq to SQL Data Layer

    Dear * I found a very simple solution remove the * & write all fields name seperated by comma [,]
  • Re: need suggestions

    use linQ
    Posted to Getting Started (Forum) by abdelnaby on 7/4/2009
  • Re: help about avoiding duplication...

    Random RandomClass = new Random(); while(true) { int RandomNumber = RandomClass.Next(); if (!IsExistInDatabase(RandomNumber) ) { InsertIntoDataBase(RandomNumber); break; } }
    Posted to C# (Forum) by abdelnaby on 7/4/2009
  • Re: High CPU usage

    FIrst you have to move processor consuming processes to a seperate thread second you set the thread periorty to lowerst ( or better leave it as a user setting ) 3rd use threadpool.queueworkitem 4th you can consider the background worker control consider upgrade CPU . this is a no-coding solution
    Posted to C# (Forum) by abdelnaby on 7/4/2009
  • Re: Login Control Not working in IE8, works in Chrome and Firefox no prob

    Dont Use Login COntrol use code like this If Membership.ValidateUser(TxtUserName.Text, TxtPassword.Text) Then FormsAuthentication.RedirectFromLoginPage(TxtUserName.Text, False) endif
    Posted to Client Side Web Development (Forum) by abdelnaby on 7/4/2009
  • I have a quesions

    Dear All this is my first post in this forum i have an issue i am trying to solve it since about 3 monthes I got a type in a Type variable Type T ; I have a List of objects List<Object> mList ; i want to case mList as a List<T> is there any solution ? THanks in advance
    Posted to C# (Forum) by abdelnaby on 7/2/2009
  • Re: I have a quesions

    Dear Thanks for your reply unfortunatily there is 2 problems 1- your clas does not accept object as first type 2- your class does not accpt type variable as second type here is example of the code i want to run < object > lo = new List < object >(); lo.add(new Rectangle ( 0 , 0 , 50 , 50 )); lo.add(new Rectangle ( 0 , 0 , 50 , 50 )); Type T = typeof ( Rectangle ) ; ListConverter < object , T>.Convert ( lo );
    Posted to C# (Forum) by abdelnaby on 7/2/2009
  • Re: I have a quesions

    Rectangle is just an example Actually i dont have a defind type like rectangle I have the destination type stored in a type variable Consider this code void ProcessTTypeList( List<Object> T , Type mType ) { lo.add(new Rectangle ( 0 , 0 , 50 , 50 )); lo.add(new Rectangle ( 0 , 0 , 50 , 50 )); ListConverter < object , mType>.Convert ( lo ); /* this is what i rally need */ }
    Posted to C# (Forum) by abdelnaby on 7/2/2009
Page 1 of 1 (8 items)