Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Input:http://www.allinterview.com/forms/questionform.php
Output:http://www.allinterview.com/forms/questionform
Write c# program to get the above desired output for the given
Input.....

Answer Posted / mallikarjuna016

string input="http://www.allinterview.com/forms/questionform.php";

output= input.Substring(0, input.LastIndexOf(".") + 1);

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain how ASP.NET application life cycle and page life cycle events fire?

1014


What is postback request?

973


What is difference between session and cookie?

997


What is the difference between exe and dll?

1128


Explain the purpose of storyboard.targetproperty.

943


Can you explain architecture of your project ?

1118


What is a session in programming?

1067


How does session authentication work?

915


How will you maintain versioning in asp.net 2.0?

1023


What is preprocessor in .net? Where it use?

974


How do you design a website with multilingual support in ASP.NET ?

980


Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?

2789


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

992


What are ASHX files?

1092


What is autopost?

979