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


Please Help Members By Posting Answers For Below Questions

How can we register exception filter from the action?

658


How ASP.NET page works?

670


What is the use of session state and application state and difference between them?

473


How do I open an ashx file?

536


How can we create pie chart in asp.net?

574






Explain difference between dataset and datareader?

597


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

521


What are sql joins?

562


Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?

640


What is the caspol.exe tool used for?

533


What’s difference between “optimistic” and “pessimistic” locking?

573


What is the use of autowireup in asp.net?

552


What is the difference between cookie and session?

490


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

517


How does asp page work?

538