Click here to Skip to main content
15,895,777 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSQL query result sent to aspx page to be used by Jquery Pin
zapovjednik25-Jul-12 21:59
zapovjednik25-Jul-12 21:59 
AnswerRe: SQL query result sent to aspx page to be used by Jquery Pin
ashjassi17-Aug-12 2:50
ashjassi17-Aug-12 2:50 
AnswerRe: SQL query result sent to aspx page to be used by Jquery Pin
ashjassi17-Aug-12 2:51
ashjassi17-Aug-12 2:51 
QuestionHow to user Update Progress Bar in Master page and in aspx page Pin
sandeep_ravula25-Jul-12 21:11
sandeep_ravula25-Jul-12 21:11 
AnswerRe: How to user Update Progress Bar in Master page and in aspx page Pin
Vani Kulkarni26-Jul-12 3:11
professionalVani Kulkarni26-Jul-12 3:11 
GeneralRe: How to user Update Progress Bar in Master page and in aspx page Pin
sandeep_ravula19-Aug-12 3:10
sandeep_ravula19-Aug-12 3:10 
GeneralSome PowerShell scripts fail when executed from ASP.NET site Pin
Tyson326425-Jul-12 20:19
Tyson326425-Jul-12 20:19 
Questionserver side editor Pin
dcof25-Jul-12 17:53
dcof25-Jul-12 17:53 
In a C# 2010 web application, I want to add a server side regular expression value that can edit a date in the following format:

mm/dd/yyyy where mm is month, dd is day, and yyyy is year. I want the user to be required to enter the backslashes. From what I have seen on the internet, the following 2 examples would have the code that works:
1.   (0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d)

2 ^(0[1-9]|1[012])[/](0[1-9]|[12][0-9]|3[01])[/](19|20)\d\d$ 


Based upon the above, can you tell me the following:

1. Which method would work and why?

2. If neither method would work what would you recommend that would work?

3. From the examples above, what does [- /.] stand for? I know the dot is only one character and the / is the character that is being looked for? However what does the dash followed by a space mean? Is this the same meaning as [/]?

4. In the above examples you can see 1[012]. Does that mean that the first digit must 1 and the second digit can be either 0 or 1 or 2?

5. When looking at the regular expressions, is there a way to tell what the pattern being matched against means? Basically is there a way to tell what the regular expression means by using a tool like the .net debugger?
SuggestionRe: server side editor Pin
Richard MacCutchan25-Jul-12 22:42
mveRichard MacCutchan25-Jul-12 22:42 
GeneralRe: server side editor Pin
dcof26-Jul-12 6:07
dcof26-Jul-12 6:07 
GeneralRe: server side editor Pin
Richard MacCutchan26-Jul-12 6:23
mveRichard MacCutchan26-Jul-12 6:23 
Questionprevent to copy my web pge Pin
Elham M24-Jul-12 21:28
Elham M24-Jul-12 21:28 
AnswerRe: prevent to copy my web pge Pin
Bernhard Hiller24-Jul-12 21:36
Bernhard Hiller24-Jul-12 21:36 
GeneralRe: prevent to copy my web pge Pin
Elham M24-Jul-12 21:51
Elham M24-Jul-12 21:51 
AnswerRe: prevent to copy my web pge Pin
StianSandberg24-Jul-12 23:36
StianSandberg24-Jul-12 23:36 
GeneralRe: prevent to copy my web pge Pin
Elham M25-Jul-12 22:21
Elham M25-Jul-12 22:21 
GeneralRe: prevent to copy my web pge Pin
StianSandberg25-Jul-12 22:31
StianSandberg25-Jul-12 22:31 
GeneralRe: prevent to copy my web pge Pin
Elham M26-Jul-12 1:18
Elham M26-Jul-12 1:18 
AnswerRe: prevent to copy my web pge Pin
StianSandberg26-Jul-12 1:52
StianSandberg26-Jul-12 1:52 
GeneralRe: prevent to copy my web pge Pin
RamShankarMCA26-Jul-12 2:12
RamShankarMCA26-Jul-12 2:12 
GeneralRe: prevent to copy my web pge Pin
Elham M26-Jul-12 2:55
Elham M26-Jul-12 2:55 
GeneralRe: prevent to copy my web pge Pin
Pete O'Hanlon26-Jul-12 3:00
mvePete O'Hanlon26-Jul-12 3:00 
QuestionGetting "Index was out of range" error.. Pin
Diana Tsilidi24-Jul-12 9:06
Diana Tsilidi24-Jul-12 9:06 
AnswerRe: Getting "Index was out of range" error.. Pin
jkirkerx24-Jul-12 10:20
professionaljkirkerx24-Jul-12 10:20 
AnswerRe: Getting "Index was out of range" error.. Pin
Bernhard Hiller24-Jul-12 21:51
Bernhard Hiller24-Jul-12 21:51 

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.