in

ASPXWizard.net

.net and Ajax Community
All Tags » tips (RSS)

Browse by Tags

  • Terminal server has exceeded maximum number of allowed connection [override maximum]

    well there's an easy solution if need something urgently and u need to kick someone (close his session) mstsc -v:[UrServerNameOrIP] /console
    Posted to .net Wand (Weblog) by amir.magdy on 12-27-2007
  • Enumerate App settings

    well sometimes you just need to enumerate all of the keys in your appsettings section in web.config this is how it's done 1: foreach ( string str in WebConfigurationManager.AppSettings.AllKeys) 2: { 3: Response.Write( string .Format( "Key : {0},Value {1}</br>" , 4: str, WebConfigurationManager...
    Posted to .net Wand (Weblog) by amir.magdy on 12-04-2007
  • Enumerate Embedded Resources

    sometimes you just need to include an image or an XML file with your package but you don't want to allow users to access these files and modify them, all you have to do is to embed these files in your assembly if this assembly is a DLL or an EXE. just add the files to your project and from the file...
    Posted to .net Wand (Weblog) by amir.magdy on 12-04-2007
  • SQL Profiler custom filter

    the tip is simple u need to make a filter that filters and shows only your DB transactions on a server. what u need to do is to change your web.config by adding a string that you can later filter on 1: < add key ="Main.ConnectionString" 2: value ="data source=Server;initial catalog...
    Posted to .net Wand (Weblog) by amir.magdy on 11-23-2007
  • Override IIS Maximum upload size [max upload size in asp.net]

    by default IIS enables you to upload 2 megabytes and i couldn't seem to figure out how to change that using Internet service manager snap in but i found this on msdn and it's working perfectly fine alll you have to do is add this node right under <system.web> section in web.config 1: <...
    Posted to .net Wand (Weblog) by amir.magdy on 11-17-2007
  • A potentially dangerous Request.Form value was detected from the client

    by default asp.net checks for the scripts in requests so that if it finds a user that is posting javascript or HTML in a request body it will throw an exception "A potentially dangerous Request.Form value was detected from the client" but sometimes you need this like when you allow a user to...
    Posted to .net Wand (Weblog) by amir.magdy on 11-17-2007
  • Are you sure [Prompt User Validation]

    there's so many times when you need to ask a user "are you sure?" but you want it to be quick and painless you don't want to do one more server round trip just for that you can always use this the javascript prompt function so confirm() but how to integrate that into your asp.net code...
    Posted to .net Wand (Weblog) by amir.magdy on 11-17-2007
  • Ajax.net cancel a request

    well this is one of my old blog posts i'll be resposting them by time ammong new ones here we go this is very important if i have a request that i have issued using asp.net ajax client library this is how to cancel it 1: serviceHandler = new ServiceName().methodName(param1, param2, completeHendler...
    Posted to .net Wand (Weblog) by amir.magdy on 11-12-2007
Page 2 of 2 (18 items) < Previous 1 2
ASPXWizard.net some rights reserved 2005-2007
Powered by Community Server (Non-Commercial Edition), by Telligent Systems