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 a 404 redirect?
What is application session?
How to display Alert in ASP.NET
What is the part of url?
What is the difference between “Web.config” and “Machine.Config”?
Why do we need a web application session?
Explain how cookies work.
Give an example of cookie abuse.
What does it mean your session has timed out?
Explain the difference between authentication and authorization.
What threading model used in asp and asp.net?
What is query string? What are its advantages and limitations?
What is cookies in asp net?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
What is view state management in asp net?