Fiddler : HTTP Debugging Proxy

7 11 2007

I have been using Fiddler for past few days.Fiddler is a very useful development tool to understand the behaviour of the page by allowing you to inspect all HTTP traffic between your computer and the internet.That is,it will list you the files that are used to generate the page.It is nothing but a HTTP Debugging Proxy.

Download fiddler from here and install(Ensure that you have .Net Framework 1.1[atleast] installed).Open Fiddler(you can see it in the toolbar)

 fiddlertoolbar.jpg

 and Run the Page.It will log all HTTP traffic between your computer and the internet.The Request Builder Tab allows for custom Http request to be created and submitted.

requestbuilder.jpg

How to use Fiddler with firefox?

Once you install fiddler in your system,some script files will be added.Those script files will be inside “My Documents”(\My Documents\Fiddler2\Scripts\).In that you will find BrowserPAC.js file.

Open Firefox.Goto

Tools —> Options  —>  Advanced  —>  Network Tab

Click “Settings”.Select the option “Automatic proxy configuration URL“.Then type the location of the “BrowserPAC.js” file. It should be like “C:/Docs&Setting/[system name]/My Documents/Fiddler/Scripts/BrowserPAC.js” Click “OK”.Now Fiddler can be used with Firefox also.

fiddlerfirefox.jpg

There are many other features but I have very less knowledge in that.I’ll update this blog once I get an idea of other features.





ICallbackEventHandler : Substitute for Ajax

4 11 2007

ICallbackEventHandler is an Interface which can be treated as a substitute for Ajax.This allows the implementation of client-server communication without postback.If you are good in Javascript,you can use those xmlHttpRequest..blah blah blah to avoid postback.If you want to do the same thing in ASP.NET,just try ICallbackEventHandler.ICallbackEventHandler interface can be inherited on the class.(as you know).It provides two methods.

  • RaiseCallbackEvent(string str)
  • GetCallbackResult()

As the name suggests,”RaiseCallbackEvent” is used to raise the callback event.GetCallbackResult() is used to return the result to the client.There is another method called “GetCallbackEventReference“.It Obtains a reference to a client function.This, when invoked, initiates a client call back to a server event. “GetCallbackEventReference” method can be implemented with 4,5 or 6 parameters. Read the rest of this entry »





ASP.NET Repeater Control

10 09 2007

This tutorial is all about ASP.NET Repeater control.The sample used in this tutorial will be so simple so that a beginner can understand what a Repeater is.@Experts : Please pardon me if any of my point is wrong and please share your views.

The Repeater control is used to display the repeated list of items that are bound to the control.I would like to explain this with an example.In the example,i have used two repeaters “Hospitals” and “Facilities”.
The requirement is ,I should display the Hospital list and when i click any hospital ID,the corresponding Facilities should be displayed below the Hospital details.So,for this,I have added the Facility Repeater inside the Hospital Repeater(i.e Repeater inside a Repeater). Read the rest of this entry »





Filling a ComboBox using HashTable in VB.NET

20 08 2007

This tutorial is also about filling a Combo box but using HashTable.

What is a Hashtable?
Hashtable is a collection of name/value pairs of objects that allow retrieval by name or index i.e it is used to do mapping of key/value pairs.For example,if you want to map the email address and full name of user,you could use a Hashtable.In order to use a hashtable, we must import a namespace System.Collections.
Imports System.Collections.Hashtable
Public Class HospitalHashTableForm

Dim hospitalht As New Hashtable()
Dim facilityht As New Hashtable()
Dim departmentht As New Hashtable()

This is how a Hashtable is declared.The below code is to add elements to the Hospitalht HashTable.
Read the rest of this entry »





Filling a Combo Box Using Arrays in VB.NET

13 08 2007

This tutorial is all about filling a combo box using Arrays in VB.NET.This tutorial also explains how to link two or more combo boxes in a simple way.Again this is only for freshers.
I would like to explain this,by giving one example.In this sample,we have a class called “HospitalArrayForm

Public Class HospitalArrayForm

Declare the arrays “facility,departments,hospitalarray”
Dim facility(2) As Array
Dim departments(2, 2) As Array
Dim hospitalArray() As String

declare an Integer ‘i’
Dim i As Integer

In the Form_Load event we are assigning the values for the above declared 3 arrays.(Please dont consider the values given.This is just a sample)
Read the rest of this entry »