Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Sonu T

@Sonu T
About
Posts
15
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • reading data into a windows form from a xml file
    S Sonu T

    hi all, i need some inputs on how to get data into a windows form textbox from an xml file.. for eg..i have a tree with a context menu attached to it. i also have a panel which display the properties of the node. when i click on node1 menuitem(called properties) the panel will appear showing the properties of the node. some of these properties have to be read from a xml file and they have to be displayed in the corresponding textbox. the xml file will have data for all the nodes.

    Sonu

    C# data-structures xml tutorial

  • How to use multiple panels in a windows form
    S Sonu T

    hello Senthil thanx for replying. i understand that there is no clarity in my query.... iam pasting my entire code here...hope this wud make better sense public partial class Form1 : Form { private System.Windows.Forms.ContextMenu mnuParentMenu = new System.Windows.Forms.ContextMenu(); private System.Windows.Forms.ContextMenu mnuChildMenu = new System.Windows.Forms.ContextMenu(); private MenuItem mnuStart; private MenuItem mnuStop; private MenuItem mnuProperties; private MenuItem mnuPropertiesC; private TreeNode m_OldSelectNode; private TreeNode node; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { mnuParentMenu.MenuItems.Add(0, mnuStart = new MenuItem("Start", new System.EventHandler(mnuStart_Click))); mnuParentMenu.MenuItems.Add(1, mnuStop = new MenuItem("Stop", new System.EventHandler(mnuStop_Click))); mnuParentMenu.MenuItems.Add(2, mnuProperties = new MenuItem("Properties", new System.EventHandler(mnuProperties_Click))); mnuChildMenu.MenuItems.Add(0, mnuPropertiesC = new MenuItem("Properties", new System.EventHandler(mnuPropertiesC_Click))); node = new TreeNode("Credit Files"); node.Tag = "ParentNodeMenu"; node.ContextMenu = mnuParentMenu; treeView1.Nodes.Add(node); node = new TreeNode("VIO Copy Process"); node.Tag = "ChildNodeMenu"; node.ContextMenu = mnuChildMenu; treeView1.Nodes[0].Nodes.Add(node); node = new TreeNode("Human Resources"); node.Tag = "ParentNodeMenu"; node.ContextMenu = mnuParentMenu; treeView1.Nodes.Add(node); node = new TreeNode("Secondary Batch Update Process"); node.Tag = "ChildNodeMenu"; node.ContextMenu = mnuChildMenu; treeView1.Nodes[1].Nodes.Add(node); node = new TreeNode("TimeDeposits"); node.Tag = "ParentNodeMenu"; node.ContextMenu = mnuParentMenu; treeView1.Nodes.Add(node); node = new TreeNode("PurgeProcess"); node.Tag = "ChildNodeMenu"; node.ContextMenu = mnuChildMenu; treeView1.Nodes[2].Nodes.Add(node); node = new TreeNode("SecondaryBatchUpdateProcess"); nod

    C# help tutorial question

  • How to use multiple panels in a windows form
    S Sonu T

    hello everybody!! iam generating a windows form which has a treeview at the left and a splitpanel at its right. the treeview consists of 3 parent nodes with 1 child node in each parent node. the parent nodes have a contextmenu with "Start" and "Stop" as menu items and child nodes have a contextmenu with "Properties" as menuitem. each of the menuitem has an OnClick event handler. what i want is, on clicking the menuitem of each of the child nodes, a different panel should be displayed each time. for this, i need to have 3 panels, one for each childnode. when one panel is being displayed, others should be hidden. my requirement is something similar to the WindowsExplorer, but iam not able to generate the desired o/p. Also, when i right-click on any of the node, the contextmenu is displayed, but after clicking the desired menuitem, the contextmenu just doesnt disappear. am i missing some property tat has to be set for the contextmenu to disappear after selecting a menuitem? this is a part of my code: mnuParentMenu.MenuItems.Add(0, new MenuItem("Start", new System.EventHandler(mnuStart_Click))); mnuParentMenu.MenuItems.Add(1, new MenuItem("Stop", new System.EventHandler(mnuStop_Click))); mnuChildMenu.MenuItems.Add(0, = new MenuItem("Properties", new System.EventHandler(mnuPropertiesC_Click))); TreeNode node = new TreeNode("Parent"); node.Tag = "ParentNodeMenu"; node.ContextMenu = mnuParentMenu; treeView1.Nodes.Add(node); node = new TreeNode("Child"); node.Tag = "ChildNodeMenu"; node.ContextMenu = mnuChildMenu; treeView1.Nodes[0].Nodes.Add(node); I would be thankful to all who wish to take some time and help me out.

    Sonu

    C# help tutorial question

  • Context menu on a TreeView
    S Sonu T

    hi all, i have a Tree with 3 modes. each tree has 1 child. i need to create 2 context menus;one for all the nodes and the other for all the children programmatically kindly help

    Sonu

    C# data-structures help

  • Retrieving data from SqlDataReader to a string array
    S Sonu T

    Hi all, i have written a query in SQL which returns multiple rows. i used a SqlDataReader to capture the result. what i want is to retrieve data from this DataReader and store it in a string array. this is how iam proceeding.. string[] arr = new string[10]; int index=0; while(reader.Read()) { object[] values = new object[reader.FieldCount]; reader.GetValues(value); vlaues.CopyTo(arr,index); index++; } this is not working and i know tat CopyTo cannot be used in this context, but i just dont have any idea what to use. I need to use this string array in an if-else condition where i need to compare each string in that array with a specified string and return a boolean value. i would be grateful to anybody who can help me in this regard. i have been working on this for almost 2 days without a breakthrough.

    Sonu

    C# database data-structures help

  • Encrypting a password!!
    S Sonu T

    hi everybody!! sorry for repostin this message...as i could not get any reply..ima doing this again.....i need this very badly guys...plz help me!!!:( iam using the create user wizard and login control provided in the Login tab of the toolbox in VS2005. iam using them for authentication in my application. the problem is, i need to know how the password is encrypted and stored in the aspnetdb database when a new user is created. Also i need to know how the Login control authenticates a user, i.e., how does it verify the password entered while authenticating. i would be grateful to anybody who can help me in this regard as my entire application depends on this. The reason why i want to know this is i need to encrypt a password using the same method and verify it with the encrypted password in the aspnetdb. This would give correct results only if both methods of encrypting are same. thanks in advance to anybody and everybody who replies to this query. plz help me guys!!!!!!!

    Sonu

    ASP.NET database help security

  • Encrypting a password
    S Sonu T

    hi everybody!! iam using the create user wizard and login control provided in the Login tab of the toolbox in VS2005. iam using them for authentication in my application. the problem is, i need to know how the password is encrypted and stored in the aspnetdb database when a new user is created. Also i need to know how the Login control authenticates a user, i.e., how does it verify the password entered while authenticating. i would be grateful to anybody who can help me in this regard as my entire application depends on this. The reason why i want to know this is i need to encrypt a password using the same method and verify it with the encrypted password in the aspnetdb. This would give correct results only if both methods of encrypting are same. thanks in advance to anybody and everybody who replies to this query. plz help me guys!!!!!!!

    Sonu

    C# database help security

  • encrypting algorithm used in Login Control
    S Sonu T

    hi everybody!! iam using the create user wizard and login control provided in the Login tab of the toolbox in VS2005. iam using them for authentication in my application. the problem is, i need to know how the password is encrypted and stored in the aspnetdb database when a new user is created. Also i need to know how the Login control authenticates a user, i.e., how does it verify the password entered while authenticating. i would be grateful to anybody who can help me in this regard as my entire application depends on this. The reason why i want to know this is i need to encrypt a password using the same method and verify it with the encrypted password in the aspnetdb. This would give correct results only if both methods of encrypting are same. thanks in advance to anybody and everybody who replies to this query. plz help me guys!!!!!!!

    Sonu

    ASP.NET database help algorithms security

  • how to know what controls are present in my web page?
    S Sonu T

    Hello Everybody first of all thanks to all those who have replied to my earlier queries. This site is of great use to me. I have created a web page login.aspx with the following controls in it: 5 labels, 3 textboxes, 1 radiobutton list,1 checkbox list and 1 button. now i need to write a code which would display either in another webpage or as a pop-up window, the details of the controls along with their ID's in login.aspx page. the desired output should be something like: Labels: 5 (Label1, Label2, Label3, Label4, Label5). Textboxes: 3 (TextBox1, TextBox2, TextBox3). RadioButtonList: 1 (RadioButtonList1). CheckBoxList: 1 (CheckBoxList1). Buttons: 1 (Button1). Hopeto get a response to my query. Thanks in advance to all those who wish to reply to my query and yes..thanks to this site. Iam relly grateful.

    Sonu

    ASP.NET database tutorial question

  • dynamically invoking a method in an assemly
    S Sonu T

    Thanx for the reply Guffa!! i tried using list directly, but its not working.. anyways i will try the other two ways you suggested... thanks once again....:-O

    Sonu

    ASP.NET help data-structures career

  • dynamically invoking a method in an assemly
    S Sonu T

    Thanx Stefan!! this is exactly what i wanted. iam gratefulto you....thanx once again..:-O

    Sonu

    C# help data-structures career

  • dynamically invoking a method in an assemly
    S Sonu T

    Hi everybody, I was given a job of developing a function which accepts 3 parameters i.e., an assembly path, a class with namespace, and a method in that assembly. the function should return the value that is being returned by the method that iam invoking(the one which we passed as a parameter) iam using system.reflection namespace. The problem is, i also need to pass arguements to the method that iam invoking but it is just not working the i way i want. this is how iam calling my function .. public int myreflect("..the path of the assembly..", "...calss name with namespace..say N.C1..","..method name..say M1..", 2,4) // 2,4 are the arguments iam passing to my method M1// This is how iam defining my function public int myreflect(string a, string b, string c, params int[] list) Everything is working except that i need to somehow extract the arguements which are in the param array i.e., list. I need to capture those arguments and store them in another array..say int[] args..and use this args in Invokemember function, as parameters to invoke my M1 method. I hope I have done a fair job in explaining my problem. A little help would be greatly appreciated. Thanks in advance....

    Sonu

    ASP.NET help data-structures career

  • dynamically invoking a method in an assemly
    S Sonu T

    hi everybody, i was given a job of developing a function which accepts 3 parameters i.e., an assembly path, a class with namespace, and a method in that assembly. the function should return the value that is being returned by the method that iam invoking(the one which we passed as a parameter) iam using system.reflection namespace. the problem is, i also need to pass arguements to the method that iam invoking but it is just not working the i way i want. this is how iam calling my function .. public int myreflect("..the path of the assembly..", "...calss name with namespace..say N.C1..","..method name..say M1..", 2,4) // 2,4 are the arguments iam passing to my method M1// this is how iam defining my function public int myreflect(string a, string b, string c, params int[] list) everything is working except that i need to somehow extract the arguements which are in the param array i.e., list. i need to capture those arguments and store them in another array..say int[] args..and use this args in Invokemember function, as parameters to invoke my M1 method. i hope i have done a fair job in explaining my problem. a little help would be greatly appreciated. Thanks in advance....

    Sonu

    C# help data-structures career

  • dynamically retrieving webcontrols in a web page
    S Sonu T

    i need to write a code which would retrieve the information about the webcontrols in a webpage. i need to know the count and also what type of controls. i know that System.Reflection namespace can be used. but i do not know what class to use. can anybody help??

    Sonu

    C# help question

  • getting information about webcontrlos in a webpage
    S Sonu T

    i need to write a code which would retrieve the information about the webcontrols in a webpage. i need to know the count and also what type of controls. i know that System.Reflection namespace can be used. but i do not know what class to use. can anybody help??:^)

    Sonu

    ASP.NET help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups