all groups > visual studio .net ide > february 2004 >
You're in the

visual studio .net ide

group:

VS 2003 problem


VS 2003 problem Mark Goldin
2/5/2004 2:20:19 AM
visual studio .net ide:
I have a simple project with one Web form.
When I select any control on the form or add a new and show Properties
Window of the selected control that Property Windows does not have
Event button on it. Also, don't know if that is related to the Property
Window problem
but it looks like no dynamically attached event handlers are firing when I
select a control
in the Browser.
So when I click on the node in the tree nothing is happening:
this.TreeView1.Attributes.Add("onselectedindexchange", "myfunction();");

Same practically code works fine on my home computer.

Thanks





Re: VS 2003 problem (rahulk NO[at]SPAM easypack.bz)
2/26/2004 1:04:57 AM
Hello Mark
I am having a similer type of problem, I have a treeview and on the selectedindexchange event of the treeview I want to execute some code from the vb codebehind file and a javascript function which is there in the HTML file.I am using VB.NET as the language. Now If I want to execute both these codes I need to click the nodes twice. I had Added the attributes to the treeview. something like this
TreeView1.Attributes.Add("onselectedindexchange", "Showme();")
Also tried
TreeView1.Attributes.Add ("onselectedindexchange", "javascript:Showme();")
but it doesnot work. So as a solution to this What I did is i added a Button added attribute of the same function to it. Now I want to call the Button_click(ByVal Sender as System.Object,ByVal e as Event.Args) event. What Arguments should I pass in order to execute this button_click() event. I mean to say is what would be the Object and what will be the event args. Please Help ASAP. It very Urgent.
Regards & Thanks
Rahul
Rahul@easypack.bz

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Re: VS 2003 problem (rahulk NO[at]SPAM easypack.bz)
2/26/2004 1:10:14 AM
Hello Mark
I am having a similer type of problem, I have a treeview and on the selectedindexchange event of the treeview I want to execute some code from the vb codebehind file and a javascript function which is there in the HTML file.I am using VB.NET as the language. Now If I want to execute both these codes I need to click the nodes twice. I had Added the attributes to the treeview. something like this
TreeView1.Attributes.Add("onselectedindexchange", "Showme();")
Also tried
TreeView1.Attributes.Add ("onselectedindexchange", "javascript:Showme();")
but it doesnot work. So as a solution to this What I did is i added a Button added attribute of the same function to it. Now I want to call the Button_click(ByVal Sender as System.Object,ByVal e as Event.Args) event. What Arguments should I pass in order to execute this button_click() event. I mean to say is what would be the Object and what will be the event args. Please Help ASAP. It very Urgent.
Regards & Thanks
Rahul
Rahulk@easypack.bz

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
AddThis Social Bookmark Button