I have a DetailsView, with a checkbox (from a Bit field in the database) - -
the bit field is 'Authorized'
What I'm trying to figure out (I'm running the Select and Update through a
SQL DataSource) I can, when the checkbox becomes checked, and therefore
updates the database, I need to send an email telling them they're
authorized to use the site now. (not using built in security controls)
I know how to send an email, but I don't know how to 'get' the value of the
changed textbox, so I can then send the email. 2 1218
How about getting it from the database?
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net http://iPhonePlaza.net
"Seth Williams" <sm@here.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I have a DetailsView, with a checkbox (from a Bit field in the database) - - the bit field is 'Authorized'
What I'm trying to figure out (I'm running the Select and Update through a
SQL DataSource) I can, when the checkbox becomes checked, and therefore
updates the database, I need to send an email telling them they're
authorized to use the site now. (not using built in security controls)
I know how to send an email, but I don't know how to 'get' the value of
the changed textbox, so I can then send the email.
It's a thought, but I didn't want to make a second call to the db, after
updating it.
Besides, I am trying, at this point, to learn how to use FindControl with
the detailsview - - I've got this, but apparently, it's not recognizing the
checkbox:
Dim ChkAuth As CheckBox = CType(dv1.Rows(0).FindControl("Authorized"),
CheckBox)
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:8E**********************************@microsof t.com...
How about getting it from the database?
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net http://iPhonePlaza.net
"Seth Williams" <sm@here.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>I have a DetailsView, with a checkbox (from a Bit field in the database) - - the bit field is 'Authorized' What I'm trying to figure out (I'm running the Select and Update through a SQL DataSource) I can, when the checkbox becomes checked, and therefore updates the database, I need to send an email telling them they're authorized to use the site now. (not using built in security controls)
I know how to send an email, but I don't know how to 'get' the value of the changed textbox, so I can then send the email. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Greg |
last post by:
I'm guessing the problem I'm having has something to do with Master Pages or
DetailsView because the exact same code works fine on a page without a Master
Page and DetailsView controls.
The...
|
by: Martin Frey |
last post by:
Hello guys,
im new to asp.net and im trying to get me used to it. I've managed to create
webpages with detailviews, databinding and datasources. Adding or inserting
data went very well and, after...
|
by: =?Utf-8?B?QW5nZWw=?= |
last post by:
I seem to understand how the control works as long as I mated to
SqlDataSource or ObjDataSource it works fine. But I do not want to flatten
my design in this manner. I am interested in how I can...
|
by: =?Utf-8?B?bXBhaW5l?= |
last post by:
Hello,
I am completely lost as to why I can't update a DropDownList inside a
DetailsView after I perform an insert into an object datasource. I tried to
simply it down to the core demostration:...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
| |