|
Hi all,
I have got 3 dropdownlist, one would be interrelated with other.
On a particular selection of the 1st dropdownlist, the 2nd and 3rd dropdown list should be enabled, if not only the 2nd dropdown list must be enabled.
In the selected index change of my dropdownlist 2, my 3rd one is getting disabled, even though on particular selection of my 1st dropdownlist is enabling both(which shouldn't happen).
I'm using Page.RegisterStartup script for enabling / disabling the items. The below code is written in the selected index change of 2nd dropdownlist(without the bold text, my 3rd dropdownlist is always disabled", though my 1st dropdownlist is enabling it.)
string focusScriptSetVal = "<script language='javascript'>" + " document.getElementById('" + 1stdrpdwnlist+ "').disabled=false;document.getElementById('" + 2nddrpdwnlist.UniqueID +"').disabled=false;document.getElementById('" + 3rddrpdwnlist+"').disabled=false;;</script>";
Page.RegisterStartupScript("focusScriptSetVal", focusScriptSetVal);
Knowledge grows when shared
|
|
|
|
|
me2crazy wrote: document.getElementById('" + 1stdrpdwnlist+ "').disabled=false
Shouldn't that be 1stdrpdwnlist.ClientID ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Thanks Christian Graus, the 1st dropdownlist works fine, the problem is with the 3rd dropdown list.
Knowledge grows when shared
|
|
|
|
|
hi,
I want to see a form from another form.
I have the code:
System.Windows.Forms.Form fact1= new Form();<br />
fact1.ShowDialog();
I see the form but I can't see the controls.
My form shows empty but I have controls on it.
Please help.
Thanks
|
|
|
|
|
WhiteGirl23 wrote: My form shows empty but I have controls on it.
No, it doesn't. You are creating an instance of the base Form class, not your derived class, called Form1, or whatever. This base form has no controls on it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
CAn I design my forms in c# in dreamweaver or any other software?????
|
|
|
|
|
|
Depends what you mean. Can you create a screenshot ? Yes. Can you create something and plug it into the C# forms designer ? No. Can you create a flash UI and host it in a Winform ? Yes. Can you create a Flash UI and then write C# code that interacts with elements in the form ? I don't think so.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
I have not much idea abt dese Mr. Graus but I have made an application which is functional and but the intyerface looks dull I want a prettier interafce and yeah the application is not web based so which software I should use Can I use Dream weaver and make ma forms look better........
|
|
|
|
|
• The Program should search for the Staff with the Surname and Firstname entered in the file and display its Course
• If not found, an appropriate Message should be displayed and the focus should return to the Surname.
Please Note that the program should work with any file used. (YOU DO NOT KNOW WHAT IS INSIDE THE LISTBOX!)
-- modified at 1:23 Sunday 13th May, 2007
|
|
|
|
|
A pretty impressive first post. Too bad you didn't take the time to read this[^] before you started typing.
/ravi
|
|
|
|
|
This is obviously an assignment. You need to do your own homework.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
hi all,
i need help in mixing interactive 2D controls in 3D cube.
i watched alot of samples about that but i didn't understand it
because i'm very new in WPF.
i need way to do that using ZAM3D or blend.
thanks in advance.
|
|
|
|
|
Hi ,
I am having a problem runing .NET remoting when I use IPC channel , if I use same code and change channel to TCP in my configuration file then it runs fine,
And my problem is under IPC channel , i cant connect simultaneously my two clients to remoting server , but if I change channel to TCP , it works fine with 2 or more channels ?
Can I user ports with IPC chanle for my multiple clients ?
Thanks,
ZINK
|
|
|
|
|
I read a Xml file and I show it on a Windows Form. The problem is that the Xml file has a relationship between two tables named "Clusters_ClusterRoute", but I dont know how can I show this relation on the Windows Form. Can you help me?
|
|
|
|
|
when i dock my listbox to the left\right it doesn't take up all the left, and leaves a gap down (see image).
it wasn't like this before...so...any suggestions?
Screenshot from visual studio (2005)
|
|
|
|
|
i have the same result. I think it's normal
-------------------
You can go a long way with a smile. You can go a lot farther with a smile and a gun. (C) Al Capone
|
|
|
|
|
then it sucks =\
no way to fix it?
|
|
|
|
|
Under some circumstances a listbox tries to have a height corresponding to
an integral number of text lines (and fails at this when the hor scrollbar appears).
The best way to observe this is to load the listbox with a lot of text lines...
|
|
|
|
|
uhh, did you see the screenshot? cause..uhh..this doesn't seem to answer my question (or is it just me?)
|
|
|
|
|
yes
it answers the " and leaves a gap down " part.
|
|
|
|
|
Hello,
I'm working on a bank program for my C# course at the Uni. I have this "Save" button on my bank UI which saves everything on the form to a XML file called "Account_Data.xml"
My question is, how do you update records in the xml file, if there is an record in there already with the name Account ID.
This is the xml file format:
< ? xml version = " 1.0 " ? >
< Accounts >
< Account ID = " 123456 " >
< FirstName > Latheesan < / FirstName >
< SecondName > Kanes < / SecondName >
< Balance > 0 < / Balance >
< OverDraftLimit > 50 < / OverDraftLimit >
< FullAddress > My Address Here < / FullAddress >
< / Account >
< / Accounts >
Im very new to C# with XML, so im still getting used to this. I'd appreciate it if someone could point me in the right direction.
|
|
|
|
|
Hi. The XmlDocument class allows you to search and modify Xml nodes using the Document Object Model ( DOM ), which is a standard interface for working with XML. The language used to search XML is called XPath. The w3schools site is the best IMO for learning about any standard stuff like this, http://www.w3schools.com/xpath/[^] is the starting point for XPath. Basically you use SelectSingleNode or SelectNodes to find the node you want, then you can modify it, remove it, or insert a node just after it.
msdn.microsoft.com is the best place for info on the XmlDocument class.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
hi
i have two table :
t_books(bookID(PK),bookName) -> master
t_sessions(sessionID(PK),bookID(FK),sessionName) -> details
i wrote this code to show hirarical data in treeView :
SqlConnection con = new SqlConnection(Properties.Settings.Default.Database1ConnectionString);<br />
SqlCommand cmd = new SqlCommand();<br />
SqlDataAdapter adapter = new SqlDataAdapter();<br />
cmd.CommandText = "select * from t_books";<br />
cmd.Connection = con;<br />
adapter.SelectCommand = cmd;<br />
DataSet ds = new DataSet();<br />
<br />
SqlCommand cmd2 = new SqlCommand();<br />
SqlDataAdapter adapter2 = new SqlDataAdapter();<br />
cmd2.CommandText = "select * from t_sessions";<br />
cmd2.Connection = con;<br />
adapter2.SelectCommand = cmd2;<br />
<br />
adapter.Fill(ds, "t_books");<br />
adapter2.Fill(ds, "t_sessions");<br />
DataRelation dataRelation;<br />
DataColumn dc1 = ds.Tables["t_books"].Columns["bookID"];<br />
DataColumn dc2 = ds.Tables["t_sessions"].Columns["bookID"];<br />
dataRelation = new DataRelation("Relation1", dc1, dc2);<br />
ds.Relations.Add(dataRelation);<br />
<br />
TreeNode book;<br />
TreeNode session;<br />
<br />
foreach (DataRow row in ds.Tables["t_books"].Rows)<br />
{<br />
book = new TreeNode(string.Format("{0}", (string)row["bookName"]));<br />
book.Tag = row;<br />
<br />
ds.Tables["t_sessions"].DefaultView.RowFilter = "bookID="+ row["bookID"];<br />
foreach (DataRow sessionRow in ds.Tables["t_sessions"].Rows)<br />
{<br />
session = new TreeNode(string.Format("{0}", (int)sessionRow["bookID"]));<br />
session.Tag = sessionRow; <br />
book.Nodes.Add(session);<br />
}<br />
this.treeView1.Nodes.Add(book);<br />
}
but in runTime, My data in treeView don't filtered and in each node of books(master), show all of sessions(details) and not filter, how to solve my problem ?
|
|
|
|
|
I think this line
foreach (DataRow sessionRow in ds.Tables["t_sessions"].Rows)
is wrong, but as you didn't post this as a reply to last week's post where I guess I helped you get this far and I deleted the example program I had written, I now have to did through last weeks' messages to find out what it should be.
At any rate, you need to foreach across the DataView, not the Table.Rows
-- modified at 17:56 Sunday 13th May, 2007
Ah, the example, once I found it has
foreach ( System.Data.DataRowView petrow in ds.Tables [ "Pet" ].DefaultView )
|
|
|
|