I have the below oracle statement and I am trying to incorporate an IF statement to see if a row exists in a table and if it does then I don't want to run a delete query however if it doesn't then I do want to do want to run the delete query.
I'm not very good with oracle and have never really...
Could you tell me what actual file size this is. I would like to set a limit of 2MB on the file size. Have you any idea whay this would be.
If FileField.PostedFile.ContentLength > 5120000 Then Return False
Thanks so much for your help, much appreciated.
Preferably i'd like to send an error message back to the user saying the file-size is too large however we've enough space in the DB and we could allow them to upload large file types too. Either of these solutions would be nice but the first one is what id prefer to do.
I have a strange exception being thrown in a web application im working on to do with upload files. Everything has been working ok but as soon as it went into system testing we've discovered that we haven't handled an exception for whenever the file size is too big. Unforunately when we try to...
Do I have to wire up the events in a global.asax file. I just realised this might be why my session isn;t working correctly. I have code in the following 3 events: -
Session_End
Application_Error
Session_Start
Does anyone know how i wire them up and if this could be the cause of my problem...
In my Global.asax I have been using it to set the session variables however when I close the browser window and open up a new window I am still able to access pages as if I am logged in. This is a major security problem obviously and i'm not sure if its something which I have done wrong or an IE...
I've got this great wee function which strips out the spaces entered into a textbox and it does this on the key press off a user. I got this working in a test application no problem however when I went to intergrate it with my real application which has the textbox in the footer of a datagrid...
I tried the following below and got a Compilation Error
on the textbox line. Any ideas. There is no onKeyup event.
Cheers for your help so far. I'm not very good at all with Javascript
<script language="javascript" type="text/javascript">
function CheckValidAdd(textbox, val)
{
val =...
I have the following textbox in the footer of a Datagrid and I'd like to try and add some client side code too take out all the spaces which the user might enter by accident. The textbox is used to enter forename text so basically I need the code to strip out any spaces a user may enter. At the...
I have two datagrids on a page and each of them allow the user to add rows. On each datagrid I have validation (required field, reg expressions etc) and my problem is that I only want the validation to work on the datagrid which I click add in. At the moment if I click add in one datagrid and...
I was wondering if anyone knew how to write a regular expression which validated that a field was 200 or less characters long.
Its this part i'm interested in working out. Can someone help me please.
ValidationExpression="^{0,200}$"
<asp:regularexpressionvalidator...
I have the following regular expression and at present it checks that a field contains only letters and is more than 2 characters in length. I would like to change this slightly to also check that the text entered is 25 characters or less. I'm not very good with regular expressions and was...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.