473,657 Members | 2,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?
Sep 26 '06 #1
1 1433
(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**@markdenar do.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="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?


Sep 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1628
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 absolute. They are inside of another parent div container with position set relative so that as I make the objects visible, I can also set their position to relative so they redraw the container size. The parent div is inside of a table cell...
5
4010
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 and breaks between then appear. Why the two different behaviors on the same browser but different OS's? Anyway, that page as an example DOES W3C HTML validate AND W3C CSS validate as well. So, there's no ERRORS per se, but I suppose there's...
0
1734
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 the border. When one set position: relative, IE chokes and does not always displays the legend element; or pushes it off the page. Negative margins do not help either since the background falls outside the border. In addition, the behavior...
82
5339
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 > emacs. I've gotten a book on lisp, and I must say lisp is the ugliest > looking language syntax wise. What is up with this: (defun(foo()). (DEFUN FOO () NIL) > What were the lisp authors thinking? Why did Stallman use lisp in
3
2001
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 SP2 under IIS5 with .NET framework V1.1.4322. I have had a couple of RequiredFieldValidator, to ensure that the user enter the username and password on the login form and avoid unnessesary postbacks.
5
1403
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 as I make all of the controls unlocked and set the subforms to be able to add records, the forms appear in the two offending tabs - but they act like there is nothing in their .RecordSource (i.e. they are positioned at the "New" record). There...
10
2155
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
3612
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 a main framework (DNN) build in VB.NET which I try to prevent changing things there (simply not changing it) 2. I have a virtual directory under this which I develop in C#.
9
2314
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 and apologize to any brave souls that the following description will be long -- it has to be -- but if you feel brave enough to read it, I will thank you. Both of the phenomena seem to involve version dependencies. I had been using XP with Office...
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.