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.....

Answers were Sorted based on User's Feedback



Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / 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

Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / konangiaparna

string output = input.Substring(0, input.LastIndexOf("."));

Is This Answer Correct ?    0 Yes 0 No

Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / 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

More ASP.NET Interview Questions

1. Briefly describe your ideal job?

1 Answers   Swatz Oils, Swetz Oil,


Explain what is event bubbling?

0 Answers  


How long the items in ViewState exists?

0 Answers   SwanSoft Technologies,


How is a property designated as read-only?

2 Answers  


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

0 Answers  


What is the difference between ASP and ASP.NET?

4 Answers   Sans Pareil IT Services, TCS,


what is the use of untyped data set ?

5 Answers   TCS, Wipro,


What are the types of authentications in ASP.NET?

2 Answers   Accenture, BirlaSoft,


What does it mean your session has timed out?

0 Answers  


what is Versioning in asp.net and how it maintain in any web application

1 Answers   TCS,


What is the namespace used to store the information about the user?s locale?

1 Answers   NeoSoft, Siebel,


What is the basic difference between asp and asp.net?

0 Answers  


Categories