quintin Posted May 11, 2015 Report Posted May 11, 2015 i have one image button, which when clicked should show a different image, i have tried adding on click on the asp.net button tag, i have tried adding image2.visible = true immediately after image1 is clicked... i dont know why its not showing up, <asp:imagebutton id="image1" runat="server" ImageUrl="../Images/transmit.gif" onClick = "ImageButton_Click"> </asp:imagebutton> <asp:imagebutton id="image2" runat="server" visible = false ImageUrl="../Images/image2.gif"></asp:imagebutton> i have added in image1 class on click event like this image2.visible = true --not working also tried this </script> </HEAD> <script language="VB" runat="server"> Sub ImageButton_Click(sender As Object, e As ImageClickEventArgs) image1.Visible = False image2.Visible = True End Sub </script> can any one help.. its aspx page written in vb... ah button click cheste edo webservice call chesi xml data populate chestadi
tucker Posted May 11, 2015 Report Posted May 11, 2015 javascript lo na or code behind lo chesthunnava?
ILAQAT_MUFLIYA Posted May 11, 2015 Report Posted May 11, 2015 parent control visibility emaina overwriting ?
quintin Posted May 11, 2015 Author Report Posted May 11, 2015 parent control visibility emaina overwriting ? how will i know the visibility of parent control :(
ILAQAT_MUFLIYA Posted May 11, 2015 Report Posted May 11, 2015 how will i know the visibility of parent control :( ne markup eda ey ..
karna11 Posted May 11, 2015 Report Posted May 11, 2015 jquery loooo chesukooo <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"><script src="jquery/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $('#<%=btnEdit.ClientID %>').click(function(){ $('#<%=divAddress.ClientID %>').hide(); $('#<%=divEdit.ClientID %>').show();return false; }); $('#<%=btnCancel.ClientID %>').click(function(){ $('#<%=divAddress.ClientID %>').show(); $('#<%=divEdit.ClientID %>').hide();return false; }); });</script></asp:Content>
Osama Bin Gandhi Posted May 11, 2015 Report Posted May 11, 2015 naadoka chinna doubt..instead of two image controls img click event image1.ImageUrl="../Images/image2.gif"; ani specify cheste nee condition satisfy avvada? <asp:imagebutton id="image1" runat="server" ImageUrl="https://www.google.com/images/srpr/logo11w.png" onClick = "ImageButton_Click"> </asp:imagebutton> protected void ImageButton_Click(object sender, ImageClickEventArgs e) { image1.ImageUrl = "http://www.wingadgetnews.com/wp-content/uploads/2012/08/new-microsoft-logo.png"; }
quintin Posted May 11, 2015 Author Report Posted May 11, 2015 jquery loooo chesukooo <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"><script src="jquery/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $('#<%=btnEdit.ClientID %>').click(function(){ $('#<%=divAddress.ClientID %>').hide(); $('#<%=divEdit.ClientID %>').show();return false; }); $('#<%=btnCancel.ClientID %>').click(function(){ $('#<%=divAddress.ClientID %>').show(); $('#<%=divEdit.ClientID %>').hide();return false; }); });</script></asp:Content> Bhaya ee application lo motham jquery vadaledu, adhi download chesi add cheyali ante ba gadu vadu antunad
quintin Posted May 11, 2015 Author Report Posted May 11, 2015 jquery loooo chesukooo <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"><script src="jquery/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $('#<%=btnEdit.ClientID %>').click(function(){ $('#<%=divAddress.ClientID %>').hide(); $('#<%=divEdit.ClientID %>').show();return false; }); $('#<%=btnCancel.ClientID %>').click(function(){ $('#<%=divAddress.ClientID %>').show(); $('#<%=divEdit.ClientID %>').hide();return false; }); });</script></asp:Content> Thanks for this though bro
Jambhalheart Posted May 11, 2015 Report Posted May 11, 2015 code behind click event lo Button1.Visible = false; Button2.Visible=true; ante ravaali, check in page_load or prerender events edanna Button1 ni malla visible chesthondhaa ani ...
quintin Posted May 11, 2015 Author Report Posted May 11, 2015 naadoka chinna doubt..instead of two image controls img click event image1.ImageUrl="../Images/image2.gif"; ani specify cheste nee condition satisfy avvada? petti chusa, adhi ventane lopaliki vachi result teskochestundi
Osama Bin Gandhi Posted May 11, 2015 Report Posted May 11, 2015 you mean working? petti chusa, adhi ventane lopaliki vachi result teskochestundi
quintin Posted May 11, 2015 Author Report Posted May 11, 2015 code behind click event lo Button1.Visible = false; Button2.Visible=true; ante ravaali, check in page_load or prerender events edanna Button1 ni malla visible chesthondhaa ani ... page_load lo button1 ni if some conditons are not satisfied appudu button 1 ni false chestunayi
Recommended Posts