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 application Object?

591


Difference between using directive vs using statement?

508


What are the different web pages?

493


Explain the asp.net mvc request life cycle? : asp.net mvc

500


Which platform does Microsoft .NET use for exchanging data between applications?

582






Can any body provide me the sample web application in asp.net

1435


How do u declare static variable and how it is declared and what is its lifetime?

513


What is bson in web api?

586


What is a url string?

548


Define repository pattern in mvc.net? : asp.net mvc

511


In which event of the page life cycle, is the viewstate available?

522


What is meant by server side scripting?

521


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1504


How long do session variables last?

530


Explain the concept of event bubbling in ASP.NET?

578