Click here to Skip to main content
16,005,236 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralApplying Style sheet(CSS) in Crystal report .net Pin
srieen22-Apr-04 1:42
srieen22-Apr-04 1:42 
GeneralStructures in VisualBasic. Pin
amardude22-Apr-04 0:45
amardude22-Apr-04 0:45 
GeneralRe: Structures in VisualBasic. Pin
Dave Kreskowiak22-Apr-04 7:23
mveDave Kreskowiak22-Apr-04 7:23 
GeneralRe: Structures in VisualBasic. Pin
amardude23-Apr-04 20:00
amardude23-Apr-04 20:00 
GeneralRe: Structures in VisualBasic. Pin
Dave Kreskowiak24-Apr-04 2:25
mveDave Kreskowiak24-Apr-04 2:25 
QuestionRetrieving a DataRow from a DataGrid??? Pin
Greg Eales21-Apr-04 23:32
Greg Eales21-Apr-04 23:32 
AnswerRe: Retrieving a DataRow from a DataGrid??? Pin
Ritesh Sompura22-Apr-04 4:46
Ritesh Sompura22-Apr-04 4:46 
Generalclient side error validation Pin
kieran540521-Apr-04 22:57
kieran540521-Apr-04 22:57 
Hi,

I am using VS.net and have a custom validator that shows an error if both text boxes are filled in. This is done server side but i now want it to also work client side. How would i do this, does anyone know?

I presume i use some sort of JS function, where does this go in the VS layout. Or is there another better way to do this altogether?



<br />
Protected Sub CustomValidator1_ServerValidate(ByVal source As System.Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate<br />
<br />
<br />
        Dim Count As Integer<br />
<br />
        If Len(txtName.Text) > 0 Then Count += 1<br />
<br />
        If Len(txtName2.Text) > 0 Then Count += 1<br />
<br />
        If Count <> 1 Then<br />
<br />
            args.IsValid = False<br />
<br />
        End If<br />
<br />
<br />
    End Sub<br />



All help appreciated.
GeneralWeb/Network communication Pin
ineedhelp21-Apr-04 21:21
ineedhelp21-Apr-04 21:21 
QuestionHow to use excel object OpenText - FieldInfo in vb.net Pin
BenLe21-Apr-04 20:30
BenLe21-Apr-04 20:30 
GeneralBroken Popup Menu Pin
zumichu21-Apr-04 15:18
zumichu21-Apr-04 15:18 
GeneralWhy my DatagridStyle is not working Pin
Muthu Annamalai21-Apr-04 11:26
Muthu Annamalai21-Apr-04 11:26 
GeneralRe: Why my DatagridStyle is not working Pin
Greg Eales21-Apr-04 23:40
Greg Eales21-Apr-04 23:40 
GeneralRe: Why my DatagridStyle is not working Pin
Muthu Annamalai22-Apr-04 3:15
Muthu Annamalai22-Apr-04 3:15 
GeneralMIDI player help Pin
Nadroj21-Apr-04 9:23
Nadroj21-Apr-04 9:23 
GeneralHandling MDI Toolbar events in MDI Child Pin
21-Apr-04 8:08
suss21-Apr-04 8:08 
Generalpassing session, datagrid Pin
partt21-Apr-04 6:41
partt21-Apr-04 6:41 
GeneralRe: passing session, datagrid Pin
partt21-Apr-04 9:36
partt21-Apr-04 9:36 
GeneralRegarding the winsock Pin
bramr21-Apr-04 3:28
bramr21-Apr-04 3:28 
GeneralColor to string and back again Pin
Anonymous21-Apr-04 2:52
Anonymous21-Apr-04 2:52 
QuestionHow do I Pin
KORCARI21-Apr-04 2:18
KORCARI21-Apr-04 2:18 
AnswerRe: How do I Pin
RichardGrimmer21-Apr-04 2:33
RichardGrimmer21-Apr-04 2:33 
AnswerRe: How do I Pin
PaleyX21-Apr-04 2:56
PaleyX21-Apr-04 2:56 
GeneralData Report Pin
giridharvarma21-Apr-04 1:10
giridharvarma21-Apr-04 1:10 
GeneralwebBrowser Control Pin
suhasiniPrasad21-Apr-04 0:06
suhasiniPrasad21-Apr-04 0:06 

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.