|
Man, this is a asp.net forum . but i think your problem is in windows application.
So by mistake you have posted the right question into the wrong forum.
Niladri Biswas
|
|
|
|
|
Hi All,
I have a TreeView control which is populated dynamically.
1. Can anybody please advice me how to get the Event of Parent node click not Collapse or expand buttons of the nodes. As my submenu should appear when I click on the complete parent node itself not only on Collapse or expand buttons.
2. How can I get a node at client script which is populated dynamically. How can I retrieve its values in Javascript.
3. And my nodes should appear as Div or button. Means + and - symbols should not be separate from the nodes. And parent nodes background should be different from Child nodes background.
Can anybody please help me in doing this code. If it is not possible by using TreeView I am ready to do it by using Div or ImageButtons also. If posible give me a small code snippet for both Div or Treeview.
Thanks,
Md Abdul Aleem.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
modified on Wednesday, June 24, 2009 8:55 AM
|
|
|
|
|
Hi Abdul,
(1)indian143 wrote: As my submenu should appear when I click on the complete parent node itself not only on Collapse or expand buttons
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
{
TreeView1.SelectedNode.Expand();
}
(2) As far as second question please clarify more what you want at client side.
(3)
indian143 wrote: parent nodes background should be different from Child nodes background
Use something like:
TreeView1.ParentNodeStyle.BackColor = Color.Black;
TreeView1.ParentNodeStyle.ForeColor = Color.White;
TreeView1.RootNodeStyle.ForeColor = Color.Yellow;
himanshu
|
|
|
|
|
Hi Himanshu,
That is done but it is working only on subnodes but not on parent node items. Can I catch any of the parent nodes clicking event.
One more draw back is user needs to click on only open and collapse buttons, in anyways can I make the same happens when I click on a partiluar node itself.
One more thing is I want the tree should occupy the whole Div instead of some part on it.
Can I do these things in anyway by using TreeView control.
Thanks a Lot,
Md Abdul Aleem.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Hi Abdul,
The code i have given to you is working perfectly on my side for both parent nodes and subnodes.
Please post your code so that i can look where you are exactly facing the problem.
himanshu
|
|
|
|
|
which book is good 4 asp.net ??
|
|
|
|
|
|
Minaxi 4m India wrote: gfdgdfgd
Please Don't Spam on this site.
Thank You !
|
|
|
|
|
trying a test drive ?
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
Minaxi 4m India wrote: which book is good 4 asp.net ??
Link For You
|
|
|
|
|
|
try here [^]
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
A Very Good Friend Wrote a nice Book for Beginners
http://www.wrox.com/WileyCDA/WroxTitle/Beginning-ASP-NET-3-5-In-C-and-VB.productCd-047018759X.html[^]
Hope it helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
i have a content page with some masterpage. content page is having a dropdownlist that is bound with datasource on (!page.ispostBack). when page get posted back dropdownlist data losts. if i bound it again on page load then indexchanged event is always fired for fist item. any help will be appreciated
|
|
|
|
|
First find the asp:Content for dropdownlist and then check that EnableViewState property of the asp:Content is true.
Also check that EnableViewState property of ContentPlaceHolder in master page. if its false then set true.
|
|
|
|
|
Set the AutoPostBack="True" of dropdown
Niladri Biswas
|
|
|
|
|
I like to use the Init event to load data instead of the page load event, it helps to solve this kind of problem.
|
|
|
|
|
Can any one give me the code sample for 3 tier archeitecture and ado.net for oracle.
my email id : nhsubash@gmail.com
Subash
|
|
|
|
|
See down
himanshu
|
|
|
|
|
nhss wrote: Can any one give me the code sample for 3 tier archeitecture and ado.net for oracle.
Come with some specific problem, not like this way !
For this is question , Google is the best Answer
|
|
|
|
|
Why do you more specific on database ? Only the connection string will be changing if you change the database and remaining all are same. Try to learn the basics then you would design whatever the database. Here you start[^]
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
|
hello everyone i m gopal and i need help to start learning asp.net three tire ,
if anyone can send me example of three tire i will be thankful
and if anyone can guide me than thanks in advance
gopal pandya
|
|
|
|
|
Search google
You will find lots of stuff
himanshu
|
|
|
|
|
Check the Thread of a Person who Posted before you. There is an Answer there and stop posting without goggling
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|