468,251 Members | 1,464 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,251 developers. It's quick & easy.

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="BurlyWood" Borderstyle="Ridge"
BorderColor="Black" BorderWidth="1px" ... 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(object sender, EventArgs e)

{

TextBox1.Text = "abc";

}

protected void Button_Submit_Click(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?
Sep 26 '06 #1
1 1278
(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" <ma**@markdenardo.netwrote in message
news:3-******************************@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="BurlyWood" Borderstyle="Ridge"
BorderColor="Black" BorderWidth="1px" ... 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(object sender, EventArgs e)

{

TextBox1.Text = "abc";

}

protected void Button_Submit_Click(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?


Sep 26 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Catherine Lynn Wood | last post: by
reply views Thread by Robert Neville | last post: by
82 posts views Thread by nobody | last post: by
3 posts views Thread by Nick Goloborodko | last post: by
5 posts views Thread by (PeteCresswell) | last post: by
10 posts views Thread by alsmeirelles | last post: by
3 posts views Thread by SevDer | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.