Tags down


Easy way to AJAX WebControls

By : user73803
Date : July 28 2020, 06:00 PM
this will help Check out the RadAjax control from Telerik - it allows you to avoid using UpdatePanels, and limit the amount of info passed back and forth between server and client by declaring direct relationships between calling controls, and controls that should be "Ajaxified" when the calling controls submit postbacks.
code :

Share : facebook icon twitter icon

ajax MaskedEditValidator isValidEmpty disables all webcontrols

By : René Eisenhower
Date : March 29 2020, 07:55 AM
like below fixes the issue i have found a remarkable way (so i think ! ) to get around it so you can now use the Validation attribute - isValidEmpty=false ( current field is a required field )
but now you can still cancel form when field is empty even though it is not available by default
code :
   function setTDisableValidation() {
        setTimeout('disableValidation()', 3500);

    function disableValidation() {
        var myVal = document.getElementById('insertDate_MskValidator');
        myVal.disabled = true;
        myVal.ValidEmpty = true;


            <asp:TextBox ID="TBXinsertDate" runat="server" ToolTip="insert date" Width="76px" onblur="setTDisableValidation();">

Unable to cast object of type 'System.Web.UI.WebControls.Button' to type 'System.Web.UI.WebControls.LinkButton'

By : Randall Elijah Cabal
Date : March 29 2020, 07:55 AM
may help you . Problem and sollution should be pretty straightforward.
In your code you cast your button to a LinkButton:
code :
<asp:Button runat="server" Id="BtnApprove"

                                CommandArgument='<%# Eval("DocID") %>' Text="Aprrove"

Telerik.WebControls.RadComboBox v/s System.Web.UI.WebControls.DropDownList

By : Krishna reddy
Date : March 29 2020, 07:55 AM
will be helpful for those in need After the statement radcb1 = radcb2 you have two variables referencing (pointing to) the same RadComboBox instance (the one radcb2 initially pointed to).
So the following line radcb2.Items.Clear() will only clear the items of that instance.

Unable to cast object of type 'System.Web.UI.WebControls.CommandEventArgs' to type 'System.Web.UI.WebControls.DataListCo

By : Philip Junker
Date : March 29 2020, 07:55 AM
wish helps you DataListCommandEventArgs is derived from CommandEventArgs. So if the event arg was of the correct subtype it should cast. I think problem is you are trying to use the same handler for different types of events. (I didn't see the handler for the Link button you mentioned).
You can do that, but then you have to test the argument subtype. One way to do that is with the TryCast operator. For example:
code :
Sub CommandEventHandler(sender as Object, e as CommandEventArgs)
    Dim e1 as DataListCommandEventArgs = TryCast(e, DataListCommandEventArgs)
    If e1 IsNot Nothing Then
        DataListEventAHander(sender, e1)
    End if
    ' Repeat for other subtypes as needed.
End Sub

Sub DataListEventHandler(sender as Object, e as DataListCommandEventArgs) 
    ' Your code for DataListEvents
End Sub
Sub EventSubTypeHander(sender as Object, e as EventSubTypeArgs) handles object.EventSubType
   ' Event specific code here.
End Sub

Unable to cast object of type 'System.Web.UI.WebControls.Button' to type 'System.Web.UI.WebControls.DropDownList'

By : blueblado
Date : March 29 2020, 07:55 AM
seems to work fine The error message is pretty straightforward: an attempt to cast a Button control to DropDownList has occurred & throwing InvalidCastException.
One of the button control has OnClick event handler which bound to SendMail method:
Related Posts Related Posts :
  • 'Procedure or function 'GenerateTest' expects parameter '@questionnaireID', which was not supplied.'
  • Can ASP.NET target .net core?
  • What are effective options for embedding video in an ASP.NET web site?
  • Visual Studio "Unable to start debugging on the web server. The web server did not respond in a timely manner."
  • Tracking state using ASP.NET AJAX / ICallbackEventHandler
  • ASP.NET Display SVN Revision Number
  • ASP.NET URL Rewriting
  • How do I define custom web.config sections with potential child elements and attributes for the properties?
  • Are Multiple DataContext classes ever appropriate?
  • Triple Quotes? How do I delimit a databound Javascript string parameter in ASP.NET?
  • ASP.NET built in user profile vs. old style user class/tables
  • Bandwith throttling in IIS 6 by IP Address
  • ASP.Net Custom Client-Side Validation
  • Checklist for IIS 6/ASP.NET Windows Authentication?
  • shadow
    Privacy Policy - Terms - Contact Us © voile276.org