1
Answer

upgrade file version

Madhu Patel

Madhu Patel

1y
76
1

Hi,

Can you tell me - How to upgrade the moment.js version in angular .

Thanks

Answers (1)
0
Suthish Nair
NA 31.7k 4.6m 14y
good, accept the post as answer that helped you.
Accepted
0
shally gupta
NA 15 0 14y
YES, its done. Thank u.
0
shally gupta
NA 15 0 14y
Do I need to set autopostback property of dropdownlist to TRUE?
0
Suthish Nair
NA 31.7k 4.6m 14y
do you set the property AutoPostBack = true for dropdownlist.
0
shally gupta
NA 15 0 14y
Yes, it is not working whereas on button click it is working fine. may be its due to postback of button. Can anybody help
0
Suthish Nair
NA 31.7k 4.6m 14y

Hi Shally,

What problem you are facing now. SelectedIndex event not firing?
0
shally gupta
NA 15 0 14y
plz. send me ur email id at s.mittall99@gmail.com
0
dheeraj pk
NA 164 41.7k 14y
Yes.. No problem..
0
shally gupta
NA 15 0 14y
hi, Thanx for the code. The code is working fine but it is giving the right output on button click not on combobox_selectedindexchanged. I am working on a project and i am facing so many problems can i contact u on ur personal id.
0
dheeraj pk
NA 164 41.7k 14y
Hi,
  SqlDataAdapter dp = new SqlDataAdapter("Select * from emp2 where ename ="+ name.SelectedItem.Text.Replace("'","''"), con);

Ename is varchar type.. so u must add single qoutes..


  SqlDataAdapter dp = new SqlDataAdapter("Select * from emp2 where ename ='"+ name.SelectedItem.Text.Replace("'","''")+"'", con);

** If problem exist still please send your code..(only filtering code..)
0
shally gupta
NA 15 0 14y
I updated my profile. Thanx for the information. I have made the changes but still it is not working;

private void BindData1()
{
SqlConnection con = new SqlConnection("Data Source=MANISH;Initial Catalog=AdventureWorks;Integrated Security=True");
SqlDataAdapter dp = new SqlDataAdapter("Select * from emp2 where ename ="+ name.SelectedItem.Text.Replace("'","''"), con);
DataSet ds = new DataSet(); dp.Fill(ds,"emp2");
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void name_SelectedIndexChanged(object sender, EventArgs e)
{
 BindData1();
 }

 Plz. help
0
dheeraj pk
NA 164 41.7k 14y
Hi,
     As per u code i think you want filter the gridview with Name(ename) .
     for example filter gridview with name =abc.. so where clause should like this...     ename='abc'.

  string whereclause="ename='"+name.SelectedItem.Text.Replace("'","''");
 // Call BindData Method
  BindData(whereclause);

Thanks
0
Suthish Nair
NA 31.7k 4.6m 14y

First of all what kind of name is "abc xyz". This is an open forum, so dont be hidden.

Update your correct name or the Admins here will block your id.
First create a sample sql statement in editor window with out an try that in your logic.

Or, refer article:

Have samples how to retrive rows and bind to gridview.

AJAX AutoCompleteExtender - Dropdownlist like behavior
0
shally gupta
NA 15 0 14y
Thanx, But i am unable to understand binddata(string whereclause). my Where clause is empname = combobox.item. so plz. explain me what to write in "whereclause"
0
dheeraj pk
NA 164 41.7k 14y
Hi,
     You can use Method Overloading..

private void BindData(string where clause)
        {
        string strQuery=string.Empty;
       if(!IsNullorEmpty(whereclause)
      {
          strQuery="
Select * from emp2 Where "+whereclause;
       } else
      {
    
  strQuery="Select * from emp2";
      }
        SqlConnection con = new SqlConnection("Data Source=MANISH;Initial Catalog=AdventureWorks;Integrated Security=True");
        SqlDataAdapter dp = new SqlDataAdapter(
strQuery, con);
        DataSet ds = new DataSet();
        dp.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
        }



// Call Bind Method Like This BindData("Where ename=youdatastring.Replace("'","''"));
0
Krishna Garad
NA 16.5k 6.2m 14y
In binddata() you are calling query like select * from Emp2 which will get again all the records drom db while in dropdown you are passing query with parameter but again you are calling BindData() which will again get all records. Better is create one another bind data method which will get record on specific empname.