Server Error in '/' Application.

There is no row at position 0.

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.IndexOutOfRangeException: There is no row at position 0.

Source Error:


Line 92: 
Line 93:                 'if a row is returned, then the user exists, set the  variables for the user
Line 94:                 titlelength = userdataview3.ToTable.Rows(0)("LengthTitle")
Line 95:                 LinkTitle.ClientSideEvents.KeyUp = "function(s,e){var ele = s.GetText(); lblInfo.SetText(ele.length + '/" & titlelength & "');}"
Line 96:                 LinkTitle.ClientSideEvents.Init = "function(s, e) { SetMaxLength(s, " & titlelength & "); }"

Source File: C:\thumbnails\v2_thumbnail_linky_enter.aspx.vb    Line: 94

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2140448
   System.Data.DataRowCollection.get_Item(Int32 index) +22
   v2_thumbnail_linky_enter.Page_Init(Object sender, EventArgs e) in C:\thumbnails\v2_thumbnail_linky_enter.aspx.vb:94
   System.Web.UI.Control.OnInit(EventArgs e) +97
   System.Web.UI.Page.OnInit(EventArgs e) +14
   System.Web.UI.Control.InitRecursive(Control namingContainer) +142
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +416


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0