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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between equals() and == in c#?

654


Explain about asp.net caching?

655


How will create assesblies at run time?

639


Explain the path instructions in xaml?

652


Explain the steps needed to be performed in order to create an animation in xaml?

647






In the Repeater control which way you can edit?

727


What is the Intermittent crashing of application in production?

647


How do you store a value in viewstate and retrieve them?

648


Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?

656


Where code pages are used?

767


How would you create a permanent cookie?

666


Can I have a unique key as foreign key?

621


Is asp.net mvc front end or backend? : Asp.Net MVC

579


What is web api config?

643


What is the difference between stored procedure vs function?

665