Showing posts with label folks. Show all posts
Showing posts with label folks. Show all posts

Saturday, March 31, 2012

Text Box Background Yellow at Runtime?

Folks,

I have a few text boxes that the backgrounds are set to white and appear white in the Visual Studio development widow. At runtime they appear as a brownish yellow.

What gives?

SethYou're viewing them on a Windows XP system.

Jeff
You might want to check this out:


Yellow textboxes

Text Box Loses Value On Page Load

Hi Folks...this is a wierd issue I've noticed and wanted to know of a) anyone
else has noticed this and b) if so, why does it happen.

On page load, I have a text box named me.txtMemberName. I enter data into
this field then submit the page. If I check the value of
me.txtMemberName.text during the page load event, it is an empty string. Now,
if I check this again in a later event, the value of .text has the correct
inforamation in it. This is causing me grief b/c, since this is a required
field, Page.IsValid is failing on page load. Any thoughts?

Thanks!

ClayFirst of all, I am assuming you have EnableViewState=True for this Control,
as well as for the Page. Second, can you post your Page.Load procedure so we
can see exactly what you do there and how you do it? This may help me and
others help you solve your problem. Thanks.
--
Nathan Sokalski
njsokalski@.hotmail.com
http://www.nathansokalski.com/

"Clayton Hoyt" <ClaytonHoyt@.discussions.microsoft.com> wrote in message
news:1D931693-325B-4116-901F-3D09CF24FE8C@.microsoft.com...
> Hi Folks...this is a wierd issue I've noticed and wanted to know of a)
> anyone
> else has noticed this and b) if so, why does it happen.
> On page load, I have a text box named me.txtMemberName. I enter data into
> this field then submit the page. If I check the value of
> me.txtMemberName.text during the page load event, it is an empty string.
> Now,
> if I check this again in a later event, the value of .text has the correct
> inforamation in it. This is causing me grief b/c, since this is a required
> field, Page.IsValid is failing on page load. Any thoughts?
> Thanks!
> Clay

Text Box Loses Value On Page Load

Hi Folks...this is a wierd issue I've noticed and wanted to know of a) anyon
e
else has noticed this and b) if so, why does it happen.
On page load, I have a text box named me.txtMemberName. I enter data into
this field then submit the page. If I check the value of
me.txtMemberName.text during the page load event, it is an empty string. Now
,
if I check this again in a later event, the value of .text has the correct
inforamation in it. This is causing me grief b/c, since this is a required
field, Page.IsValid is failing on page load. Any thoughts?
Thanks!
ClayFirst of all, I am assuming you have EnableViewState=True for this Control,
as well as for the Page. Second, can you post your Page.Load procedure so we
can see exactly what you do there and how you do it? This may help me and
others help you solve your problem. Thanks.
--
Nathan Sokalski
njsokalski@.hotmail.com
http://www.nathansokalski.com/
"Clayton Hoyt" <ClaytonHoyt@.discussions.microsoft.com> wrote in message
news:1D931693-325B-4116-901F-3D09CF24FE8C@.microsoft.com...
> Hi Folks...this is a wierd issue I've noticed and wanted to know of a)
> anyone
> else has noticed this and b) if so, why does it happen.
> On page load, I have a text box named me.txtMemberName. I enter data into
> this field then submit the page. If I check the value of
> me.txtMemberName.text during the page load event, it is an empty string.
> Now,
> if I check this again in a later event, the value of .text has the correct
> inforamation in it. This is causing me grief b/c, since this is a required
> field, Page.IsValid is failing on page load. Any thoughts?
> Thanks!
> Clay

Saturday, March 24, 2012

Text out of control!

Howdy,
Folks have commented on my site saying that when they adjust View->Text Size->Largest in their IE browser, a lot of the text on the page overlaps images and other elements on the page. I've tried this on other pages and the overlapping doesn't happen. How can I prevent it on my pages?

Thanks in advance
T. WanzPerchance are you creating your pages using GridLayout in VS.NET?
You may be right! I always thought that using FlowLayout made dragging and dropping controls onto the design not display how you'd like them.
Yea you can either nest everything in tables or use css to control the overflow or use css to explicitly declare text size so that the user isn't able to change it.
> I always thought that using FlowLayout made dragging and dropping controls onto the design not display how you'd like them.

Well, you cannot position controls inquite the same way as you can when creating desktop applications.

You see, the interface for desktop applications is based on the concept ofscreens. Each screen is like a canvas in Photoshop or Paint, where you can move elements around within a given canvas size. Wherever you move the elements, there they stay.

The interface for webpages however is based on the concept ofdocuments. Each page is like a document in Microsoft Word, where the "canvas" will grow as needed. A webpage can grow longer and longer, as can a Word document. Similarly, any element you place on the webpage will "flow" down the page, as more text is added to the top of the document. Further, any element will flow down the page if something above becomes larger (which is precisely what is occurring for you now).

For this reason, GridLayout is simply inappropriate for webpages. GridLayout treats webpages like screens, when in fact webpages act like documents.

Switch now to FlowLayout, and never ever switch it back. It will take you some time to get used to FlowLayout, but at least now you'll be creating webpages the correct way.