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 / prem ranjan

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

string output= input.Substring(0, input.LastIndexOf("."));
Console.WriteLine(output);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is an assembly?

554


What symbol specifies the beginning of a query string?

531


What is a multilingual website?

560


How is application management and maintenance improved in asp.net 2.0?

533


What are validator? Name the validation controls in asp.net? How do you disable them?

542






Can we make activex dll also ti execute in some process as that of client ? How can we do?

4246


What is the asp.net control toolkit?

554


What is ispostback method in asp.net? Why do we use that?

570


How would you turn off cookies on one page of your website?

535


How many types of Cookies are available in ASP.NET?

580


How can you debug your.net application?

554


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

1883


Describe how to implement globalization and localization in the use interface in .net.

558


Are xaml file compiled or built on runtime?

551


What events will occur when a page is loaded?

574