.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to show/hide gif image when button click in asp.net

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :ASP.Net

hi friends,

How to show/hide gif image when button click in asp.net

View Complete Post

More Related Resource Links

ReportViewer Calendar button Click does not show calendar


I have a reportviewer on a page which is grabbing a report from a report server. the page is basically just a dropdownlist and a reportviewer control. The problem I have is that in the report the user have to provide the dates for teh report. The reportviewer automatically adds the textbox for the date entry and a calendar icon in front of it so the user can select the date. if I look at this page  in FireFox, when you click on the calendar button created by the reportviewer, the calendar control show up momentrily and dispappears. If you look at the same page in IE 7.0 nothing happens other than the page appears to be submitted. Does any body have any ideas on how to go about troubleshooting this bug?



How to show a progressbar in button click in wpf?

I want to read the large data from a database in a read button click event. while reading the data i want to show a circlular progress bar  or any status bar on the window. I tried so many samples. I am enabling a progress bar in read button click but the progress bar is coming on the window after the data is read from the database and filled in textboxes. But my requirement is not that i want to show a progress bar whenever the user clicks on read button and want to disable the progress bar after reading the data. can u please suggest me a code for this in wpf?

image button click in listview with scriptmanager

 I am using scriptmanager in masterpage and my imagebutton click event is not being found in code behind and my javascript is not working and no events are firing. In fact, the imagebutton does not change the mouse icon to a hand when hovering... help!  <asp:UpdatePanel ID="upTabControl" runat="server" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="tabControlScriptManagerTabStrip" /> <asp:PostBackTrigger ControlID="scriptManagerTabStripMultiPage" /> <asp:AsyncPostBackTrigger ControlID="ctrl_List_View_Images1$lv_Items_Images" /> <asp:AsyncPostBackTrigger ControlID="ContractDocumentUpload1" /> </Triggers> <ContentTemplate> <telerik:RadTabStrip ID="tabControlScriptManagerTabStrip" runat="server" SelectedIndex="0" Skin="Web20" MultiPageID="scriptManagerTabStripMultiPage" AutoPostBack="True" OnTabClick="RadTabStrip1_TabClick"> <Tabs> <telerik:RadTab Text="Blog" runat="server" MultiPageID="scriptManagerMultiPag

Javascript in Datalist .... on click of Button Show details in Another DIV

Hello Experts My Question is how to Set / call javascript in a Datalist , Where to define / Add Attrbutes for that / My Functionatilty requires on click of a button i have to show details in another DIVThanks ... Any Code Example is Much appreciated .. Thanks

show modalpopup extender in radio button click.



I have a radio button list and it is populating data from database.

I want to show a modal popup extender when someone clicks a specific value in the radio button list.

For example:

display the modal popup when radiobuttonlist.value=="13".

is this possible??

Loading please wait image show hide



I am trying to implement the loading please wait image funtionality while controls refersh on the page. Here are steps I have taken:

1. Added the image to the .net solution file in the image folder.
2. Added a div with the hidden class that holds the image source on the webform.

Image loads hidden by default and I am trying to show it when any postback or partial post back occurs. There are several controls like dropdowns, checboxes, gridview etc and links in the gridview that could take a few moments to load so I want to display the loading please wait while they reload after selections are made. All Controls exist in the update panel. I can't figure out how to show the image and hide it again when controls are reloaded. I am trying to add to this existing jQuery, my challenge is events occur after the document has been loaded so I need to add Ajax events to this query to show hide the loading please wait image. Here is what I have so far

//Dialog box settings

$(document).ready(function() {

    // $("mytest").dialog({
        title: "   Test",
        resizable: false,
        modal: true,

slide show without button click



i wish to make a slide show of the images in my wpf application with fade in and fade out effect and that too automatically i.e without button click event. I am using the C# for programming.

Can any one guide me how can i do this??



Image button Click event is Not fiering after migrating from 3.5 to 4.0 frame work



I am facing a problem.my image button Click event is not firing after i migrate it from 3.5 to 4.0.It is working fine in 3.5.

I have page on which there is jquery flexigrid and html button to refresh data of flexgrid on basis of input provided through dropdown.

When i go to first time on  page and click on Image button it fires the Click event and do the job as.But when i click on html button to refresh new data or just refresgh data and click image button then it is not fiering the click event.I dont have any idea ..where i am wrong .

Please Guide me for this ....

thanks in advance...

show/hide ribbon button



I hope I am posting this in the correct area. :-)

I am designing and customizing the moss 2010 for internet. I would like to make the ribbon bar on top invisible for all users. I know about the "HIDE RIBBON" under the "SITE ACTIONS", but the thing is, this button is not there?!

do I have to activate something special, so that I can see this option? any special site collection feature?

and the other question is, when I use this "HIDE RIBBON", is it stll visible for administrators and contributors?


thank you



Hide userControl inside the user controls' button Click



I created simple web usercontrol ABC with Yes/No button.In Current pages submit Button Click it popup's ABC user control. ABC user controls Yes button Click it executes some serverside function.But I want to close/hide this user control after the Yes button Click ( like confirm box in javascript).But its not hiding after setting the visible property to false. Is there any way to implement this...


Radio buttons, a label and an image button show twice inside update panel


I have an update panel with a set of 2 radio buttons, a label and an image button inside of it. There another set of 3 radio buttons that trigger the update panel. I got everything working but now the image button, label and set of 2 radio buttons inside the update panel show up twice when the radio button triggers are selected? Any ideas?

Show/Hide html button using jQuery not working in Firefox


I am stuck with a strange problem, which I am not able to figure out any logical reason behind it. The code given below works perfectly fine in IE 6.

    <form id="form1" runat="server">
    <a href="#" id="aShow">Show Text</a> <a href="#" id="aHide">Hide Text</a>
    <button id="ShowDiv">Show Div</button>
    <button id="HideDiv">Hide Div</button>
    <div id="dvText">
            Password Policy</h3>
            <li>Password should be a minimum of 6 Characters</li>
            <li>Password should contain both upper case and lower case characters</li>
            <li>Password should be a combination of both alpha and numeric</li>

Even the anchor links aShow and aHide works in Firefox (I am using version 3.6.12) but for some weird reason I can't get the button controls to show/hide the divText. The exact problem is when I click the "Show Div" button I can actually see the dvText div for few milli seconds but then it dissappears. Is this a bug in Firefox or am I doing anything wrong I have no idea..

datalist image slide show problem


hi friends

i am binding  images dynamically(back end)for a datalist .iam applying a slideshow for it .I am getting a problem to apply slideshow for dyanmically binded images.If the define in a div statically it working perfectly

for example pls go through my code below:

<script type="text/javascript">
$(document).ready(function() {
        fx: 'scrollLeft' // choose your transition type, ex: fade, scrollUp, shuffle, etc...

<div class="slideshow">
        <img src="images/30_dummy.jpg" width="200" height="200" />
        <img src="images/aquarius.gif" width="200" height="200" />
        <img src="images/star.gif" width="200" height="200" />
        <img src="images/the-proud-indian-flag-1.jpg" width="200" height="200" />

I above code works perfectly and the slide show e

Reporting services in 2008 r2 how to get a report in a print button click event in my c#.net page


how to  get a report in my c#.net page button lick event also steps to call a report from asp.net to reporting services


Thanks in advance

Gridview with Image Button


i have a gridview and i want to perform edit and delete with an image button

but unable to figure out the events and how i m gonna make my grid into edit mode ??

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                <asp:TemplateField HeaderText="S.No">
                        <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                <asp:TemplateField HeaderText="Edit">
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="Middle" 
                            ImageUrl="~/image/ico_edit.gif" CommandName="Edit" 
                            onclick="ImageButton1_Click" />
                <asp:TemplateField HeaderText="Delete">

how to set multiple button in single image


Hi friends,

I need to make multiple button in a single image in asp.net.

and need coding also for vb.net.

thanx in advance

change image button image


i am making a web form with a VB code behind.  on the form I have a down arrow imageButton that when pressed hides certain data.  what i want to do is change the button to an up arrow and vice versa whenever pressed.  i have both images loaded onto my project already.  any suggestions.

thank you

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend