weird behaviors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Denardo

    weird behaviors

    I recently upgraded to VS2005 and converted some projects from 1.1 to 2.0
    and am seeing two weird behaviors I can't seem to resolve, and am wondering
    if they are bugs or something I'm forgetting to do or add.

    (issue 1)

    When setting up a panel control with border settings:
    <asp:Panel Backcolor="Burl yWood" Borderstyle="Ri dge"
    BorderColor="Bl ack" BorderWidth="1p x" ... Runat="server" />

    When I load the page, the border settings do not show, unless I resize
    the browser. Anyone experienced this one or see something I'm missing?

    (issue 2)

    If I preload a Textbox control with text such as:

    protected void Page_Load(objec t sender, EventArgs e)

    {

    TextBox1.Text = "abc";

    }

    protected void Button_Submit_C lick(object sender, EventArgs e)

    {

    string s = TextBox1.Text;

    }

    And then add more text manually by typing something like "xyz".
    Then I click a Submit button and if I read the text in the Textbox control
    it reads only "abc", instead of "abcxyz" as I might expect. But if I don't
    pre-load any text and just type "xyz" into an empty Textbox control, then
    when read in code, I get "xyz" as expected. Anyone seen this problem
    before, or see what my problem is?


  • Mark Denardo

    #2
    Re: weird behaviors

    (issue 2) solved - Brain freeze on this one - I forgot to put my preloaded
    text in a (IsPostBack) block.

    Still would like help on issue 1 though. Thanks


    "Mark Denardo" <mark@markdenar do.netwrote in message
    news:3-qdnUurfs7t-YTYnZ2dnUVZ_red nZ2d@starstream .net...
    >I recently upgraded to VS2005 and converted some projects from 1.1 to 2.0
    >and am seeing two weird behaviors I can't seem to resolve, and am wondering
    >if they are bugs or something I'm forgetting to do or add.
    >
    (issue 1)
    >
    When setting up a panel control with border settings:
    <asp:Panel Backcolor="Burl yWood" Borderstyle="Ri dge"
    BorderColor="Bl ack" BorderWidth="1p x" ... Runat="server" />
    >
    When I load the page, the border settings do not show, unless I resize
    the browser. Anyone experienced this one or see something I'm missing?
    >
    (issue 2)
    >
    If I preload a Textbox control with text such as:
    >
    protected void Page_Load(objec t sender, EventArgs e)
    >
    {
    >
    TextBox1.Text = "abc";
    >
    }
    >
    protected void Button_Submit_C lick(object sender, EventArgs e)
    >
    {
    >
    string s = TextBox1.Text;
    >
    }
    >
    And then add more text manually by typing something like "xyz".
    Then I click a Submit button and if I read the text in the Textbox control
    it reads only "abc", instead of "abcxyz" as I might expect. But if I
    don't pre-load any text and just type "xyz" into an empty Textbox control,
    then when read in code, I get "xyz" as expected. Anyone seen this problem
    before, or see what my problem is?
    >
    >

    Comment

    Working...