Wednesday, January 27, 2010
To get this, you could use an HTTP sniffing tool like Fiddler or HTTPFox, but there may be times that you have problems with this due to proxies etc being used in the company.

Thankfully there's a way to output the trace using the code below:

<system.diagnostics>
<trace autoflush="true"/>
<sources>
 
<source name="System.Net" maxdatasize="1024">
   
<listeners>
     
<add name="TraceFile"/>
   
</listeners>
 
</source>
 
<source name="System.Net.Sockets" maxdatasize="1024">
   
<listeners>
     
<add name="TraceFile"/>
   
</listeners>
 
</source>
</sources>
<sharedListeners>
 
<add name="TraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="trace.log"/>
</sharedListeners>
<switches>
 
<add name="System.Net" value="Verbose"/>
 
<add name="System.Net.Sockets" value="Verbose"/>
</switches>
</system.diagnostics>



Acknowledgements to the following post:

http://stackoverflow.com/questions/300674/getting-raw-soap-data-from-a-web-reference-client-running-in-aspnet

Wednesday, January 27, 2010 12:20:01 PM (GMT Standard Time, UTC+00:00) | Comments [1] | ASP.NET | c##
Monday, January 25, 2010
Custom sections are created by declaring the section name in the <configsections> element, and then declaring the section, like so:

<section name="MyCustomSection" type="System.Configuration.NameValueFileSectionHandler"/>

  <MyCustomSection>
    <add key="KEY1" value="VAL1"/>
    <add key="KEY2" value="VAL2"/>
</MyCustomSection>


This is then read in as follows:


            NameValueCollection myList= (NameValueCollection)
                ConfigurationManager.GetSection("MyCustomSection");
            return myList[scenario];

Simples.

Monday, January 25, 2010 1:33:23 PM (GMT Standard Time, UTC+00:00) | Comments [0] | c##
Sunday, January 10, 2010

One of my pet projects over the past couple of years has been the development of a mobile data capture system.  I recently re-wrote the entire thing for a different project, and have decided it's so good that I want to launch it to the wider world!

If you think this could be of use to you, then check out http://www.mobileelectronicforms.com

 

Sunday, January 10, 2010 10:35:14 PM (GMT Standard Time, UTC+00:00) | Comments [0] | #
Wednesday, January 06, 2010
I tend to use ViewState in most of my web applications, but when it comes to web sites there's rarely a need for them across all pages.  In fact for some sites it can be switched off altogether.

However, even setting this in the web.config as so

<pages enableSessionState="false" enableViewState="false">

when you View Source there's still a __VIEWSTATE hidden input field.

Expected behaviour - as documented here.

Wednesday, January 06, 2010 9:20:44 PM (GMT Standard Time, UTC+00:00) | Comments [0] | ASP.NET#
Tuesday, January 05, 2010
I hope I'm not being patronising here, but I imagine that buying a new TV or other Home Entertainment appliance can be a bit of a challenge for the non-techie.

There are so many options available these days, but then comes the boring - and most difficult part - wiring everything together.

I can recommend http://www.videoandaudiocables.co.uk/ to help in making this as easy as pie.

Tuesday, January 05, 2010 9:41:20 PM (GMT Standard Time, UTC+00:00) | Comments [0] | #
I'd just like to take this opportunity to wish everyone a Happy New Year and hope that 2010 is a good one for you.

Tuesday, January 05, 2010 9:32:09 PM (GMT Standard Time, UTC+00:00) | Comments [0] | #
Search
Archive
Links
Categories
Admin Login
Sign In
Blogroll