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
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 |
Answer / konangiaparna
string output = input.Substring(0, input.LastIndexOf("."));
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
What are Caching techniques in .NET
How will you load dynamic assembly? How will create assesblies at run time?
What is the difference between Hash table and Array list?
What is the difference between c# and .net?
What is difference Between Authentication and authorization?
Is react a template engine?
2. Why did you choose this career?
2 Answers Schwartz Oil, Swatz Oils,
what is shared assembly?
How would you turn off cookies on one page of your website?
which is better arraylist or dictionary?
How do we sort the data from a dataset?
What is in a session cookie?