weird behaviors

M

Mark Denardo

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?
 
M

Mark Denardo

(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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top