I have a java applet to run the reports on my aspx page. The reports are being cached. I am using: Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetNoStore() Response.AddHeader("Pragma", "no-cache") Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)) in the aspx.vb code of the page, but it does not help. Looking for any help.
U
User 804865
@User 804865
Posts
-
JAVA APPLET -
Regular ExpressionsI have changed my code and it works. Actually it supposed to be 1 to 5 digits, so I changed the first part to \d{1,5}
-
Regular ExpressionsThanks for the help It works.:laugh:
-
Regular ExpressionsI am using the RegEx which needs to check for the value to be five digits before the decimal and 2 after the decimal or just five digits. and I am using System.Text.RegularExpressions.Regex exp = new System.Text.RegularExpressions.Regex("(^\\d{0,5}.{1}\\d{1,2}$)|(^\\d{1,5}$)"); With this it's only checking if the value is five digits before decimal and 2 after but not for just 5 digits. I entered 6 digits without decimal and it did not catch the exception. I don't know what's wrong. Any help ?