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 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...
...help me please.
ValidationExpression="^{0,200}$"
<asp:regularexpressionvalidator id="Regularexpressionvalidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="Outcomes cannot be more than 200 characters long" 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...
Does anyone know code which I can use to set the value of rows for a datagrid in my project. Basically I need to check that a datagrid doesn't have more than a certain number of rows before I allow a user to add a row. I've been asked to set the allowed number of rows in the web config file...
I've got the below datagrid set-up below and Im trying to get the paging wired up. The correct numbers are coming back based on the amount on pages there should be however the on-click event of each page number isn't working. Does anyone know which event I use and what code I need to add to...
I don;t use oracle but i've got the following error when testing a web application which connects to a back end oracle package and I was wondering if someone could help me to explain this error. Not sure what is is was thinking it could be something to do with a connection being dropped or...
sort of see what you mean but wouldn't have a clue how to write the code for that. It seems fairly complicated.
Basically to highlight my problem again.
on my webform1 I have a method
public void BindData()
{
}
And on my DataGridNavigation.ascx.cs file I need to call this method: -
private...
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.