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

Briefly describe the role of global.asax?

749


What is difference between Lambda Expression and LINQ in ASP.NET?

729


What are assemblies and namespaces and explain the difference between them ?

807


What is query string?

771


Differentiate globalization and localization.

774


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1719


Define static constructor?

734


How to implement globalization and localization in the use interface in .net.

739


What is redirectpermanent in asp.net?

805


How do you create a master page?

762


Explain difference between friend and protected friend?

717


Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?

769


What is special types forms

739


What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

813


Give some salient points of difference between request processor and request dispatcher.

827