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
How can we register exception filter from the action?
How ASP.NET page works?
What is the use of session state and application state and difference between them?
How do I open an ashx file?
How can we create pie chart in asp.net?
Explain difference between dataset and datareader?
Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc
What are sql joins?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
What is the caspol.exe tool used for?
What’s difference between “optimistic” and “pessimistic” locking?
What is the use of autowireup in asp.net?
What is the difference between cookie and session?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
How does asp page work?