functions for the script tag in body
[code]
function prog1(objid)
{
var obj;
obj=window.document.getElementById(objid);
obj.style.backgroundColor="red";
obj.style.color="yellow";
}
function prog2(objid)
{
var obj;
obj=document.getElementById(objid);
obj.style.backgroundColor="yellow";
obj.style.color="red";
}
function blinktext()
{
if(p3.style.visibility=="visible")
{
p3.style.visibility="hidden";
}
else
{
p3.style.visibility="visible";
}
window.setTimeout("blinktext()",300);
}
[/code]
call binktext function onload of body tag and
in p tag use the following line
[code]
onmouseover="prog1('p1')" onmouseout="prog2('p1')"
[/code]
for more details please see the attachment
--
Thanks and Regards
Meetu Choudhary
Monday, March 23, 2009
Use a session variable in the class files in c# ASP.Net
To use the value of a session variable in the class files using c# with ASP.Net use the following statement
direct use of Session collection is not allowed in the .cs files so to achieve the purpose we have to follow the whole path i.e
System.Web.HttpContext.Current.Session["varname"].ToString()
Example:
[code]
System.Web.HttpContext.Current.Session["con1"].ToString()
[/code]
++
Thanks and Regards
Meetu Choudhary
direct use of Session collection is not allowed in the .cs files so to achieve the purpose we have to follow the whole path i.e
System.Web.HttpContext.Current.Session["varname"].ToString()
Example:
[code]
System.Web.HttpContext.Current.Session["con1"].ToString()
[/code]
++
Thanks and Regards
Meetu Choudhary
Subscribe to:
Posts (Atom)
Subscribe via email
MSDotnetMentor
MSDotnetMentor
My Website
http://msdotnetmentor.com