• Home
  • Trace mobile number (From India)
  • Entertainment
  • SiteMap
  • Home
  • ASP.NET
  • C#
  • BLOGGING
  • SQL SERVER
  • FACEBOOK
  • Entertainment
Showing posts with label Tips and Tricks. Show all posts
Following are the procedure to check databalance left in Mobile or in 2G , 3G E-Stick / Dongle for various Indian operators,this is USSD command can be dialed through mobile phone or direct dongle , some of the dongles are having USSD option in their dashboard/software .

Operator Name Dial to Check Data Balance ( USSD )
Airtel 2G & 3G *123*10#
AIRCEL 2G & 3G *123#
BSNL 2G & 3G *112# – Reply/Send “2″ For GPRS Day
Idea 2g & 3g Check SMS Inbox for balance left – check note
Dial *125#
Reliance GSM SMART 2G & 3G
*333#   Reply 1,3,1 Mobile Broadband Balance or
Dial *367*3# or
Send SMS “MBAL” to 55333 and you will Get a reply (for details check screenshot below)
Tata Docomo 2G & 3G *111*1#
Vodafone 2G & 3G                    *111*6# for Prepaid
For Postpaid Dial *777*7*MDN# 
MDN = 10 Digit Device/Dongle/Mobile No.
Videocon 2G & 3G *123#


URL Rewriting-asp.net url rewriting has lots of benefits, listing its main benefits

1.     SEO Friendly URL
2.     Secured URL
3.     No need to change bookmark with change in site structure.

URL Rewriting Scenario

Here i am trying to describe the scenario where we use url rewriting.suppose we have a page called "DisplayProducts.aspx" that takes a category name as a querystring argument, and filters the products according that querystring value.  The corresponding URLs to this DisplayProducts.aspx  page look like this:

http://usetricks.com/DisplayProducts.aspx?CID=books
http://usetricks.com/DisplayProducts.aspx?CID=bikes
http://usetricks.com/DisplayProducts.aspx?CID=pens

Rather than use a querystring to expose each category, we want to modify the application so that each product category looks like a unique URL to a search engine, and has the category keyword embedded in the actual URL (and not as a querystring argument).


URL Rewriting Using Request.PathInfo Parameters Instead of QueryStrings

To understand this see the diffrence between below two urls.

http://usetricks.com/DisplayProducts.aspx?CID=books
and
http://usetricks.com/DisplayProducts.aspx/books

One thing you'll notice with the above URLs is that they no longer have Querystring values - instead the category parameter value is appended on to the URL as a trailing /param value after the DisplayProducts.aspx page handler name.Simply use the Request.PathInfo property, which will return the content immediately following the DisplayProducts.aspx  portion of the URL.


protected string Getcategory()
    {
        string CATNAME = "";
        if (Request.PathInfo.Length == 0)
        {
            CATNAME= "";
        }
        else
        {
            CATNAME= Request.PathInfo.Substring(1);
        }

        return CATNAME;
               
    }

 In this technique there is no server configuration changes are required in order to deploy an ASP.NET application.

Using HttpContext.RewritePath() to Perform URL Rewriting

This method allows a developer to dynamically rewrite the processing path of an incoming URL, and for ASP.NET to then continue executing the request using the newly re-written path.


For example, we could choose to expose the following URLs to the public:

http://usetricks.com/books.aspx
http://usetricks.com/pens.aspx
http://usetricks.com/bikes.aspx

This looks to the outside world like there are three separate pages on the site (and will look great to a search crawler).Now we have to use Application_BeginRequest event in Global.asax.


void Application_BeginRequest(object sender, EventArgs e)
    {

        string fullOrigionalpath = Request.Url.ToString();

        if (fullOrigionalpath.Contains("/Books.aspx"))
        {
            Context.RewritePath("/DisplayProducts.aspx?CID=books");
        }
        else if (fullOrigionalpath.Contains("/pens.aspx"))
        {
            Context.RewritePath("/DisplayProducts.aspx?CID=pens");
        }
    }



Older Posts Home

Most Read

  • How to Capitalize the First Letter of All Words in a string in C# ?
  • keyboard shortcuts For Windows
  • List Of Best Free WordPress Plugins : 2012
  • Read Write XML Data-Read Write XML File Using C#, VB.NET In Asp.Net
  • How to Shake Internet Explorer - Javascript Code
  • How to Choose a Nice Topic for your Blog .
  • Free Search Engine Submission List ,search engine optimization
  • Number validation in Textbox of ASP.NET Using Regular Expression validator
  • Javascript:Percentage Gain Javascript Calculator
  • .Net Interview Questions and Answers on OOPS | OOPS Frequently Asked Questions
Google
Custom Search Bloggers - Meet Millions of Bloggers

Join Us On FaceBook

  • Recent Posts
  • Comments

All Topics

  • ▼  2014 (10)
    • ▼  January (10)
      • ASP.NET Interview Question : difference between ge...
      • Dot Net Framework:What is the .NET Framework?
      • Dot NET Framework - .NET Framework Interview Quest...
      • What is the differences between MVC2,MVC3 and MVC4...
      • Is try catch is using a good coding (exception han...
      • What is the use of Just - In - Time (JIT)?
      • What is GUID , why we use it?,how to create a GUID
      • How to Rename database table column in sqlserver
      • How to Rename Database in sqlserver
      • Asp.net Example Calendar Control
  • ►  2013 (14)
    • ►  October (1)
    • ►  April (2)
    • ►  March (11)
  • ►  2012 (142)
    • ►  December (25)
    • ►  October (1)
    • ►  September (9)
    • ►  August (2)
    • ►  July (7)
    • ►  June (2)
    • ►  April (5)
    • ►  March (27)
    • ►  February (27)
    • ►  January (37)
  • ►  2011 (23)
    • ►  December (3)
    • ►  November (6)
    • ►  October (12)
    • ►  September (2)
  • ►  2009 (1)
    • ►  June (1)

Tips & Tricks

  • What is good One Blog and Many Categories, or Many Blogs with One Categories?
  • Adding Twitter tweet button to each Blogger posts.
  • How to Choose a Nice Topic for your Blog .
  • Embedding YouTube Videos ,movie in your blog
  • Facebook iFrame Apps – Getting Rid of Scrollbars
  • Facebook Analytics:How to Set Up Your Website or Blog with Facebook Insights for Domains
  • How To Add Perfect Share Box to Blogger
  • Blogger Free Images Hosting Tip,Free unlimited bandwidth image hosting for Blogger blogs
  • Add “Link to this post” codes below Each blogger posts
  • Free Search Engine Submission List ,search engine optimization
  • Adsense Tips for Maximum CTR
  • List Of Best Free WordPress Plugins : 2012
2012 tectopix. All rights reserved.
Designed by tectopix