Hi,
In my application im trying to get quoteno from database and incrementing it when user clicks on new page button incrementing by 1.But when I debug the code got exception input string was not in correc format
Page_load
{
lblMsg.Text = "";
chgId = Request.QueryString["ID"];
if (!IsPostBack)
{
SetInitialRow();
btnAdd.Visible = false;
if (txtquoteno.Text == "")
{
string Connection = System.Configuration.ConfigurationManager.ConnectionStrings["test"].ConnectionString;
SqlConnection cn = new SqlConnection(Connection);
cn.Open();
string ID_sel = "SELECT TOP 1 QuoteNo from Attdas_ProjectPriceQuote order by id desc ";
SqlCommand cmdsel = new SqlCommand( ...
Go to the complete details ...