protected void userimgbtn_Click(object sender, ImageClickEventArgs e)
        {
            userup.Visible = true;
            //     string query = "select userid as userid ,username as username from aspnet_users";
            Listmohsiin.DataSource = showuser("select userid as userid ,username as username from aspnet_users");
            Listmohsiin.DataBind();
            //SqlConnection connection = Connection_Manger.getConnection();
            //SqlCommand command = new SqlCommand(query, connection);
            //try
            //{
            //    connection.Open();
            //    SqlDataAdapter dp = new SqlDataAdapter(command);
            //    DataSet ds = new DataSet();
            //    dp.Fill(ds);
            //    Listmohsiin.DataSource = ds;
            //    Listmohsiin.DataBind();



            //    //SqlDataReader reader = command.ExecuteReader();
            //    //if (reader.HasRows)
            //    //{


            //    //}
            //    //else
            //    //{
            //    //    //admessage.Text = "no ad is posted by you";
            //    //    MessageBox.Show("no ad is posted by you");

            //    //}
            //}
            //catch (Exception ex)
            //{

            //}
        }
 protected void DataPager1_PreRender(object sender, EventArgs e)
 {
     Listmohsiin.DataSource = showuser("select userid as userid ,username as username from aspnet_users");
     Listmohsiin.DataBind();
 }