Java Mailing List Archive

http://www.junlu.com/

Subjects
Home
mod jk2 https
Donation of JAXP 1 3 Sources to Apache
R annoyances
RE: Finding out when the aspnet admin worker process has recycled
Favorite Linux Distribution
eigenvalues of a circulant matrix
Apache Install
Reachin apache from outside
Ant should have an ext directory
Warning: Documentroot doesn 't exist
Can this be Done?
RE: Multilanguage Application
RE: Simple Question On setting up Sub Domain site
Lack of independence in anova()
How to close connection instead of sending 403?
winning the case for ANT
Re: adding php
New Ant GUI 'Ant 's Nest '
Narrowing Down A Strange Problem
Ant Task: sshexec
R Graph Gallery : categorization of the graphs
I 've been hacked, I need some help please
RE: Anyone working with DotNetNuke?
RE: Exception Handling Opinion
hex format
RE: IIS stopped working :(
<for > Build Failed:problem
RE: Separation of Objects from Logic
RE: Tracking pages with long request execution time
sending email to multiple destination
Web Site
ant UI
Easy cut & paste from Excel to R?
Win32 Apache Restart
Improving Tasks
HELP! PLEASE!
RE: Adding Controls to a Page
read table
RE: ASPNET account doesn 't exist!
Best way to uninstall Apache2 on red hat
from win to linux how to web page
XMLParseException changes and creation of XMLLocator2
Re Post: rewrite backslash to forward slash
Target or macrodef?
Page display problem XPSP2
Authentication problems
Dynamic Dictionary Data Type?
Newbie unable access my www from outside
off topic question: Latex and R in industries
Conflict between xtable and Hmisc when using Sweave?
Very old problem without any new solution
mod rewrite help
Basic Authentication question
RE: Code Security
calling ant from java program
prevent double signing
Re: Controlling Copy/Paste/Print
Using R to illustrate the Central Limit Theorem
web server slow too much slow
access to user directories
Links
Home
Official R Project Site
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
RE: Adding Controls to a Page

RE: Adding Controls to a Page

2005-02-23       - By Tim Clamp
Reply:     <<     11     12     13     14     15     16     17     18     19  

Make sure to give your controls an id before adding them to the page and
insure that your controls are added in the same order each time.


Cheers,
Tim Clamp

-----Original Message-----
From: Boudreau, Duane [mailto:BoudreauD@(protected)]
Sent: Wednesday, February 23, 2005 3:32 PM
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page

We'll here's what I've decided to do.

I load the controls on the page (in the Page_Init() method) and add a
text box that contains the number of check boxes I am dynamically adding
to the page. On the post back I loop from 1 to textbox.value and check
to see if the Request["cbname" + x] is null. I can't think of anything
else and this seems to fix the problem.

D


-----Original Message-----
From: John Brathwaite [mailto:team@(protected)]
Sent: Wednesday, February 23, 2005 3:52 PM
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page

Duane, you're best to start with the simple controls on your page and
ensure
that their state is persisted, then add your code and other controls
incrementally until you find out what's causing the state to be lost.
Are
you able to take this approach?

Cheers
John

-----Original Message-----
From: Boudreau, Duane [mailto:BoudreauD@(protected)]
Sent: Thursday, 24 February 2005 2:08 a.m.
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page


I added code to enable view state enabled - no difference. Would it help
if I posted the entire aspx and cs files?

Duane

-----Original Message-----
From: John Brathwaite [mailto:team@(protected)]
Sent: Tuesday, February 22, 2005 6:01 PM
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page

Duane, do you have EnableViewState=true for your asp:textbox and other
controls?

Cheers
John

-----Original Message-----
From: Boudreau, Duane [mailto:BoudreauD@(protected)]
Sent: Wednesday, 23 February 2005 11:11 a.m.
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page


That's the thing - I'm not setting any values.

I am using checkboxes, which are not maintaining state and text boxes
which are not saving data that is entered.

Duane

-----Original Message-----
From: Thomas Johansen [mailto:aylar@(protected)]
Sent: Tuesday, February 22, 2005 4:53 PM
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page

Only set the e.g. the Text property on the initial load, NOT on the
postback;

if (!IsPostBack)
{
   someControl.Text = "Some Text";
}

- Thomas

-----Original Message-----
From: Boudreau, Duane [mailto:BoudreauD@(protected)]
Sent: Tuesday, February 22, 2005 10:25 PM
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page


I added the code to create the controls dynamically to the Page_Load()
method post back, and in the OnInit() method, but in both cases the data
is not being preserved.

What am I doing wrong?

Duane

-----Original Message-----
From: Joe Bradvica [mailto:JoeB@(protected)]
Sent: Tuesday, February 22, 2005 3:10 PM
To: aspnet-controlbuilding@(protected)
Subject: [aspnet-controlbuilding] RE: Adding Controls to a Page

You have to re-add the controls on postback.  The data is then
repopulated to the controls and you can access the data.

Joe B.


Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com

©2008 junlu.com - Jax Systems, LLC, U.S.A.