473,500 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

place holder

Hi

I have problem with placeholder.When user click on "retrive" button I am
creating the checkboxes and adding them to placeholder .And these are
displaying perfectly in my web page.
now user may update the checkboxes ocording to their wish.

when try to get whether checkbox is checked or not in another button(say
update) click its not working. i mean below code

For Each item In plh.Controls

If (TypeOf (item) Is System.Web.UI.WebControls.CheckBox) Then

Dim checkbox1 As System.Web.UI.WebControls.CheckBox = CType(item,
System.Web.UI.WebControls.CheckBox)

If checkbox1.Checked Then
Response.Write("This has been checked!")
Else
'Response.Write("This is not checked! ")
End If

End If
Next
if i copy this code in "retrive" button click its working but i need to get
the checkbox value or checked or not in "update" button click.placeholder
control does not contain anything if controle reaches the update button
clicked event.

pl advice me thanks
--
msrnivas - forum member
http://www.visual-basic-data-mining.net/forum
Nov 18 '05 #1
1 1554
The checkboxes need to be re-added when the 2nd button is clicked.
VIewstate only saves values, it doesn't save actual controls. Since you are
adding them dynamically the first time, you need to subsequently dynamically
add them. There's a free 3rd party control out there that does this for
you...for the life of me i can't remember or find it right now, but I think
I have a link at home...

Alternatively you could use Request.Form.

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"http://www.visual-basic-data-mining.net/forum" <si******@gmail.com> wrote
in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi

I have problem with placeholder.When user click on "retrive" button I am
creating the checkboxes and adding them to placeholder .And these are
displaying perfectly in my web page.
now user may update the checkboxes ocording to their wish.

when try to get whether checkbox is checked or not in another button(say
update) click its not working. i mean below code

For Each item In plh.Controls

If (TypeOf (item) Is System.Web.UI.WebControls.CheckBox) Then

Dim checkbox1 As System.Web.UI.WebControls.CheckBox = CType(item,
System.Web.UI.WebControls.CheckBox)

If checkbox1.Checked Then
Response.Write("This has been checked!")
Else
'Response.Write("This is not checked! ")
End If

End If
Next
if i copy this code in "retrive" button click its working but i need to get the checkbox value or checked or not in "update" button click.placeholder
control does not contain anything if controle reaches the update button
clicked event.

pl advice me thanks
--
msrnivas - forum member
http://www.visual-basic-data-mining.net/forum

Nov 18 '05 #2

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

Similar topics

0
1610
by: nag | last post by:
I want to add a multiple attachment place holder control in content management server 2002 template.Pl suggest how do I do this??????
3
1817
by: vitaly.tomilov | last post by:
I'm using an ASP.NET form to display data from my database table, and I'm doing it in the following way: XmlDataDocument doc = new XmlDataDocument(mydataSet); XPathNavigator nav =...
5
10870
by: andchoi | last post by:
I must be the dumbest ASP.NET 2.0 developer, because despite many different attempts, I am unable to resize a content place holder in the master page... Can anyone clue me in? It seems that the...
2
3012
by: J-T | last post by:
I am constructing an HTML text which I need to render in my ASP.NET page. string rssOutput = Posts.listPosts(Constants.WeblogSectionID); rssOutput contains html code and text.Then I create a...
2
3058
by: Brian | last post by:
Hello... I've created a master page in Visual Web Developer and it creates a content place holder. That's fine and all but I can't seem to resize it. Any suggestions? Thanks, Brian
0
1137
by: MasterChief | last post by:
I have a content place holder that is showing the summary of a sale. Is there a way to create a button in the content place holder that the person can click on to print just what is in the content...
1
4813
by: lamuerte451 | last post by:
Hi: I am a newbie to asp.net 2.0 and am building an app with VS 2005 that will allow users to update records via the web. I have created a master page and then have placed Gridview and details...
0
1919
by: arunpillai | last post by:
hi guys, My problem is i need to display different html page in content place holder just like how we will be doing in the frames. I have a menu control when ever the menu is clicked the particular...
3
1235
chandru8
by: chandru8 | last post by:
Hi to all, i had a problem to place more than 60 text boxes in a form for that queen send me a code. but my boss insist me to put picture box as a place holder by using this we can...
2
9608
by: greenMark | last post by:
Hi All, I'm relatively new to ASP.NET and Visual Web Developer 2008. I'm using a Master page with one content place holder. There is a Cascading Style Sheet file which is being refered by the...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7232
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...
1
6906
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...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
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...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.