Hello i trying to change ddl.selectedIntex=1,i see that value of ddl is changing but event ddl.change did't work.
$("#ctl00_PlaceHolderMain_AccountsDDL_ddlAccounts")[0].selectedIndex = 1;
This just set the value but i need to run the .change function
any ideas? I try this in console all works thx,meybe you know how can i do this by passing the PostData to the HttpWebRequest?
I try this in console all works thx,meybe you know how can i do this by passing the PostData to the HttpWebRequest I added my code
HttpWebRequest postRequest = (HttpWebRequest)WebRequest.Create("https://www.com/Pages/current.aspx");
PostString += "ctl00$PlaceHolderMain$AccountsDDL$ddlAccounts=" + Number + "&";//Here
byte[] byteArray = Encoding.ASCII.GetBytes(PostString);
postRequest.ContentLength = byteArray.Length;
Stream newStream = postRequest.GetRequestStream();
newStream.Write(byteArray, 0, byteArray.Length);
newStream.Close();
HttpWebResponse postResponse = (HttpWebResponse)postRequest.GetResponse();
__doPostBack('ctl00_PlaceHolderMain_AccountsDDL_ddlAccounts','');or$("#ctl00_PlaceHolderMain_AccountsDDL_ddlAccounts").change()