ali raza

C#, .Net ,Asp.net and my thoughts

Monthly Archives: December 2007

URL Encoding in asp.net

One of way while transferring data from one page to other page is Querystring. But one problem is with Querystring is that many characters are not allowed in url.  So we must have to send querystings while take limits in mind because alphanumeric and special characters including $-_.+!*’(),) are allowed. Usually browser does not tolerate special characters in Url, so much data is lost . In asp.net we can use the feature urlEncoding. With Url encoding special characters are replaced by escaped characters sequences starting with the percent sign (%) ,followed by a two-digit hexadecimal .The only exception is space character where character sequence %20 or + sign is used.  For this purpose asp.net provide us HttpServerUtility  class to encode data.

For example

String  CustomerName = “Ali Raza”;

Response.Redirect(“Blogpage.aspx?authorName=” + Server.UrlEncode(CustomerName));

 

Same time we can Querystring s initial values from Server.UrlDecode() method.

Man Kunto Maula By Zila khan

Basic believe never change

Outstanding.

Pind Diyan Galiyan"The Living Legend"

Time passed , i m in lahore, but my heart is at my home town sahiwal, my dreams, my home my parents, friends and my childhood is still there . This songs represnets my true feelings about my home. it is in my native language punjabi

Pind Diyan Galiyan”The Living Legend”

Time passed , i m in lahore, but my heart is at my home town sahiwal, my dreams, my home my parents, friends and my childhood is still there . This songs represnets my true feelings about my home. it is in my native language punjabi

Best Wishes for Eid ul Adha

eid_card_for_eid_ul_adha.jpg
Best wishes for Eid ul Adha

Best Wishes for Christmas

Best Wishes to all my friends who are blessed by jesus’s Love

ws_christmas_tree_1024x7681-copy.jpg

Ali Raza   wishes you Merry Christmas and Happy New Year!

May the year 2008 bring success, good times, happiness and more opportunities for all of us.

Don’t Change the World, try to adjust yourself

Once upon a time, there was a king who ruled a prosperous country. One day, he went for a trip to some distant areas of his country.

When he was back to his palace, he complained that his feet were very painful, because it was the first time that he went for such a long trip, and the road that he went through was very rough and stony. He then ordered his people to cover every road of the entire country with leather. Definitely, this would need thousands of cows’ skin, and would cost a huge amount of money.

Then one of his wise servant dared himself to tell the king, “Why do you have to spend that unnecessary amount of money ? Why don’t you just cut a little piece of leather to cover your feet?”

The king was surprised, but he later agreed to his suggestion, to make a “shoe” for himself.

There is actually a valuable lesson of life in this story : to make this world a happy place to live, you better change yourself – your heart; and not the world.

reference : http://pravstalk.com/

Answer One Question

reference : http://pravstalk.com/

The Architecture Journal latest Issue

The Architecture Journal Lastest issue is avaliable, you can download it from here

Nice Quote

Opportunity does not just come along – it is there all the time – we just have to see it.