Activate / InActivate in asp.net using sqlserver

Posted by Dn2010 under ASP.NET on 1/13/2011 | Points: 10 | Views : 1562 | Status : [Member] | Replies : 6
hi friends,

after admin login,

Admin select the message then click button Activate / Inactivate to the message from database,


If admin click the ACTIVATE Button display the message from database in Index page ,

Otherwise

click the INACTIVE Button block the message in Index page ,


how to create & please give the code for it.

thanks.




Responses

Posted by: Karthikanbarasan on: 1/13/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi Dn2010,

This is straight forward as ur earlier posts, u need to keep a indicator in the DB and when the admin clicks the activate button then make the indicator to 1 or else make it 0 and pull the record based on the admin input and show it in the index page..

Thanks
Karthik
www.f5Debug.net

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dn2010 on: 1/13/2011 [Member] Starter | Points: 25

Up
0
Down

if you like ,

please give the code for it.

thanks.

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/13/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

You can use the same approach

http://www.dotnetfunda.com/forums/thread3300-how-to-create-checkbox-permission.aspx

Thanks
Karthik
www.f5Debug.net

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dn2010 on: 1/13/2011 [Member] Starter | Points: 25

Up
0
Down

its already not working.

thanks.

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/14/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Ok Dn2010,

In which code section you got struck up... so that we can help you from that...

Thanks
Karthik
www.f5Debug.net

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dn2010 on: 1/14/2011 [Member] Starter | Points: 25

Up
0
Down
thanks for your response karthik,

If you like please create any small application for it.

thanks.

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response