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
What is difference between mvc and asp.net? : Asp.Net MVC
What is asp.net ajax?
How to do state management in ASP.NET?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
What are sharepoint pages?
Why is mvc better than asp.net?
Explain how can we inherit a static member?
How can I have a particular web page in an asp.net application which displays its own error page?
How does session state work in asp.net?
How can exception be handled with out the use of try catch?
Explain the differences between clr & cts?
What is datagrid asp.net?
What are type/key pairs in client script registration?
What is the difference between page-level caching and fragment caching?
How should I destroy my objects in asp.net?