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

What is a 404 redirect?

797


What is application session?

691


How to display Alert in ASP.NET

832


What is the part of url?

711


What is the difference between “Web.config” and “Machine.Config”?

884


Why do we need a web application session?

701


Explain how cookies work.

788


Give an example of cookie abuse.

802


What does it mean your session has timed out?

719


Explain the difference between authentication and authorization.

798


What threading model used in asp and asp.net?

760


What is query string? What are its advantages and limitations?

730


What is cookies in asp net?

714


Explain what is the procedure to create the environment for asp.net? : asp.net mvc

775


What is view state management in asp net?

660