ASP.Net?
-
I've a comobbox and i'm fill this comobbox like this: =========================================================================================== oleDbDataAdapter1.Fill(dataSet31); dpdhead.DataSource = dataSet31.Tables[0].DefaultView; dpdhead.DataTextField = dataSet31.tbacdes.ac_headColumn.ToString();//Display Heads dpdhead.DataValueField = dataSet31.tbacdes.ac_idColumn.ToString();// Heads Ids dpdhead.DataBind(); =========================================================================================== and than i want to get Comobbox select item head id. But when i select the comobbox value page refresh, first time it return head id but when i again select a value i got an javascript error like this: ==================================== Error: Invaild Syntax Code: 0 ==================================== And comobox stop working. and page doesn't work. Please help me out in this matter (Urgent)
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
I've a comobbox and i'm fill this comobbox like this: =========================================================================================== oleDbDataAdapter1.Fill(dataSet31); dpdhead.DataSource = dataSet31.Tables[0].DefaultView; dpdhead.DataTextField = dataSet31.tbacdes.ac_headColumn.ToString();//Display Heads dpdhead.DataValueField = dataSet31.tbacdes.ac_idColumn.ToString();// Heads Ids dpdhead.DataBind(); =========================================================================================== and than i want to get Comobbox select item head id. But when i select the comobbox value page refresh, first time it return head id but when i again select a value i got an javascript error like this: ==================================== Error: Invaild Syntax Code: 0 ==================================== And comobox stop working. and page doesn't work. Please help me out in this matter (Urgent)
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=2119873#xx2119873xx
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
I've a comobbox and i'm fill this comobbox like this: =========================================================================================== oleDbDataAdapter1.Fill(dataSet31); dpdhead.DataSource = dataSet31.Tables[0].DefaultView; dpdhead.DataTextField = dataSet31.tbacdes.ac_headColumn.ToString();//Display Heads dpdhead.DataValueField = dataSet31.tbacdes.ac_idColumn.ToString();// Heads Ids dpdhead.DataBind(); =========================================================================================== and than i want to get Comobbox select item head id. But when i select the comobbox value page refresh, first time it return head id but when i again select a value i got an javascript error like this: ==================================== Error: Invaild Syntax Code: 0 ==================================== And comobox stop working. and page doesn't work. Please help me out in this matter (Urgent)
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
Please don't cross post, or post again when your original question is still visible. That's just annoying. Also, as has been said to you, try to come up with intelligent subject lines. What makes this dataSet31, and not dataSet30 ? Please tell me your page doesn't contain over 30, numbered data sets ? Are you injecting any jscript into the page ? It's very odd that the auto generated script would create an error.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Please don't cross post, or post again when your original question is still visible. That's just annoying. Also, as has been said to you, try to come up with intelligent subject lines. What makes this dataSet31, and not dataSet30 ? Please tell me your page doesn't contain over 30, numbered data sets ? Are you injecting any jscript into the page ? It's very odd that the auto generated script would create an error.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Well, thanks and sorry. Actually I didn't understand what happend to me. I want to load data in comobox from Database and than get the selecteditem id. example ===================================== Department Header //display member : Student fee Department Id // value member Id: 4 ==================================== and on selectedindex_change function i want to get department id, while page refresh. I have successfulyy fill the comobox but when i change value in comobox first time it give the department id while page reload, but after that page got an error (Invaild syntax) and page stop working, comobox stop working. Please help in this. Thanks and my best regards,
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
Well, thanks and sorry. Actually I didn't understand what happend to me. I want to load data in comobox from Database and than get the selecteditem id. example ===================================== Department Header //display member : Student fee Department Id // value member Id: 4 ==================================== and on selectedindex_change function i want to get department id, while page refresh. I have successfulyy fill the comobox but when i change value in comobox first time it give the department id while page reload, but after that page got an error (Invaild syntax) and page stop working, comobox stop working. Please help in this. Thanks and my best regards,
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
The setting of the data source ( the code you posted ) should only occur the first time, that is, in a Not Page.IsPostback block. However, not doing this would typically cause you to lose your selection, not for the page to blow up. Something strange is going on, here. I think you need to post some more of hte code.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )