Click here to Skip to main content
15,890,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: DropDown Problem Please help Pin
_AK_25-Apr-07 19:19
_AK_25-Apr-07 19:19 
QuestionHow to Obtain system information using client side script Pin
C.Sharp.Mage25-Apr-07 12:56
C.Sharp.Mage25-Apr-07 12:56 
QuestionDrop Down List Pin
hahii25-Apr-07 10:41
hahii25-Apr-07 10:41 
AnswerRe: Drop Down List Pin
guroo1325-Apr-07 12:19
guroo1325-Apr-07 12:19 
QuestionWalk all controls on a page [modified] Pin
Glenn E. Lanier II25-Apr-07 9:46
Glenn E. Lanier II25-Apr-07 9:46 
AnswerRe: Walk all controls on a page Pin
xibeifeijian25-Apr-07 23:28
xibeifeijian25-Apr-07 23:28 
GeneralRe: Walk all controls on a page Pin
Glenn E. Lanier II26-Apr-07 4:12
Glenn E. Lanier II26-Apr-07 4:12 
GeneralRe: Walk all controls on a page [modified] Pin
Glenn E. Lanier II26-Apr-07 6:36
Glenn E. Lanier II26-Apr-07 6:36 
Glenn E. Lanier II wrote:

When page is initially loaded, all controls are displayed properly. However, on postback, some controls are missed and appear blank (odd, as they have initial text, and the db.GetText method returns either valid text or ctrl.UniqueID surrounded by underscores).


Knowing this bit had something to do with it, after much head-banging/debugging, I realized that my literal was not listed in the .cs file.

My non-required fields displayed, as they are defined:
<label for="txtBillFirstName"><asp:label id="lblBillFirstName" runat="server"><asp:literal runat="server" id="litTextBillNameFirst">First Name:</asp:literal></asp:label></label><br />


but the [initially] required fields were not, defined as:
<label for="txtBillFirstName"><asp:label id="lblBillFirstName" runat="server">* <asp:literal runat="server" id="litTextBillNameFirst">First Name:</asp:literal></asp:label></label>

Apparently, you can have an asp:literal in an asp:label if it is the only thing in the label, but mixing text with a literal doesn't appear to work.

The initial text displayed on the page load, but not on a postback - not sure why even the * didn't show up. Some of the fields are only required based on selections made on the form, so if I cause the error conditions, those labels displayed as required, which threw me off track a little.

--G






-- modified at 12:41 Thursday 26th April, 2007
Questioncreate a webforn in runtime Pin
shabonaa25-Apr-07 7:58
shabonaa25-Apr-07 7:58 
AnswerRe: create a webforn in runtime Pin
guroo1325-Apr-07 8:27
guroo1325-Apr-07 8:27 
QuestionTrim Functionality in javascript Pin
siddisagar25-Apr-07 7:37
siddisagar25-Apr-07 7:37 
AnswerRe: Trim Functionality in javascript [modified] Pin
Venk25925-Apr-07 23:12
Venk25925-Apr-07 23:12 
QuestionGridView - How to show a date header? Pin
shapper25-Apr-07 7:33
shapper25-Apr-07 7:33 
QuestionHyperlink in Gridview Pin
hahii25-Apr-07 7:07
hahii25-Apr-07 7:07 
AnswerRe: Hyperlink in Gridview Pin
Chetan Ranpariya25-Apr-07 21:27
Chetan Ranpariya25-Apr-07 21:27 
Questionhow to bind the data from dropdownlist when dropdown is in datagrid or gridview Pin
praveenanand25-Apr-07 5:16
praveenanand25-Apr-07 5:16 
AnswerRe: how to bind the data from dropdownlist when dropdown is in datagrid or gridview Pin
xibeifeijian25-Apr-07 6:06
xibeifeijian25-Apr-07 6:06 
GeneralRe: how to bind the data from dropdownlist when dropdown is in datagrid or gridview Pin
xibeifeijian25-Apr-07 6:17
xibeifeijian25-Apr-07 6:17 
Questiononline quiz Pin
saravanan0525-Apr-07 4:49
saravanan0525-Apr-07 4:49 
AnswerRe: online quiz Pin
enjoycrack25-Apr-07 4:57
enjoycrack25-Apr-07 4:57 
AnswerRe: online quiz Pin
Colin Angus Mackay25-Apr-07 5:16
Colin Angus Mackay25-Apr-07 5:16 
QuestionRSACryptoServiceProvider Pin
guroo1325-Apr-07 4:38
guroo1325-Apr-07 4:38 
QuestionCombo box Event catching Pin
alok_2k325-Apr-07 4:18
alok_2k325-Apr-07 4:18 
AnswerRe: Combo box Event catching Pin
guroo1325-Apr-07 4:51
guroo1325-Apr-07 4:51 
AnswerRe: Combo box Event catching Pin
Arun.Immanuel25-Apr-07 5:02
Arun.Immanuel25-Apr-07 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.