Click here to Skip to main content
15,914,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Which Server handles Request Pin
JMummery5-Mar-09 11:12
professionalJMummery5-Mar-09 11:12 
QuestionAutomatic templates for new items created in Visual Studio? Pin
Member 39190494-Mar-09 10:55
Member 39190494-Mar-09 10:55 
AnswerRe: Automatic templates for new items created in Visual Studio? Pin
Abhijit Jana4-Mar-09 17:40
professionalAbhijit Jana4-Mar-09 17:40 
AnswerRe: Automatic templates for new items created in Visual Studio? Pin
samdevloper5-Mar-09 22:34
samdevloper5-Mar-09 22:34 
AnswerRe: Automatic templates for new items created in Visual Studio? Pin
samdevloper5-Mar-09 22:36
samdevloper5-Mar-09 22:36 
QuestionAccessing web controls in a page from javascript code Pin
Lior Zat4-Mar-09 9:35
Lior Zat4-Mar-09 9:35 
AnswerRe: Accessing web controls in a page from javascript code Pin
Christian Graus4-Mar-09 9:47
protectorChristian Graus4-Mar-09 9:47 
QuestionTreeNodeWithInfo Pin
TerRO_GirL4-Mar-09 5:12
TerRO_GirL4-Mar-09 5:12 
Hello everyone ,
I have a treeview with special nodes (i wanted to store extra information in them) inheriting TreeNode
public class TreeNodeWithInfo : TreeNode
{.....
}

When i add chils , i do it like this :
TreeNodeWithInfo tnGroup = new TreeNodeWithInfo("sdkh", 1);
       TreeView1.Nodes.Add(tnGroup);
      ...

But after a button click , when i try to acces the extra information by downcasting ,
protected void Run_Click(object sender, EventArgs e)
    {
    ...
    ManageTree((TreeNodeWithInfo) TreeView1.Nodes[0]);
     ...
     }
i get a invalid cast exception . The TreeView1.Nodes[0] still has the right information (the one correspongind to the base class , the TreeNode ) but it seems that it's not an instance of TreeNodeWithInfo anymore ..
if i do this in  Run_Click 
<pre>  Response.Write(TreeView1.Nodes[0] is  TreeNodeWithInfo);
i get a "False" . but if i do the same thing in Page_Load , i get True ...

Can anyone help me out ?

Thank You !

AnswerRe: TreeNodeWithInfo Pin
TerRO_GirL4-Mar-09 5:14
TerRO_GirL4-Mar-09 5:14 
AnswerRe: TreeNodeWithInfo Pin
Viral Upadhyay4-Mar-09 8:02
Viral Upadhyay4-Mar-09 8:02 
GeneralRe: TreeNodeWithInfo Pin
TerRO_GirL4-Mar-09 8:04
TerRO_GirL4-Mar-09 8:04 
GeneralRe: TreeNodeWithInfo Pin
Viral Upadhyay4-Mar-09 8:12
Viral Upadhyay4-Mar-09 8:12 
QuestionRe: TreeNodeWithInfo Pin
Jörgen Andersson4-Mar-09 10:00
professionalJörgen Andersson4-Mar-09 10:00 
AnswerRe: TreeNodeWithInfo Pin
TerRO_GirL4-Mar-09 10:34
TerRO_GirL4-Mar-09 10:34 
QuestionHow to update Content of Exel sheet [modified] Pin
Member 46590014-Mar-09 3:09
Member 46590014-Mar-09 3:09 
AnswerRe: How to update Content of Exel sheet Pin
Jörgen Andersson4-Mar-09 9:39
professionalJörgen Andersson4-Mar-09 9:39 
Questionhow to use the chromeless player to play the video? Pin
keyur satyadev4-Mar-09 1:23
keyur satyadev4-Mar-09 1:23 
AnswerRe: how to use the chromeless player to play the video? Pin
N a v a n e e t h4-Mar-09 1:28
N a v a n e e t h4-Mar-09 1:28 
Questioninstalling visual source safe Pin
thapaswi reddy4-Mar-09 1:06
thapaswi reddy4-Mar-09 1:06 
AnswerRe: installing visual source safe Pin
N a v a n e e t h4-Mar-09 1:07
N a v a n e e t h4-Mar-09 1:07 
GeneralRe: installing visual source safe Pin
thapaswi reddy4-Mar-09 1:15
thapaswi reddy4-Mar-09 1:15 
AnswerRe: installing visual source safe Pin
Christian Graus4-Mar-09 9:45
protectorChristian Graus4-Mar-09 9:45 
GeneralRe: installing visual source safe Pin
thapaswi reddy4-Mar-09 19:32
thapaswi reddy4-Mar-09 19:32 
QuestionWhat is Web Service Software Fectory?? Pin
mr_muskurahat4-Mar-09 1:01
mr_muskurahat4-Mar-09 1:01 
AnswerRe: What is Web Service Software Fectory?? Pin
Yusuf4-Mar-09 3:14
Yusuf4-Mar-09 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.