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 |
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
How to check the end of the record in Datareader?
Are cookies client side or server side?
what is a .xap file? Explain with an example.
Explain about Application and Session Events ?
What is the viewstate in asp.net?
What are the different types of Caching techniques in ASP.NET?
How to reduce the Page size in asp.net?
What is a query string in a url?
What is the difference between session and viewstate in asp.net?
How would you enable impersonation in the web.config file?
what is ienumerable interface?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)