if(st1.equal(st2)) ClientScript.RegisterClientScriptBlock(typeof(Page), "myscript", "alert('Equla String')", true);
Cheers ! Abhijit
Thanks SagarP http://www.emanonsolutions.net http://emanonsolutions.blogspot.com/
<img src="/myimage.jpg" id="img1" /> <input type="button" value="submit" onclick="ChangeImage()" /> <script language="JavaScript"> function ChangeImage() { alert(document.getElementById('img1').src); document.getElementById('img1').src = "http://www.dotnetfunda.com/images/DotNetLogo.gif"; } </script>
Regards, Raja, USA
ClientScript.RegisterClientScriptBlock(this.GetType(), "ClientScript", "showimage()");
<script language="JavaScript"> function showimage() { alert(document.getElementById(id of image).src); } </script>
Mark this as answer, if it is..... With regards Nishithraj Narayanan
Login to post response