473,395 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1421
(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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Catherine Lynn Wood | last post by:
I have a page that I just developed using a combination of stylesheets and div layers. It uses a 'tab' style system placing four div layers in the same space with visibility 'hidden' and position...
5
by: news | last post by:
I've a site: http://gto.ie-studios.net/products.php that looks perfectly fine in Windows whether with IE or Firefox 1.0. But when viewed in the Linux version of Firefox 1.0, images get misaligned...
0
by: Robert Neville | last post by:
The form elements present a major challenge in IE. Apparently, IE renders the legend element in odd way. In IE, the legend falls in the middle of the fieldset border; the background falls outside...
82
by: nobody | last post by:
Howdy, Mike! mikecoxlinux@yahoo.com (Mike Cox) wrote in message news:<3d6111f1.0402271647.c20aea3@posting.google.com>... > I'm a C++ programmer, and have to use lisp because I want to use >...
3
by: Nick Goloborodko | last post by:
Hi, I've been having a really weird problem with required field validator. Here's the detailed description of the problem: I have originally been developing my web application on Windows XP...
5
by: (PeteCresswell) | last post by:
Tabbed control with four subforms - one each tab. When I have everything set to "Browse" mode (i.e. all controls in all subforms locked), two of the subforms do not show on the screen. As soon...
10
by: alsmeirelles | last post by:
Hi all, I Have run this test: Private Sub test() Dim d As Double Dim f As Single Dim output As String d = 8888888888888.8887
3
by: SevDer | last post by:
Hi All, I am recently experiencing a weird problem. I don't know what exactly is the cause of the problem but here is my scenario and symptoms. First of all here is my architecture 1. I have...
9
prn
by: prn | last post by:
Hi folks, I've come across a couple of the oddest behaviors that I have ever seen and wondered if anyone else has had anything similar, and if so, whether you have any suggestions for me. I warn...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.