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.....

Answers were Sorted based on User's Feedback



Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / 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

Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / konangiaparna

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

Is This Answer Correct ?    0 Yes 0 No

Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / 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

More ASP.NET Interview Questions

How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

0 Answers   CTPL,


With out Web.config can we executes the application?

10 Answers   Valtech,


What is difference between URL and URI?

0 Answers   MCN Solutions,


Explain the asp.net session state modes.

0 Answers  


How many validators do ASP.NET have?

0 Answers   QuestPond,






What is request and response in asp.net?

0 Answers  


Difference between HTML control and Web Server Control?

4 Answers  


Is it right that ASP.NET Web API has replaced WCF?

0 Answers  


Do you know about caching with the datasource controls?

0 Answers  


I need some questions regarding asp.net for 1.5yrs of Experience.

1 Answers  


Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?

3 Answers   Visual Soft,


what are the events in ASP.net page life cycle?

1 Answers  


Categories