.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

Problem trying to use AnimationExtender to animate some buttons

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
Hello there,I'm kind of an AJAX newbie. Trying to develop something that, seems to me, should be a pretty easy task. However, i'm not really sure how to accomplish it. Basically, i have to do some button menu. But, the final user wants this menu to be cool and trendy, so some animation is required. The point is that, as one of the buttons in the menu gets the mouse over, it should display an expanding animation. Also, the rest of the buttons in the panel menu should shrink and blur. As far as i know, using the toolkit animation extender i could easily make the button expand using the "OnMouseOver" tag, and the opposite "OnMouseOut" tag to restore the button state . However,  the animationExtender links the animations defined on it  to the component refered in the "TargetControlID" tag. That means f.e., if i have button1, button2, and button3, on the "OnMouseOver" tag of the animationExtender that targets button1, i cant refer to button2 and button3 to make them display an shrink animation.How could i get around this?thanks and sorry for my broken english:)

View Complete Post

More Related Resource Links

Problem with "Edit" and "Delete" buttons in gridview!

Hi everyone. I have problem with the buttons Edit and Delete in Gridview for very long time and i really need help about it. So i have gridview and sqldatasource. First i try to make this buttons manually and as you will see in sqldatasource 5 and 6 i have these buttons my records show up but the buttons not working. After that i was advised to do it automatically with gridview smart tag options and Generate columns - this is what i did in sqldatasource7 and gridview7. But both ways i need to change the statements with my own because that what they create not works. So select statement works. Now the error that i get in both ways is the same:The GridView 'GridView(the number could be 5,6 or 7)' fired event RowEditing which wasn't handled.See how looks my page:Now here's my code in aspx:<%@ Page Language="C#" Title="Specific Search in Phone Directory" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="serv

Problem with Delete and Edit buttons

Hi everyone. I have problem with the buttons Edit and Delete in Gridview for very long time and i really need help about it.  So the when i click edit i get in edit mode and when click update the values in the row i was changing disappear but only in the gridview. When check in the Database nothing happens. The delete button not works at all, i mean when click on it only refresh the table. If see something wrong in my code please help. I'm not sure where the problem is.See how looks my page: Now here's my code in aspx: <asp:SqlDataSource ID="SqlDataSource7" runat="server" ConnectionString="<%$ ConnectionStrings:ThisIsMyConnection2 %>" OldValuesParameterFormatString="original_{0}" SelectCommand = "SELECT * FROM [Resident] WHERE (([FNAME] + ' ' + [LNAME] LIKE '%' + @FANDLNAME + '%'))" DeleteCommand="DELETE FROM [Resident] WHERE [MobileNum] = @original_MobileNum" UpdateCommand="UPDATE [Resident] SET [FNAME] = @FNAME, [LNAME] = @LNAME, [HomeNum] = @HomeNum, [OfficeNum] = @OfficeNum, [FaxNum] = @FaxNum WHERE [MobileNum] = @original_MobileNum" > <DeleteParameters> <a

AsyncPostback problem with Dynamically created Buttons

Hi guys, I'm creating a table which contains some string and a delete button. What I want to do is to remove the row with ajax postback whenever i click the related delete button. The very first asyncpostback works without any problem. After first asyncpostback i have to click two times to a delete button in order to delete one row. I have traced it with debug, when I click delete button for the first time, it does not enter the event method of the button. However at the second time it triggers the event of the button. Here is the code below.page cs file: protected void Page_Load(object sender , EventArgs e) { if (!isLoggedIn()) { Response.Redirect("default.apsx", true); } else { PopulateAddresses(AddressZone.Controls); } } protected void PopulateAddresses(ControlCollection controls) { base.user.GetUserAddresses(); Literal table = new Literal(); Literal tableEnd = new Literal(); table.Text = "<table cellpadding=\"0\" cellspacing=\"0\"><tr><td style=\"width:130px;line-height:inherit\"><b>Bölge</b></td><td style=\"width:90px;line-height:inherit\"><b>Adres basligi</b></td&

Problem with radio buttons in a repeater


I can use the asp control and find the radio buttun in the code behind when a button is clicked but the user can select multiple buttons, or I can use an html input type radio and be able to select only one button of the group but not find it in the button's click event.  Is there a way to both be able to find the radio button AND have it di what it's supposed to - only allow one to be checked?

Help. Double-postback problem in different problem. Toggle buttons.


I am using a toggle button and when a button is clicked, the CSSclass is changed by checkign whether it is a 1 or 0.  if it is a 1(on) , it will be set to 0, if it is a 0, it will be set to a 1.

Only 1 postback occurs on each click , and thats how a button is toggled on or off.  In Internet explorer, this is working great.  However, in FireFox and in Google Chrome, something odd is happening!  When I click teh buttons, it is causing a double-postback.  This double-postback cancels out the first postback which was to turn on the button.

Anyone know why my code is causing a double postback?


WPF converter and radio buttons switching from codebehind problem


Hi everybody,


I have an UserControl which has some class as its DataContext. This class implements INotifyPropertyChanged. I have a property on this class, which is an enum binded to RadioButtons throught converter. In UserControl.xaml.cs I have registered a hotkey, that is circling the values of enum and I'm expecting to change the selection of RadioButtons as well. The binding is OK (Mode=TwoWays), notification runs also well, but...


... but: when I have the last RadioButton selected I'm not able to switch with hotkey to the first one.


The enum is binded like this:

<Utils:EnumBooleanConverter x:Key="EnumBooleanConverter"/>
<RadioButton IsChecked="{Binding Path=ActivityType, Converter={StaticResource EnumBooleanCo

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Gridview with Radio Buttons

As now, Radio buttons are HTML controls, I am not able to get it on server side. When user select any radio button and press submit, Control will not available at code behind, you can use "e.Item.FindControl" as it is not "runat='server'". I want ID "Primary Key" value for selected radio button. To achive this I took the help of Javascript. I wrote javascript function that sets the values of "Primary Key" in hidden field when user clicks on any radio button. Now when user clicks on Submit button, user can get selected value froim hidden field.

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Strange Photo upload problem


I'm working project it's live on shared hosting

we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder

the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin

twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere

on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck

thaks for your help in advance

ASP.Net Caching problem ??


I'm having a problem with an asp.net 3.0 application using a gridview to display data.  The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query.  For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user. 

This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string.  Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever.  Is this possible?

Any and all help will be much appreciated!!

Could some one tell me whats the Problem with this String Manipulation ??? C#.net



I store some values from code behind to a label which is Hidden !

<asp:Label ID="lbl_Hidden" runat="server" Visible = "false"></asp:Label>

and at the page load event i retrieve the value of the label & assign it to a string !

stringvalue = lbl_Hidden.Text;

Now i dont know why this manipulation does'nt work !

I've a character 'A' in the string and i'm unable to replace it with a space !

stringvalue.Replace(A, " ");

Wot do u think abt it ????

RaiseEvent problem


I have a parent page ProdView.aspx and two static UserControls, UC1 and UC2. Each UC is in an Ajax accordion pane and the accordion inside an updatepanel.

UC1 has a Gridview footer with couple of textboxes and a link button that fires an Add Row insert procedure. I want to Raise an event that will rebind the UC2 after the row insert in UC1.

First I created the sub delegate and event in UC1:

  • Public Delegate Sub MyRefresh(ByVal sender As Object, ByVal e As CommandEventArgs)
  • Public Event Refresh_UC1 As MyRefresh

In the same UC1 the Insert procedure that fires the insert and RaiseEvent:

Sub PricingGrid_Insert(ByVal sender As System.Object, ByVal e As EventArgs)
       Dim myConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString)
       Dim myCom As SqlCommand = New SqlCommand("AddRow", myConn)
       myCom.CommandText = "AddRow"
       myCom.CommandType = CommandType.StoredProcedure


Gridview Enable Selection Problem



I have a gridview with Enable selection and Enable Paging equals to TRUE.

I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.

The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.

Here is code behind of my gridview:

If e.Row.RowType = DataControlRowType.DataRow Then
                e.Row.Attributes("style") = "cursor:pointer"

                e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))

Problem making Role based Menu in MVC application



 I want to make Rolebase menu in MVC such that if user doesnot have permission for some action then that Action name shouldnot be shown in the Menu.

 I have used the code in the url(http://forums.asp.net/t/1566328.aspx) in my MVC application.My application is a Discussion Forum(in MVC) same functionality as in this forum forums.asp.net

 I have used Controllers for post, thread etc.In each controller there are some actions that are using [Authorize(Roles)] attribute

 but this coding does not count  those Actions in Controllers having Authorize attribute according to the url http://forums.asp.net/t/1566328.aspx 

 In the code, Authorize attribute is applied to Controller class, but my requirement is of Applying Authorize attribute to some actions in controller so that some are available for all users and  some links are available rolewise.Now what is the solution for that?



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