Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sasidar_d

@sasidar_d
About
Posts
16
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • getting group information
    S sasidar_d

    Kris, Can you post your code here so that let us have a look ? Sasidar

    Visual Basic csharp help question

  • getting group information
    S sasidar_d

    Bis, What changes have you made to make it work. Sasidar

    Visual Basic csharp question

  • getting group information
    S sasidar_d

    Bis, I have already replied to your previous thread, I will also paste the code snippet which i am using for your further reference Dim entry As New DirectoryEntry ("LDAP://JANDBINDIA.com", .txtUsername.Value.ToString, .txtpwd.Value.ToString) Dim search As DirectorySearcher = New DirectorySearcher(entry) search.Filter = "(&(objectClass=user)(objectCategory=person))" search.PropertiesToLoad.Add("memberOf") Dim result As SearchResult For Each result In search.FindAll() If result.Properties.Contains("memberOf") Then Response.Write(result.Properties("memberOf")(0)) Response.Write(" ") End If Next This time you will get it, i am allowing to do the process only for authorized users , probably you can hard code the same r you can leave the parameters blank. but make sure that you have mentioned the .com extension for your domain name which is very important Sasidar

    Visual Basic csharp question

  • getting group information
    S sasidar_d

    Hi, Try giving the domain name with the com extension. then you will get it Sasidar

    Visual Basic csharp help question

  • downloading a file
    S sasidar_d

    Hi Amar I have pasted the part of the code snippet which will allow you to show the windows download dialog button. This should be called on any of the server click event by passing the file name Hope this will solve your problem mypath = myFileName file = New System.IO.FileInfo(mypath) If file.Exists Then frm.Response.Clear() frm.Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name) frm.Response.AddHeader("Content-Length", file.Length.ToString()) frm.Response.ContentType = strType frm.Response.WriteFile(file.FullName) frm.Response.End() Else frm.Response.Write("This file does not exist.") End If Happy Programming Sasidar -- modified at 10:02 Wednesday 14th June, 2006

    ASP.NET csharp asp-net database

  • sql to xml
    S sasidar_d

    Hi, You could use this stored procedure to convert the SQL Tables into xml sp_makewebtask You can have a look at this procedure from SQL books online. Also you can export the contents of datatable using the code. First you have to create a typed dataset, and then you fill the contents to the datatable in the dataset and then use the method dataset.writexml to fullfill your requirement Hope i have helped you out, Happy Programming

    ASP.NET csharp database asp-net xml tutorial

  • getting group information
    S sasidar_d

    Hi, I would like to give some suggestions so that i will work for you, as i have changed the same in my testing environment and it is working . . . Include the following line as the first line inside the function Dim entry As New DirectoryEntry("LDAP://") Change the second line as follows Dim search As DirectorySearcher = New DirectorySearcher(entry) include a if condition inside the for loop and it should appear like this For counter = 0 To groupCount - 1 Step counter + 1 If result.Properties.Contains("memberOf") Then groupsList.Append(CType(result.Properties("memberOf").Item(counter), String)) groupsList.Append("|") End If Next i hope you would have declared result as search result Hope this will

    Visual Basic csharp help question

  • Importing address from an excel or text or csv file
    S sasidar_d

    if you want to import the data from excel , text or csv into SQL Server - you can do it using the DTS Wizards (Import/Export Wizards)

    .NET (Core and Framework) question

  • could you plz tell me the exact meaning of managed & unmanaged code in .NET
    S sasidar_d

    Managed Code : When you compile your Visual Studio.NET source code, the compiler gives out MSIL (Microsoft Intermediate Language). MSIL code converts into native code at runtime by a Just In Time (JIT) Compiler. MSIL code should supply all the metadata necessary for the Common Language runtime (CLR) to provide services such as Garbage Collection, Memory Management, Cross-Language Integration, Code Access Security etc. All code that is based on MSIL executes as Managed Code. Unmanaged code is the one that was created without taking the requirements of the CLR into account. This code executes in the runtime environment with minimal services from runtime. For example, the above COM object that we created using VB 6 executes as unmanaged code.

    .NET (Core and Framework) csharp tutorial

  • how to do this in crystal report
    S sasidar_d

    Hi, I hope that you need to show the report in the master/detail report format. Create the main report , which will display the master item like name of the reserver and the telephone number of the reserver, In the detail band of the report you . Insert/Create the subreport and while doing that you link the two reports by the common field. this can be done by clicking on the Link tab in the sub report properties. Hope this will help you alot Happy programming

    Visual Basic question tutorial

  • setcount on
    S sasidar_d

    Hi, I hope that there is no option such as setcount on in sql, Instead we have a statement set nocount on/Off The explanation is given below which is available in SQL books online please refer the same for further explanation Stops the message indicating the number of rows affected by a Transact-SQL statement from being returned as part of the results. Syntax SET NOCOUNT { ON | OFF } Remarks When SET NOCOUNT is ON, the count (indicating the number of rows affected by a Transact-SQL statement) is not returned. When SET NOCOUNT is OFF, the count is returned. The @@ROWCOUNT function is updated even when SET NOCOUNT is ON. SET NOCOUNT ON eliminates the sending of DONE_IN_PROC messages to the client for each statement in a stored procedure. When using the utilities provided with Microsoft® SQL Server™ to execute queries, the results prevent "nn rows affected" from being displayed at the end Transact-SQL statements such as SELECT, INSERT, UPDATE, and DELETE. For stored procedures that contain several statements that do not return much actual data, this can provide a significant performance boost because network traffic is greatly reduced. The setting of SET NOCOUNT is set at execute or run time and not at parse time. Happy Programming

    Database question

  • Active Directory Users List - Reg
    S sasidar_d

    Hi , I need to extract the active directory userlist (Windows Login ID ). i am new to active directory users list. I have used the System.Directories dll to extract the information. Below ismy code snippet. The code is written in VB.Net web application. Dim searchRoot As New DirectoryEntry("LDAP://TESTLAB") Dim search As DirectorySearcher = New DirectorySearcher(searchRoot) search.Filter = "(&(objectClass=user)(objectCategory=person))" search.PropertiesToLoad.Add("sAMAccountname") Dim result As SearchResult For Each result In search.FindAll() Response.Write(result.Properties("sAMAccountName")(0)) Response.Write(" ") Next `When i execute the above code , i am not able to get the list of windows user id. Can anyone help me out for this , Thanks in advance Sasidar`

    ASP.NET csharp windows-admin help

  • Session Is Nothing when machine name mentioned in address bar
    S sasidar_d

    Hi Techies, I am very much surprised by the behaviour of the sessions. Let me explain them. I am retrieving the user name of the windows User by User.Identity and then saving it in a session. The once i click the login button, it should write as "Login Sucess". The Code Snippet is as follows : Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here Try If Not Page.IsPostBack Then Session("UserID") = getLoginDomainUser() Me.txtUserID.Value = Session("UserID") End If Catch ex As Exception Me.lblstatus.InnerText = ex.Message End Try End Sub Private Sub btnLogin_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.ServerClick Try If Not Session("UserID") Is Nothing Then If Me.txtUserID.Value = Session("UserID").ToString Then Me.lblstatus.InnerText &= "Logged Successfully" Else Me.lblstatus.InnerText &= "Login Failed " End If End If Catch ex As Exception Me.lblstatus.InnerText = ex.Message End Try End Sub Private Function getLoginDomainUser() As String Dim strUser As String Try strUser = User.Identity.Name 'With Domain Name Catch ex As Exception Throw ex End Try End Function I have created the msi file using setup and deployment project and then installed in the windows 2000 Server. The application works fine when i use the following url http://localhost//login.aspx or http:////login.aspx THE PROBLEM IS HERE when i give the machine name instead of ip , the session is getting empty and then i am not login The same setup is working fine with windows 2000 Professional. Can anybody tell me the reason for this peculair behaviour of the session I am hanging around this problem for more than 2 days . . . . Thanks in advance Sasidar

    ASP.NET sysadmin help workspace

  • Client Side Validation for Directory
    S sasidar_d

    Hi everybody I would like to get some input for how to validate the directory name along with their path in javascript any snippets or codes or links willbe highly appreciable thanks in advance sasidar

    ASP.NET javascript tutorial

  • Creating Directory Across Networks
    S sasidar_d

    I have given the write permission to everyone in the root folder of the network folder. but still the problem persists i heard about that i have to change the automatic generated password to static password of the aspnet account. can u tell me how to set the same bye regards sasidar

    ASP.NET help sysadmin security

  • Creating Directory Across Networks
    S sasidar_d

    hi everybody I have a small problem while creating directory. I am able to create the directory in the local machine. but the same is not working while i try to create in the network It says "Access is denied" i think it is some thing to do with security but unable to track the error. Any body please help me out. I have placed the code below for u gurus mypath = if not directory.exists(mypath) then directory.createdirectory(mypath) end if sasidar

    ASP.NET help sysadmin security
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups