Jump to content

Recommended Posts

Posted

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>&nbsp;&nbsp;
<asp:imagebutton id="image2" runat="server" visible = false ImageUrl="../Images/image2.gif"></asp:imagebutton>&nbsp;&nbsp;
 
 
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

Posted

parent control visibility emaina overwriting ?

Posted

parent control visibility emaina overwriting ?

 how will i know the visibility of parent control :(

Posted

 how will i know the visibility of parent control :(

 

ne markup eda ey ..

Posted

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>

Posted

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)
    {
    }

 

 

 

 

 

Posted

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

Posted

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

Posted

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 ...

Posted

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

Posted

you mean working? 

 

 petti chusa, adhi ventane lopaliki vachi result teskochestundi

 

Posted

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

×
×
  • Create New...