Scripts in PDF courseware not working correctly...?

5 posts, 0 answers
  1. R2
    R2 avatar
    63 posts
    Member since:
    Sep 2007

    Posted 09 Jan 2009 Link to this post

    Hi,

    I posted several threads in various Telerik AJAX forums and have not had replies to all.  I will try posting here since I'm using the courseware and encountering problems doing the lessons.  Hopefully, I'm in the right place now :)

    1. Unable to see the Tool tips in the column header of the RadGrid
      PDF pg 459

          Protected Sub RadGrid1_ItemCreated(ByVal sender As ObjectByVal e As GridItemEventArgs)     
              'Check for GridHeaderItem if you wish tooltips only for the header cells        
              If TypeOf e.Item Is GridHeaderItem Then     
                  Dim headerItem As GridHeaderItem = TryCast(e.Item, GridHeaderItem)     
                  headerItem("CreditRating").ToolTip = "CreditRating"    
                  headerItem("PreferredVendorStatus").ToolTip = "PreferredVendorStatus"    
                  headerItem("ActiveFlag").ToolTip = "ActiveFlag"    
              End If     
          End Sub  
       
    2. Unable to drag and drop rows within a RadGrid
      PDF pg. 475

          Protected Sub RadGrid1_RowDrop(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridDragDropEventArgs)     
              Dim item As GridDataItem = TryCast(e.DraggedItems(0), GridDataItem)     
              RadAjaxManager1.Alert("Dropped VendorID: " + item.GetDataKeyValue("VendorID"))     
          End Sub 
    3. Unable to delete records in a RadGrid
      PDF pg. 472

      [T-SQL]     
      DELETE FROM Purchasing.[Vendor] WHERE [VendorID] = @VendorID  

      Javascript error:

      Line: 7  
      Char: 62099  
      Error: Sys.WebForms.PageReuestManagerServerErrorException: The transaction ended in the trigger.  The batch has been aborted.  Vendors cannot be deleted.  They can only be marked as not active  
       
    4. Item insert code not working
      PDF pg. 477

          Protected Sub RadGrid1_ItemInserted(ByVal source As ObjectByVal e As GridInsertedEventArgs)     
              If e.Exception <> Nothing Then     
                  e.ExceptionHandled = True    
                  e.KeepInInsertMode = True    
          
                  DisplayMessage("Product cannot be inserted. Reason: " + e.Exception.Message)     
              Else     
                  DisplayMessage("Product inserted")     
              End If     
          End Sub  

     

    The compilation error I get using the code in #4 is:
    Compiler Error Message: BC30452: Operator '<>' is not defined for types 'System.Exception' and 'System.Exception'.

    Also, within the code, there are squiggly lines under "DisplayMessage".  The caption is "Name 'DisplayMessage' is not declared".  I understand how to declare a variable, but what should I declare it as?


    Thanks very much for all help,
    r2

  2. Ivo
    Admin
    Ivo avatar
    689 posts

    Posted 19 Jan 2009 Link to this post

    Hello,

    We have already replied in the other threads, but just to mention here that we will be addressing your reports in the next update of the courseware.

    Thank you for the feedback.

    Kind regards,
    Ivo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    16 posts
    Member since:
    Nov 2007

    Posted 04 Mar 2009 Link to this post

    When is the next release of the courseware?  The scripts for my ASP.NET Membership Database Configuration did not work properly - and when I get to page 178 to test the "admin / @password" login, I get:

     

    Server Error in '/ActiveSkillUI' Application.

    Cannot open database "ActiveSkill" requested by the login. The login failed.
    Login failed for user 'CAMPBELL-Z4ELGN\ASPNET'.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException: Cannot open database "ActiveSkill" requested by the login. The login failed.
    Login failed for user 'CAMPBELL-Z4ELGN\ASPNET'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SqlException (0x80131904): Cannot open database "ActiveSkill" requested by the login. The login failed.
    Login failed for user 'CAMPBELL-Z4ELGN\ASPNET'.]
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
       System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35
       System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144
       System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
       System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
       System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
       System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
       System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
       System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
       System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
       System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
       System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
       System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
       System.Data.SqlClient.SqlConnection.Open() +122
       System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +87
       System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +221
       System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +815
       System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +105
       System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42
       System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78
       System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +60
       System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +119
       System.Web.UI.WebControls.Login.AttemptLogin() +115
       System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    
     
  5. Kevin
    Kevin avatar
    16 posts
    Member since:
    Nov 2007

    Posted 09 Mar 2009 Link to this post

    Why is this now set to closed?
  6. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Mar 2009 Link to this post

    Hello Kevin,

    This is a generic error which occurs when your connection string is configured to use windows authentication but the ASPNET user is not a valid SQL login. Please check this forum post for additional info. Additionally you can check this KB article from microsoft and this blog post.

    Regards,
    Albert
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017