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

How many Garbage Collectors are there for one Application or one Page

1 Answers   Emphasis,


Define page output caching?

0 Answers  


What definition correctly defines a label server control with the name set to lblHoop? a) <asp:Label name=?lblHoop? runat=?server? /> b) <Label id=?lblHoop? runat=?server? /> c) <asp:Label id=?lblHoop? runat=?server? /> d) <server label name=?lblHoop? runat=?asp? />

3 Answers   Syntax Softtech,


What is difference between view state and session state?

0 Answers  


When is validation done on the client? How does client-side validation improve the efficiency of an application?

1 Answers  






What is xaml? Are xaml file compiled or built on runtime?

0 Answers  


How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Another Folder Name "Check".Check Folder Is Out Side Of Our Project ?Check Folder Have Verify.Js File. My Question Is How To Call Verify.Js File.

3 Answers   Consagous, Phoenix Technologies,


Details on web.config and global.asax - just explain what are the sections will be there.

1 Answers   Syntel,


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

0 Answers  


What is meant by web application?

0 Answers  


Can we make activex dll also ti execute in some process as that of client ? How can we do?

0 Answers   DELL, Zerone,


What is the behavior of a Web browser when it receives an invalid element?

0 Answers   MindCracker,


Categories