Click here to Skip to main content
14,491,120 members
   

C#

 
Questionpop server connection Pin
kathiresanmoorthy21-Jul-08 19:35
Memberkathiresanmoorthy21-Jul-08 19:35 
RantRe: pop server connection Pin
Guffa21-Jul-08 23:52
MemberGuffa21-Jul-08 23:52 
Questionretreving the gridview row in color from sqlserver using boundfields Pin
santosh04221-Jul-08 18:53
Membersantosh04221-Jul-08 18:53 
AnswerRe: retreving the gridview row in color from sqlserver using boundfields Pin
Srishti Mathur21-Jul-08 19:48
MemberSrishti Mathur21-Jul-08 19:48 
Questionhow to get domain part from URL Pin
George_George21-Jul-08 17:22
MemberGeorge_George21-Jul-08 17:22 
AnswerRe: how to get domain part from URL Pin
Bert delaVega21-Jul-08 17:40
MemberBert delaVega21-Jul-08 17:40 
GeneralRe: how to get domain part from URL Pin
George_George21-Jul-08 18:14
MemberGeorge_George21-Jul-08 18:14 
AnswerRe: how to get domain part from URL Pin
N a v a n e e t h21-Jul-08 17:59
MemberN a v a n e e t h21-Jul-08 17:59 
George_George wrote:
Are there any existing utility class to do this? Not all URLs begins with protocol part, like http://, and not all ends with /, so I feel hard when I try to write a parser by myself;


Yes. System.Net.Uri class does this.
Uri uri = new Uri("http://abc.com/some/address/abc.html");
Console.WriteLine(uri.Host);


George_George wrote:
Is domain case sensitive or not? i.e. abc.com the same as ABc.Com?


Usually domains are not case sensitive. But some web servers like APACHE, consider the folder names as case sensitive. Which means, www.abc.com will be equal to www.ABC.com, but www.abc.com/somefolder won't be equal to www.abc.com/SomeFolder according to apache.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: how to get domain part from URL Pin
George_George21-Jul-08 19:16
MemberGeorge_George21-Jul-08 19:16 
QuestionHow to retrieve top 10 elements in a Dictionary Pin
George_George21-Jul-08 17:11
MemberGeorge_George21-Jul-08 17:11 
AnswerRe: How to retrieve top 10 elements in a Dictionary Pin
N a v a n e e t h21-Jul-08 18:03
MemberN a v a n e e t h21-Jul-08 18:03 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George21-Jul-08 19:21
MemberGeorge_George21-Jul-08 19:21 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
Guffa21-Jul-08 21:19
MemberGuffa21-Jul-08 21:19 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George21-Jul-08 21:34
MemberGeorge_George21-Jul-08 21:34 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
Guffa21-Jul-08 23:54
MemberGuffa21-Jul-08 23:54 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George22-Jul-08 0:09
MemberGeorge_George22-Jul-08 0:09 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
Guffa22-Jul-08 2:18
MemberGuffa22-Jul-08 2:18 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George27-Jul-08 1:33
MemberGeorge_George27-Jul-08 1:33 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
Guffa27-Jul-08 2:43
MemberGuffa27-Jul-08 2:43 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George31-Jul-08 1:53
MemberGeorge_George31-Jul-08 1:53 
AnswerRe: How to retrieve top 10 elements in a Dictionary [modified] Pin
Joe Woodbury21-Jul-08 20:40
professionalJoe Woodbury21-Jul-08 20:40 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George21-Jul-08 21:17
MemberGeorge_George21-Jul-08 21:17 
QuestionBind List<double[]> to Datagrid Pin
Aaron Stubbendieck21-Jul-08 16:43
MemberAaron Stubbendieck21-Jul-08 16:43 
Questionhow to get ideal time of system.. Pin
vayanan21-Jul-08 15:28
Membervayanan21-Jul-08 15:28 
AnswerRe: how to get ideal time of system.. Pin
Luc Pattyn21-Jul-08 15:40
sitebuilderLuc Pattyn21-Jul-08 15:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.