none
index and length must refer to a location within the string. parameter name length c#

    Question

  •            
    UidTextBox1.Text = dto.AtharId.Substring(0,4);
    UidTextBox2.Text = dto.AtharId.Substring(4,4);     
    UidTextBox3.Text = dto.AtharId.Substring(8 4);

    Hi, i used substring retreive textbox from database table,.. wat my actual problem is if database table have value in that column its worked and retrieve the value but if that table column is null its shown error (index and length must refer to a location within the string. parameter name length c#) how can i rectify this error help me...

    Thank you


    Mankatha

    Friday, December 14, 2012 4:43 PM

Answers

All replies