Hi,
I have an asp server side checkbox as below.
I have a page where users can edit their user record.
I set this checkbox to true based on a value in a
database.
<asp:checkbox id="chkTest" Runat="server"> </asp:checkbox>
If the user unchecks the checkbox and submits the page I
update my database.
However, when I check if it is unchecked it still says
that it is checked.
Why is this?
Thanks,
C. 3 2915
How are you populating the checkbox? Are you checking to make sure that you
are only doing this the first time the page loads?
Show us some code...
"C" <c@nospam.com > wrote in message
news:0c******** *************** *****@phx.gbl.. . Hi,
I have an asp server side checkbox as below.
I have a page where users can edit their user record.
I set this checkbox to true based on a value in a database.
<asp:checkbox id="chkTest" Runat="server"> </asp:checkbox>
If the user unchecks the checkbox and submits the page I update my database.
However, when I check if it is unchecked it still says that it is checked.
Why is this?
Thanks, C.
On submitting the page
I use the following code to check if it is checked.
If chkTest.Checked Then -----Original Message----- How are you populating the checkbox? Are you checking to
make sure that youare only doing this the first time the page loads?
Show us some code...
"C" <c@nospam.com > wrote in message news:0c******* *************** ******@phx.gbl. .. Hi,
I have an asp server side checkbox as below.
I have a page where users can edit their user record.
I set this checkbox to true based on a value in a database.
<asp:checkbox id="chkTest"
Runat="server"> </asp:checkbox> If the user unchecks the checkbox and submits the page
I update my database.
However, when I check if it is unchecked it still says that it is checked.
Why is this?
Thanks, C.
.
I check by using following code.
If chkTest.Checked Then
'checked
Else
'unchecked
End If
And it is always True whether it is checked by the user
or not? -----Original Message----- How are you populating the checkbox? Are you checking to
make sure that youare only doing this the first time the page loads?
Show us some code...
"C" <c@nospam.com > wrote in message news:0c******* *************** ******@phx.gbl. .. Hi,
I have an asp server side checkbox as below.
I have a page where users can edit their user record.
I set this checkbox to true based on a value in a database.
<asp:checkbox id="chkTest"
Runat="server"> </asp:checkbox> If the user unchecks the checkbox and submits the page
I update my database.
However, when I check if it is unchecked it still says that it is checked.
Why is this?
Thanks, C.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: C |
last post by:
Hi,
I have an asp server side checkbox as below.
I have a page where users can edit their user record.
I set this checkbox to true based on a value in a
database.
<asp:checkbox id="chkTest" Runat="server"></asp:checkbox>
|
by: Das |
last post by:
Hi All
I'm using Temple column in Asp.Net
if works fine, but I directly want to set the checked property.
With Text Property: it works fin
<asp:TemplateColumn HeaderText="Red Flag"><ItemTemplate><asp:CheckBox Text= '<%# DataBinder.Eval(Container.DataItem, "strRedFlag") %>' runat="server"/></ItemTemplate></asp:TemplateColumn
I want to set lik
In the code below I'm setting the Checked property <asp:CheckBox checked=> instead of Text...
|
by: Liu Xuesong |
last post by:
I want to add Attributes into CheckBox in .aspx page
<html>
<asp:CheckBox id="ChapterCheck" runat="server" />
</html>
How to add Attributes in <asp:CheckBox> ?
|
by: z. f. |
last post by:
Hi,
i'm using code in my aspx page.
i have data binding where i use <%# Container.DataItem("DateStart") %>
i also use code that makes a loop inside a regular
<%
%>
block
how can i pass data from the databinding to the loop that runs in a regular
|
by: Ed West |
last post by:
Am getting this error with the following code, particularly this line:
<%# Check(DataBinder.Eval(Container.DataItem, "broker_id"))%>
I am creating checkboxes and the Check function checks to have that
particular checkbox checked by default. I am not using checkboxlist
because I want to EASILY save data to DB with a comma separated list
which HTML gives you if all the checkboxes have the same name.
<asp:datalist id=DataList1...
| |
by: Fao, Sean |
last post by:
I'm trying to set the title attribute on a CheckBox and I'm having some
issues in ASP.NET 1.1.
The title attribute in the following example is valid in HTML 4.01
Transitional:
<input id="MyCheckBox" type="checkbox" title="ToolTip">
However, ASP.NET doesn't like it. No matter what I do, ASP.NET places
my control inside of a span tag with the title attribute set in the
|
by: Chaprasi |
last post by:
hey guys
How can I get a value property for the checkbox, I don't want to use
the checkbox list.
Help is appreciated.
Thanks,
Chaprasi Bhai
|
by: Mike |
last post by:
Hi
We are developing an ASP.NET 2.0 application and using the in built Crystal report system that it comes with.
We have everything running fine on our development server but when we publish the site to our production server - as soon as we visit the site to test it we get a horrible message from crysta reports that we just dont understand as below
==========================================================================
Configuration...
|
by: deathtospam |
last post by:
A few weeks ago, I created a Classic ASP page that connects to a
machine with SQL Server installed on it, prompts the user to select a
database on that server, then lists all of user-created stored
procedures in that database. The user can select any of those stored
procedures by clicking on checkboxes; after submitting their
selections, a script to delete and then re-create each stored procedure
will be generated. Now I'm trying to do...
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |