Hello All,
I just want to know how Can I disable button for some conditions? Say, if I have session- Val. If its -1 then button must be disabled otherwise Enable..
Thanks,
Hakoo Desai...
Hello All,
I just want to know how Can I disable button for some conditions? Say, if I have session- Val. If its -1 then button must be disabled otherwise Enable..
Thanks,
Hakoo Desai...
i just want you to clarrify your problem: can you clarrify your case/sirtuation more.
=)
<%
if Session("SessionVariable") <> "ValueWanted" then
theButton = "disabled"
else
'who cares
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>button</title>
</head>
<body>
<input name="Button1" type="button" value="button" <%= theButton %> />
</body>
</html>
<%
> if Session("SessionVariable") <> 1 then
> theButton = "disabled = disabled"
> else
> theButton = ""
> end if
> %>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>button</title>
> </head>
> <body>
> <input name="Button1" type="button" value="button" <%= theButton %> />
> </body>
> </html>
/*how about this?..hope it help
if its not,
i just wanna ask some question where could you get the "valueWanted or 1" from the database?
can you explain me further the front end situation.?*/
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.