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

When web.config is called ?

4 Answers   Keane India Ltd,


What kind of data we can store in viewstate?

0 Answers  


How do you deploy your asp.net application?

0 Answers  


I M working in 1.1 .net framework. In a page I have 5 text box & 2 data grid. In PageLoad() All text box will populate with blank value & 1st dataGrid with some value. When I click on EDIT button Of the 1st dataGrid,The Relevent data Of the particular row will populate in first 3 textboxs & corresponding relevent data Will populate in the 2nd DataGrid. Now when I click 2nd datagrid's EDIT button of a perticular Row,relevent data will populate on last 2 textboxs & 1st 3 textbox's value will be same as per as it was........ ........My Problem Is ........... When I click on edit button Of 2nd DataGrid, 1st 3 text boxes values goes Off & 2nd DataGrid Is goes off Due to Postback.but The relevent value is populated In last 2 textboxes.So How I stoped this postback??So that all the data in 1st 3 textboxes will be same.So that I can edit the values of 2nd Grid with 1st 3 textBoxes value.. plz dirctly mail me 1 copy of post to... maloy.adhikari@in.com

2 Answers  


Types of caching ?

3 Answers   TCS,


What are session state modes? List some of the important session state modes of asp.net.

0 Answers  


What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

0 Answers  


How to disable disable browser's Back button in asp.net (JavaScript)?

0 Answers   HCL,


where should write the connection string Show that it will apply whole pages in the website

5 Answers   Symco,


How would you enable impersonation in the web.config file?

0 Answers  


How do sessions work?

0 Answers  


What are the various types of authentication?

1 Answers  


Categories