|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Verify syntax of an URlDer all,
I have a text box where my user introduce a URL of type Http:\\.... or Ftp:\\... I need to verify that only this type of syntax is valid for my text box How can I perfomr that ?? Thansk for help Did you look at the Uri.IsWellFormedUriString static method?
Joe K. -- Show quoteHide quoteJoe Kaplan-MS MVP Directory Services Programming Co-author of "The .NET Developer's Guide to Directory Services Programming" http://www.directoryprogramming.net -- "serge calderara" <sergecalder***@discussions.microsoft.com> wrote in message news:91352FDC-F919-4853-9D3C-EC1B8A0E3D35@microsoft.com... > Der all, > > I have a text box where my user introduce a URL of type Http:\\.... or > Ftp:\\... > I need to verify that only this type of syntax is valid for my text box > > How can I perfomr that ?? > > Thansk for help no,
Ia was stzarting using regEx as everyone says that it is the key to verify syntax before anything to prevent undesirable string. But usng it cannot find the correct way to do it.. regards Show quoteHide quote "Joe Kaplan (MVP - ADSI)" wrote: > Did you look at the Uri.IsWellFormedUriString static method? > > Joe K. > > -- > Joe Kaplan-MS MVP Directory Services Programming > Co-author of "The .NET Developer's Guide to Directory Services Programming" > http://www.directoryprogramming.net > -- > "serge calderara" <sergecalder***@discussions.microsoft.com> wrote in > message news:91352FDC-F919-4853-9D3C-EC1B8A0E3D35@microsoft.com... > > Der all, > > > > I have a text box where my user introduce a URL of type Http:\\.... or > > Ftp:\\... > > I need to verify that only this type of syntax is valid for my text box > > > > How can I perfomr that ?? > > > > Thansk for help > > > > I have a text box where my user introduce a URL of type Http:\\.... or Did you take a look at PathIsURL() ?> Ftp:\\... > I need to verify that only this type of syntax is valid for my text box > > How can I perfomr that ?? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pathisurl.asp m http://bubbler.net/outlaw/blog
Advice requested : Storing SID String in SQL table
How to SELECT records based upon ASP.NET Roles CAS Policy issue Windows Authentication when Web Server is in DMZ Strong Name Sandboxed AppDomain and GAC Problem with plugins LDAP Authentication Security Library Classes GetAccess Control for Directory AzMan Administration on Advanced Server 2000 DPAPI and key store |
|||||||||||||||||||||||