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 code with datachaching with example
What is asp net application object?
Is react a template engine?
How to find out what version of asp.net I am using on my machine?
when to use webservice and when to use remotong diff between them
What?s the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?
1 Answers Getit, Siebel, Visual Soft,
What are the two properties that are common on every validation control?
Where do you store the information about the user?s locale?
What is the difference between “Web.config” and “Machine.Config”?
What is the difference between globalization and localization?
“~” means in asp.net application?
If we write return statement in finally block will it works fine or throws any error?
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)