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

What is different authentication mechanisms used in ASP.NET?

1129


what is DLL Hell and how it is solved in .NET? please explain clearly??

2376


What is the difference between user control an custom control?

1117


What is the difference between globalization and localization?

979


Explain what is the procedure to create the environment for asp.net? : asp.net mvc

1037


What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

1042


Difference between singleton and singlecall.

984


How many types of sessions in asp.net?

1110


How does session authentication work?

928


Why is it preferred to not use finalize for clean up?

995


Which method do you use to kill explicitly a users session?

1061


Why session is used in asp.net?

1026


How long should a session id be?

1041


What is the difference between Hash table and Array list?

896


What are the benefits of view state?

946