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

What is the difference between the asp and asp.net?

582


What are the different types of validation controls in asp.net?

620


What are app services?

620


Explain the different types of assemblies?

627


What does the orientation property do in a menu control?

621






Describe the sequence of action takes place on the server when ASP.NET application starts first time?

720


Why cyclomatic complexity is important?

646


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

712


What is asp.net version?

619


What is scope of an application variable in asp.net?

582


What is asynchronous call?

694


What is paging in context of Memory?

752


What are standard controls?

599


What is difference between view state and session state?

569


What is the difference between Classic ASP and ASP.Net?

628