User Profile

Collapse

Profile Sidebar

Collapse
dev99
dev99
Last Activity: Feb 10 '15, 07:57 PM
Joined: Mar 12 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Need a client side script to update gridview row data when checkbox is checked.

    I have a gridview that contains a checkbox and a Label on each row. I am using client side javascript to display a count of checkboxes checked to avoid post backs. I now also want to get/update the Label value on each row when the checkbox is checked or unchecked - but can't quite figure it out. Any help or direction to a similar post would be appreciated. See current code below:

    JavaScript code:
    Code:
    function CheckBoxCount()
    ...
    See more | Go to post

  • DirectorySearcher protocol error with Notes Domino directory

    Using Studio 2013 VB.

    I am attempting to retrieve group members from our Lotus Notes Domino directory - but I cannot get past this error: "A protocol error occurred. Failed, invalid authentication method specified." I was assuming (maybe incorrectly) that this could be done using DirectorySearch er as we do for our Active Directory.

    I have tried retrieving various data with the same results. My research seems...
    See more | Go to post

  • dev99
    replied to Help getting user account sAMAccountName
    in APIs
    never mind the post. I was able to accomplish this with net::ldap instead.
    See more | Go to post

    Leave a comment:


  • dev99
    started a topic Help getting user account sAMAccountName
    in APIs

    Help getting user account sAMAccountName

    Sorry for the newbie question - but I have a perl script using WIN32API::NET.

    I have a list of user account "cn=" values.

    Is there a WIN32API::NET command that will get the sAMAccountName for each cn?

    thanks
    See more | Go to post

  • dev99
    replied to DirectoryEntry.Rename method
    Thanks. I did discover that the Rename is permanent without requiring a CommitChanges. But that is contrary to MicroSoft docs.

    The docs state that I must specifically set UsePropertyCach e="false" (default is "true") in order for the Rename to be permanent by itself without the CommitChanges.

    So I'm just trying to verify if I understand the docs correctly. I'm also wondering if a CommitChanges happens...
    See more | Go to post

    Leave a comment:


  • dev99
    replied to DirectoryEntry.Rename method
    Thanks for the reply. Yes my C# code is similar. In your code above - you do not specify CommitChanges() after the Rename. Don't you need this to make the Rename move from an update to your property cache to be a permanent change in the Directory?
    See more | Go to post

    Leave a comment:


  • dev99
    started a topic DirectoryEntry.Rename method

    DirectoryEntry.Rename method

    Writing a .Net 4 C# console application to add/update Active Directory user objects.

    I am using the DirectoryEntry. Rename method to rename the cn property of user objects.

    If I understand the MS documentation for the Rename method - - If UsePropertyCach e is true (which is the default) then I need to call CommitChanges on the object to make the rename action permanent.

    However, When I execute the following...
    See more | Go to post

  • dev99
    replied to sqldatasource using WHERE IN problem
    A solution I found for this issue is overriding the SqlDataSource SELECT statement so that the WHERE IN clause works.

    In my case, I used a String.Format to build a Select statement with a formatted string of group names in my gridview_DataBo und() as follows:

    SqlDataSource1. SelectCommand = String.Format(" SELECT mycolumns FROM mytables WHERE GROUP_NAME IN ({0}),Get_Group s(logged_in_use r));

    Get_Groups...
    See more | Go to post

    Leave a comment:


  • dev99
    replied to sqldatasource using WHERE IN problem
    Solution found elsewhere. thanks everyone
    See more | Go to post

    Leave a comment:


  • dev99
    replied to sqldatasource using WHERE IN problem
    Sorry for not using the code tags. I will do better! Does anyone know how I can pass a string of parms from my code behind to the WHERE IN clause of my sqldatasource Select statement? thanks
    See more | Go to post

    Leave a comment:


  • dev99
    replied to sqldatasource using WHERE IN problem
    Thanks for the reply. I was not quite able to get your suggestion to work. I was however trying to set the Select paramters in the code behind as follows and got it partially to work:

    I added onSelecting="Gr id01_Selecting" to the SqlDataSource and my WHERE clause is WHERE GROUP_NAM = @Grps

    and my select parms are as follows:
    <SelectParamete rs><asp:Paramet er Name="Grps" Type="String"...
    See more | Go to post
    Last edited by Rabbit; Mar 13 '13, 04:21 PM. Reason: Please use code tags when posting code.

    Leave a comment:


  • dev99
    started a topic sqldatasource using WHERE IN problem

    sqldatasource using WHERE IN problem

    Using Studio 2010 C# - with sqldatasource querying DB2 UDB database.

    I have a gridview sqldatasource that uses a WHERE condition as follows:
    Select values WHERE groupname IN ('groupa','grou pb',etc.)

    Works fine hardcoded in the sqldatasource but I want to create the group list in the code-behind and plug it into the SelectParameter s.

    So far - I have changed my sqldatasource select statement to: Select...
    See more | Go to post
No activity results to display
Show More
Working...