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 / 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 |
Post New Answer View All Answers
What is difference between session and cookies in asp net?
Can you set the session out time manually?
How can we register exception filter globally?
What are the events that happen when a client requests an asp.net page from iis server?
Define a multilingual website?
Explain swagger components.
What are sharepoint pages?
What are the differences between the response.write() and response.output.write()?
What is difference between viewstate and session in asp net?
What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?
How do http sessions work?
Difference between Response.redirect vs server.transfer?
What is a user developed application?
Explain the difference between globalization and localization techniques
What is Bundling and Minification in MVC?