I am dynamically adding images to a Panel on my ASP.NET page using the following code in my Page Load event:
For Each img In nodeList
Dim imgTemp As New Image
imgTemp.ID = "CurImage" & cnt.ToString
imgTemp.CssClass = "borders_off"
imgTemp.ImageUrl = img.InnerText
cnt = cnt + 1
What I want to be able to do is to change the CssClass to "borders_on" when the image is clicked if CssClass is "borders_off" and to "borders_off" if the CssClass is "borders_on". I know I can do it on the server side but I don't want to have to go back to the server and would like to do it on the client side. The ASP:Image doesn't have a property for a client side onclick that I can find. Is there a way to do what I want?
Just a quick little trick I learned recently. Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:
I suppose it just offends my sense of decency to put inline VBScript on a…
In .NET 2.0, Microsoft introduced the Web Site. This was the default way to create a web Project in Visual Studio 2005. In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x
The Web Si…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…