Click here to Skip to main content
15,896,118 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralCustom Web Control Question Pin
dolphinhk6-Mar-08 5:01
dolphinhk6-Mar-08 5:01 
GeneralRe: Custom Web Control Question Pin
Christian Graus6-Mar-08 10:30
protectorChristian Graus6-Mar-08 10:30 
QuestionTreeView Spacing Problem Pin
Paul Clark6-Mar-08 4:54
Paul Clark6-Mar-08 4:54 
GeneralAsp.net validation Pin
Naveed Kamboh6-Mar-08 3:39
Naveed Kamboh6-Mar-08 3:39 
GeneralRe: Asp.net validation Pin
Laddie6-Mar-08 4:07
Laddie6-Mar-08 4:07 
GeneralRe: Asp.net validation Pin
Naveed Kamboh6-Mar-08 4:26
Naveed Kamboh6-Mar-08 4:26 
GeneralRe: Asp.net validation Pin
eyeseetee6-Mar-08 4:35
eyeseetee6-Mar-08 4:35 
GeneralRe: Asp.net validation Pin
Laddie6-Mar-08 4:42
Laddie6-Mar-08 4:42 
Ok then create a javascript to validate your control.

if say

function validate()
{

//Check if the text box value is blank
if(document.getElementById("txtBox1").Value.length == 0)
{
//If yes check if the value of listbox is null
if(documen.getElementById("listbox").Value == null)
{
alert("You have to select a value");
return false;
}
}
}

Now in the OnClientClick property of the image button give this funcion name

You probably will not be able to achieve this using validation controls becuase they can be used against only one control.

Thanks
Laddie


Kindly rate if the answer was helpful

Generaltimer control Pin
iamdking6-Mar-08 3:09
iamdking6-Mar-08 3:09 
GeneralRe: timer control Pin
Laddie6-Mar-08 3:15
Laddie6-Mar-08 3:15 
GeneralRe: timer control Pin
iamdking6-Mar-08 3:32
iamdking6-Mar-08 3:32 
GeneralRe: timer control Pin
eyeseetee6-Mar-08 3:24
eyeseetee6-Mar-08 3:24 
GeneralRe: timer control Pin
iamdking6-Mar-08 3:29
iamdking6-Mar-08 3:29 
GeneralRe: timer control Pin
Laddie6-Mar-08 3:51
Laddie6-Mar-08 3:51 
QuestionHow to bind a hyperlink in Gridview to the variable in cs file of the same application in ASP.NET2.0? Pin
salon6-Mar-08 3:00
salon6-Mar-08 3:00 
AnswerRe: How to bind a hyperlink in Gridview to the variable in cs file of the same application in ASP.NET2.0? Pin
Laddie6-Mar-08 3:08
Laddie6-Mar-08 3:08 
GeneralRe: How to bind a hyperlink in Gridview to the variable in cs file of the same application in ASP.NET2.0? Pin
salon6-Mar-08 3:24
salon6-Mar-08 3:24 
GeneralRe: How to bind a hyperlink in Gridview to the variable in cs file of the same application in ASP.NET2.0? Pin
Laddie6-Mar-08 4:11
Laddie6-Mar-08 4:11 
GeneralRe: How to bind a hyperlink in Gridview to the variable in cs file of the same application in ASP.NET2.0? Pin
salon6-Mar-08 18:19
salon6-Mar-08 18:19 
GeneralIncorrect syntax near {, must declare the scalar variable @AddedDate, @ArticleID Pin
laziale6-Mar-08 2:30
laziale6-Mar-08 2:30 
GeneralRe: Incorrect syntax near {, must declare the scalar variable @AddedDate, @ArticleID Pin
Paddy Boyd6-Mar-08 2:32
Paddy Boyd6-Mar-08 2:32 
GeneralRe: Incorrect syntax near {, must declare the scalar variable @AddedDate, @ArticleID Pin
laziale6-Mar-08 2:43
laziale6-Mar-08 2:43 
GeneralRe: Incorrect syntax near {, must declare the scalar variable @AddedDate, @ArticleID Pin
Paddy Boyd6-Mar-08 2:45
Paddy Boyd6-Mar-08 2:45 
GeneralRe: Incorrect syntax near {, must declare the scalar variable @AddedDate, @ArticleID Pin
laziale6-Mar-08 2:53
laziale6-Mar-08 2:53 
GeneralCall Web Service from ASP Pin
NeerajOzha6-Mar-08 1:49
NeerajOzha6-Mar-08 1:49 

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.