.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Key.IsChecked (SMO) vs. key.Checked (SQL-DMO)

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :Sql Server
When I run my old application (written with SQL-DMO) I check if a foreignkey is checked with key.Checked. In my new application (written with SMO) I check the same thing with key.IsChecked, but in this case it always return false, even in those case where my old application returns true. Isn't key.Checked and key.IsChecked the same thing? Why do they return diffrent values?

View Complete Post

More Related Resource Links

InfoPath form checked out so 'on create' workflow not being started


Hi all,


I have found a couple of threads asking for advice on how to check in an InfoPath form when it’s saved or submitted to a forms library. The reason for doing this is so a workflow can start based on a new item being created in that library, and so it doesn’t just sit there with a “Starting” status.


The answers I have found contradict each other:

·         You have to do it with a workflow.  This can be done easily with SharePoint Designer if that's an option for you. Source:

Can not perform this operation.The file is no longer checked out or has been deleted?

In my sharepoint designer 2007, when I try to check in a file, it give me the following errors:

Can not perform this operation.The file is no longer checked out or has been deleted.

Please advise me how to fix this problem?


Disregarding updates on non-checked-in entries in a sharepoint list (SPAudit)


Hey guys.

Okay, this is a little hard to explain, as the title might suggest.

I have an event receiver on ItemUpdated and ItemCheckedIn, which both writes custom SPAuditEntries. When CheckedIn occurs though - it comes with two update entries as well (one for added file, and one for a simple update to the list item I suspect).

I'd love to get rid of these entries. At first I thought it would be really simple, just put an if in the itemUpdated event receiver, and stop everything

if(SPListItem.CheckedOut = false) { //... do nothing }

However I couldn't find any way to ascertain the checkout-status of the listitem. My next thinking was, they hit almost at exactly the same time, so I could just crawl into the auditCollection, filter down to the specific listitem, user, and time (minus a second) and delete the two entries. But, sadly I found out I couldn't delete auditentries.

Anyone got any ideas?

How to set the checkbox state "checked or not checked" from a database


hey In the code I have here, I need to set the checkbox state from a database but I dont know the properties:

while (l_objRead.Read())
                         //txtUserName.Text = l_objRead["UserName"].ToString().Trim();
                         txtWerknemerNaam.Text = l_objRead["Naam"].ToString().Trim();
problem here => cbAktief.CheckState = l_objRead["Aktief"];

don't know how to set the state, help pleaz :)

Checkbox Checked


I am currently trying to write some code that allows an admin to add users to a system by selecting a checkbox and then clicking a button at the top of the screen that will allow for a mass user add.  I am new to ASP and am trying to figure out how to make the system recognize each checkbox that is checked only to add to the database.  Any ideas on where to start on this?  Thanks

How to Check the DataGridViewCheckBoxColumn if it's checked ?

I'm using one DataGridView in my windows form. I have one unbound column (of type DataGridViewCheckBoxColumn) and I want to programmatically know if the user has cheked this and then accordingly I want to process those rows. Any Help is appreciated.

Html.CheckBoxFor - how can I make checkbox default checked ?

I have:Html.CheckBoxFor(model => model.available) how can I have checkbox default checked ?

"The file is not checked out" on page Postback

Hi there, I have a Publishing site with the Pages library set to "Require documents to be checked out".  As an administrator or member of the site, when i minimise/restore webparts on my page, then perform a postback operation (via some webpart on my page) i get an error saying:  The file is not checked out.  You must first check out this document before making changes. Its as if during the postback after minimising/restoring a webpart SharePoint wants to save that state! How do I stop this from happening?  Is there a personalization setting i am missing?   P.S. Here is a dummy postback operation if you'd like to test it, just paste it into a CEWP: <a id="Test" href="javascript:__doPostBack('Test','')">Test Postback</a>  

"This document could not be checked out" error in IE with SP2010 doc library

We created a document library in Sharepoint 2010 and configured it to require checkout. Via Internet Explorer, users click on a document in the library and choose "Check Out and Edit". They get the error message "This document could not be checked out. You may not have permission to check out the document or it is already checked out or locked for editing by another user". We confirm that the document is not checked out to anyone else. The user is able to open the document Read Only from IE and then check it out in the application (for example, they can click the Check Out button in Word 2007 successfully), so the problem seems to be IE related. We have tried adding the Sharepoint site in the Trusted Sites and Local Intranet zones in IE, but it doesn't make a difference.Any suggestions?Thanks.

How to display the edit button etc on the ribbon irrespective of who has checked it out

Is there a way that i can get the edit button etc displayed for all users irrespective of who has checked it out? Actually,i need the ribbon's edit,browse,page publish buttons active on the page even if somebody else has checked it out.I remember seeing an override checkout option available on the ribbon in some other site,But i do not have any such options displayed(I am also logged in and have full permissions).

Cannot count number of checked items using jQuery

Hello,Using Microsoft built-in jquery files, when counting numbers of checked checkbox, the jquery-1.4.2.min.js cannot count the correct result ,however, the version jquery-1.3.2.min.js gives out the correct one, why?            $("#check").click(function () {                var nameSports = new Array();                var i = 0;                $('input[name=selector]:checked').each(function () {                    nameSports[i] = jQuery(this).val();                    i += 1;                });                if (loopCounter != 0) {                    alert(i);                }  

Notify when document is checked back in.

When someone else checks out a document and I open it up, it gives me 3 options. The 3rd option is notify me. How does that work and how do I configure the server? I know about the "alert me" setting under actions, but it is to vague. I want user to be notified when a specific document is checked in.  Thanks.

Checkbox checked changed event inside gridview

Hi All, In my gridview there are 8 checkboxex in each row : 'Sunday' to 'Saturday' and one for 'All'. If 'All' is checked in a particular row, all other checkboxes in that row should be checked instantly, and viserversa. Can i do this in checkbox checked_changed event, if so how do i access the current row of the gridview in the checked changed event? Thanks in advance

"This document could not be checked out." SharePoint 2010 checkout action using IE8

I am setting up a two-server farm, and most everything works, except the checkout action for a document.  This problem occurs in both site collections, one of which requires checkout, and the other does not. Here are the options I've tried: Snow Leopard, Firefox 3.0.1 - works Snow Leopard, Safari - works Win 2003, IE 7 - works XP, Firefox - works XP, IE 8 - "This document could not be checked out.  You may not have permission to check out the document or it is already checked out or locked for editing by another user." In IE8, I am able to open a document as read only then use the button presented by Word to check out the document.  I cannot use that as a workaround, as not all users have a version of Office that will allow checkout in that way. Checkin works fine.  I need to resolve the checkout error.

Enable/Disable controls in a td when checkbox is checked

hi,I have a table with 10 rows.Each row having 3 asp controls (checkbox,textbox and dropdownlist).on pageload all controls except checkboxes should be disabled and If we check any checkbox the controls(textbox and dropdownlist) in that row are should be enable.pls reply me.Thanks in Advance.

How to order checked checkboxes

hi everyone i have an infopath 2007 form and i have couple checkboxes in a mutiple selection list box. I wanna know is there a way while I'm saving the form it just keeps the selected checkboxes or otherwise if it's too complicate is it a way to order them and have the checked on the top to retrieve them faster

Validate time (MaskedEdit) if checkbox is checked

Hi,I'm using AjaxToolkit and it works just fine. In one form i'm using the Time field (MaskedEdit). I need to validate Time field only if a tickbox is ticked. Is it possible?Thanks in advance,Vladimir
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend