1
Answer

Help on setting index of dropdownlist.

mathieusgirl2002

mathieusgirl2002

20y
1.7k
1
I am missing something in this private void DataGridUserManagementID_ItemDataBound(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) The index is not set approprately in my dropdownlist. Can someone help me with the coding. string strStore ListItemType oType = ((ListItemType)e.Item.ItemType); if ((oType == ListItemType.EditItem)) { Response.Write("The ItemDataBound Command has been fired"); DropDownList listStore = ((DropDownList) e.Item.FindControl("ddlStores")); strStore = ((DropDownList)(e.Item.FindControl("ddlStores"))).SelectedItem.Text; Response.Write (strStore); // listStore.SelectedIndex = Convert.ToInt32(strStore); listStore.Items.IndexOf(listStore.Items.FindByText(strStore)); Response.Write(listStore.Items.IndexOf(listStore.Items.FindByText(strStore))); } You can feel free to email me at mcupryk@sun.net.bb if you need more information. Thank you Sincerely, Matt and MacsGirl
Answers (1)
0
Master  Billa
NA 2.7k 0 15y
Hi

Actually you can't connect directly , you need do that like way.that;s means you need register the .NET DLL in the mat lab, then only you access class and methods from the.NET framework min mat lab.

Just follow this steps

http://www.codeproject.com/KB/bugs/CS_to_Matlab.aspx?msg=3139813

Then you can write simple code read co ordination and make bitmap image and display graph in win form

thank you
Accepted
0
hai phan
NA 4 0 15y

Hi
Thank you for your ideas. However, I cannot do what you guide.
Please show me  a simple example step by step. For example, I have a function y=ax2+bx+c. a,b,c are the numbers  inputed in three textboxes in windows form of C#. Then after clicking  a button, I'll have the graphic of above function.
If possible, forward to me following address:pvhai56@yahoo.com.vn
Thank you
hai phan