Aug 1 2006

HttpResponse.ApplyAppPathModifier Method

Category: ASP.NET 2.0 - GeneralBil@l @ 08:50

A very interesting method I came over today:

HttpResponse.ApplyAppPathModifier

According to the MSDN documentation:

Adds a session ID to the virtual path if the session is using Cookieless session state and returns the combined path. If Cookieless session state is not used, ApplyAppPathModifier returns the original virtual path.

This is very cute!! If you are using cookieless session state, you can easily you this method, give it a virtual path, it will automatically append the SessionId to the URL without any need to do any manual effort!!!

It is also helpful, when you want to redirect from Http to Https or vicaversa, it helps you maintain the same session Id when moving!

This is a small example:

Response.Write(Response.ApplyAppPathModifier("demo/default.aspx"));

will generate something as:

/App/(S(avsbnbml2n1n5mi5rmfqnu65))/demo/default.aspx

Hope this helps!

Regards

Tags:

Jul 24 2006

The Last Night!!

Category:Bil@l @ 21:30

This is my last night I sleep here in my home in Beirut!! Tomorrow morning I am leaving outside the country following my company and going away from this ugly war we have that stopped everybody in Lebaon from going to their jobs, stopped them from their normal life they used to have!!!

I am leaving my beloved country and the pain is hitting every single part of my body, the pain of those families who lost their homes in thousands, the pain from what happened to my country, from the destruction we had here, from the hundreds of people who were killed and mainly children!!!

I am leaving my country and my heart is staying here, he is not accepting to leave his house, his country, his family, his friends, his beloved people!!!!!!

I will come back. Lebanon is for me, for every person who believes in Lebanon, we will build it again, no one would ever erase us from existence!!!!!

Good bye my lovely Lebanon, till the time we meet again, let God bless you and bless all your beloved people!!!

Tags:

Jul 20 2006

No Comments!!

Category:Bil@l @ 16:28

 

Tags:

Jul 18 2006

Support my country!!

Category:Bil@l @ 08:41

For the 7th consecutive day, my country is under attack by Israel!!! More and more civilians are killed daily!!

Support my country and express your resistance for the barbarians here by posting your comments below!!!

Tags:

Jul 17 2006

XSLT Debugging in .NET 2.0

Category: XSLT, XPath, XMLBil@l @ 11:59

You can now debug an XSLT document in .NET 2.0.

You have now the XslCompiledTransform object that is used to do the transformation in .NET 2.0.

When you create your instance of the XslCompiledTransform use this constructor:

XslCompiledTransform xsl = new XslCompiledTranform(true);

Then, set a break point on the Tranform method call, when the debugger is there, hit F11 to enter the XSLT document and start debugging your Xslt file!

hth,

Regards

Tags:

Jul 17 2006

Lebanon under attack, 6th day

Category:Bil@l @ 10:21

Today is the 6th day of the Israeli attacks on Lebanon. More civilians are killed, more buildings, bridges, ports, etc .. are destroyed.

Anybody to care or stop all that???????

Tags:

Jul 16 2006

Lebanon still under attack

Category:Bil@l @ 13:00

My beloved country is still under attack for the 4rth consecutive day by the barbarians, Isarel. The primse minister declared Lebanon a "disaster zone" and asked all the internal community to help us get out of this disaster.

Any country can listen and save what is left from Lebanon????????

Tags:

Jul 13 2006

Lebanon Under Attack by Israel

Category: General | GeneralBil@l @ 21:52

For the second consecutive day,