User Profile

Collapse

Profile Sidebar

Collapse
dyte
dyte
Last Activity: Aug 26 '11, 03:24 PM
Joined: Jul 28 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • No I did not, beside this, I have done that and the problem is solved;
    ----------------------
    Code:
    UserControl[] ucs = new UserControl[3] = {uc1, uc2, uc3);
    foreach(UserControl uc in ucs)
    {
        foreachforeach (Control c in uc.FindControl("PnlTab1").Controls)             
        {                 
           if (c is TextBox)                     
           ((TextBox)c).Enabled = true;
    ...
    See more | Go to post
    Last edited by Frinavale; Jul 28 '11, 12:59 PM. Reason: Added code tags. Please post code in code tags in the future.

    Leave a comment:


  • dyte
    started a topic How to loop for controls, in multi user controls?

    How to loop for controls, in multi user controls?

    I want to ask if I can loop in my controls, like textbox, dropdown list or etc, in which they are in a page's user control. The scenario is that, assume I have a page called 'Page.aspx' and I have 3 user controls in that page(uc1, uc2 and uc3) and an asp panel (named PnlTab1) to contain all these controls in each user control. I am using that code to reach my controls:

    ------------
    Code:
    UserControl uc1, uc2, uc3;
    ...
    See more | Go to post
    Last edited by Frinavale; Jul 27 '11, 06:55 PM. Reason: Added code tags.

  • thank you again Frinavale, i think this may work..
    See more | Go to post

    Leave a comment:


  • Thanks you both Sundeep M and Frinavale. But what I need is to check these numbers with postbacks. Let me explain;
    If I use the condition if(!IsPostBack) , there is only one comparing till I refresh the page. But what I need is that, when I clicked the button, it must compare the label1 with textboxt, write the result to label2 and then refresh the page.(In this case, I think PostBack may be useful because it changes my random number, and so...
    See more | Go to post

    Leave a comment:


  • no one?! please, what is wrong here?
    See more | Go to post

    Leave a comment:


  • dyte
    started a topic Comparing a Random Value with an entry problem..

    Comparing a Random Value with an entry problem..

    Hi all, i have a simple application which i couldnt run correctly. My codes;
    --------------------------------------------------------
    Code:
    using System;
    using System.Collections.Generic;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    
    protected void Page_Load(object sender, EventArgs e)
    {
        Random r = new Random();  
        int myRandom = r.Next(1000, 9999);
    ...
    See more | Go to post
    Last edited by Frinavale; Nov 8 '10, 02:26 PM. Reason: Please post code in [code] ... [/code] tags.

  • dyte
    replied to How to connect Telnet using .NET?
    in .NET
    OK, I think I have done it by using
    >> SendKeys.send(" ");
    command.
    Now, the aim is to reach all the vlans and so finally the MACs.
    Thank you all again..
    See more | Go to post

    Leave a comment:


  • dyte
    replied to How to connect Telnet using .NET?
    in .NET
    OK, it works thank you. But now the problem is it works even if I enter incorrect password..!?

    If I use process method and than connect to
    "telnet 10.51.12.1"
    then in the process, first I need to press a key combination like <shift+a> and than <username> and <password>..
    I mean, when i connect telnet by process method and run it, then it opens in its own command window. Then I have to press...
    See more | Go to post

    Leave a comment:


  • dyte
    replied to How to connect Telnet using .NET?
    in .NET
    First of all thank you for answering and I am sorry for about answering so late..
    But, can you say me how can I handle overloading proccess problem ie. login and password ... with your method?
    See more | Go to post

    Leave a comment:


  • dyte
    started a topic How to connect Telnet using .NET?
    in .NET

    How to connect Telnet using .NET?

    Hello,

    I need to connect to telnet. For eg, assume that, I entered in command window;

    C:\telnet 10.41.xx.xx

    How to do this in C#?

    Thanks anyway..
    See more | Go to post
No activity results to display
Show More
Working...