I have a custom CustomValidator that is validates a text box inside a gridview for edit mode.
The Validator calls a C# function for validation in the code behind file.
What i want is to be able to tell if the text in the text box has changed.
I wasn't able to find any way to compare or check if it had been changed.
Is there a way to compare an old and new value?
User Profile
Collapse
Profile Sidebar
Collapse
anonymous
Banned
Last Activity: Oct 4 '20, 05:03 PM
Joined: Sep 9 '05
Location: inside
-
Validator question
-
Thanks a Lot Mr.Graham..The query is working as required after converting back to date time..Ur help was very useful.... -
When i changed order by Date_time, it gave me a error saying that
Column "MyTable.Date_T ime" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause....Leave a comment:
-
If i add desc, it gives me result as follows
01/02/2008 1
01/18/2008 3
01/22/2008 1
04/07/2007 2
04/10/2007 1
04/13/2007 2
04/19/2007 2
05/04/2007 1
05/05/2007 3
05/08/2007 2
I think it is not ordering based on the date completely. It is ordering based on month irrespective of year..How do i solve it?...Leave a comment:
-
This is the query which i am using
select top 10 convert(varchar (10), date_time,101), count(*)
from My_Table
group by convert(varchar (10), date_time,101)
order by 1
But still i am getting the same results as shown in my previous message...Leave a comment:
-
This query is working fine.
I want to order the result based on dates..so i added
order by convert(varchar (10), Transaction_dat e_time,101)
at the end of the query.
When i query i get the results as follows which is not right in order
01/02/2008 1
01/18/2008 3
01/22/2008 1
04/07/2007 2
04/10/2007 1
04/13/2007 2
04/19/2007 2
05/04/2007 1
05/05/2007 3
...Leave a comment:
-
-
How to group by date irrespective of time
Hello,
I have a table which has a date column. The values in the date column are along with time
i.e., 2/1/2008 12:00:00 PM
2/1/2008 2:13:00 PM
2/3/2008 4:00:00 AM
3/1/2008 1:00:00 PM
3/1/2008 4:00:00 PM
3/3/2008 2:18:00 AM
3/3/2008 5:00:00 PM
3/3/2008 7:08:12 PM
I want to group the data based on dates irrespective of time. i,e., i want the results to be as follows
... -
-
I managed to get the script to work using the try....finally functions. I managed to stumble upon that in my searches. Hope this helps someone else out there.Leave a comment:
-
OK, that was incredibly stupid.
I didn't include the declaration for what DSTINVERT meant. I also didn't include "Option Explicit". So when the VB IDE interpreter encountered it, it assumed that DSTINVERT meant 0, which is equivalent to the raster op BLACKNESS.Leave a comment:
-
What's BitBlt's DSTINVERT supposed to do?
The description in MSDN states that DSTINVERT "Inverts the destination rectangle." I imagined that this might mean something like "does a 'bitwise not' on the colors" - for example, a pixel that is RGB(255, 0, 10) becomes RGB(0, 255, 245).
However, when I tried a simple little test, what actually happened was that the entire picture went black.
My test was just a simple form in VB6, with a command... -
How to Continue with a WMI Script on an RPC Error
Python 2.5
wmi.py 1.3
Hello,
I am trying to write a script that will change the properties of a service on a list of remote machines. Their online status will vary. If I create a list with computers that are not currently online, I get the following when trying to call the wmi.WMI function:
Here is the code:
computernames = ["computer1" , "computer2" , "computer3"]... -
Others have already mentioned that you only need to install strawberry perl without the other tools first.
Also I just tried:
perl -MCPAN -e "install module::name"
and it worked like a charm.
Notice the use of double quotes (the windows way) instead of single quotes like your attempt.Leave a comment:
-
I know there are a lot of divs in there.
It is also true that I should put a <h1> instead of a span and I've done so.
What I want to do is to have the h1 stick on the left of the box and the list stick on the right of the box with the background image showing. Would it be possible to look at my code and tell what's wrong with what I've done in order to acheive that?Leave a comment:
-
CSS Havoc
Hi,
I'm posting here my HTML and CSS work. The problem is that when I add the float: right argument to class="indexSec tionTitle", the background-image disapears. When I take that argument out, it comes back. Anyone has any idea why?
[code=html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml"... -
-
Error in inline assembly code
I have written a simple code using inline assembly to compare the individual bytes of two lists (X and Y) and to store the higher byte of each list in a third list (LARGER). The code is as follows (implemented on VC++ 2008 Express edition):
...Code:#include <stdio.h> #include <malloc.h> int main() { char *X,*Y,*LARGER; int i; int N; printf("Please -
TD32 error - "Stopped on exception throw"
Hi. I am trying to perform some inline assembly language programming in C.
I am currently using Windows Vista. The following code is compiled & assembled using bcc32.exe & tasm32.exe and linked using ilink32.exe.
...Code:#include<stdio.h> main() { asm { mov eax, 1000h; mov ecx, 89h; mov ecx, [eax]; } return 0; }
No activity results to display
Show More
Leave a comment: