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

shanthivasan

@shanthivasan
About
Posts
13
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Export To Excel
    S shanthivasan

    ReportDocument rpt=new ReportDocument(); rpt.Load(Server.MapPath("ReqVsCur.rpt")); rpt.SetDatabaseLogon("username","password"); rpt.SetParameterValue("@year",DateTime.Now.Year); MemoryStream oStream; oStream=(MemoryStream)rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel); Response.Clear(); Response.Buffer=true; Response.ContentType="application/vnd.msexcel"; Response.BinaryWrite(oStream.ToArray()); Response.End();

    ASP.NET csharp help

  • Active Directory Integration using C#.net
    S shanthivasan

    thanks a lot sathish. I am through.I did a mistake in DirectorySearcher.

    C# csharp database dotnet visual-studio windows-admin

  • Active Directory Integration using C#.net
    S shanthivasan

    thanks for your reply. I checked the name.It is not working. Do i have to use DirectorySearcher to check the user name? All i have to do is that, i have to get the user name who is currently logging in.

    C# csharp database dotnet visual-studio windows-admin

  • Active Directory Integration using C#.net
    S shanthivasan

    I am using VS 2003 .Net framework. I have to integrate the web application with active diretory. I browsed net i found the below code.no luck there. i dont know how to solve the error. void Page_Load(Object Src, EventArgs E ) { if(!Page.IsPostBack) { lblMessage.Text = "use domain\\username format"; } } private void AuthenticateUser(object sender, EventArgs e) { string ldapPath = "LDAP://dc=domain",DC=dn; DirectoryEntry de = new DirectoryEntry(ldapPath); de.Username = txtUsername.Text; de.Password = txtPassword.Text; de.AuthenticationType = AuthenticationTypes.Secure; try { string name = de.Name; //force a bind lblMessage.Text = "Success, You have authenticated"; } catch(Exception ex) { lblMessage.Text = "Failure: " + ex.Message; } finally { de.Close(); } }

    User name

    password

    User name: <%=User.Identity.Name %>
    My process is running as: <%=System.Security.Principal.WindowsIdentity.GetCurrent().Name %>

    I am getting the following exception: Failure: System.Runtime.InteropServices.COMException (0x8007054B): The specified domain either does not exist or could not be contacted at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at ASP.index_aspx.AuthenticateUser(Object sender, EventArgs e) please advice on this

    C# csharp database dotnet visual-studio windows-admin

  • Active Directory
    S shanthivasan

    Hi Martin, Thanks for your reply. I just tried to get the Environment.Username. but i am getting the ASPNET as a result. Do you have any code for that? Thanks in advance

    C# csharp visual-studio windows-admin

  • Active Directory
    S shanthivasan

    I need to retrieve Current (who currently logined to machine) user personal information(like his fullname,address,email id etc.....imaging all those required information is stored in ActiveDirectory) from Active Ditrectory. I am using Visual studio 2003. with thanks and regards

    C# csharp visual-studio windows-admin

  • datarelation in dataset
    S shanthivasan

    this.myDataGrid.DataSource = myDataSet; only the first datatable of the dataset will be assigned to the datagrid if we use the above syntax. But i have to use the datarelation of the dataset. what should do for that? thanks a lot for your response. thanks in advance

    C# tutorial

  • datarelation in dataset
    S shanthivasan

    I have created the datarelation from the datatables of dataset. but i don't know how to bind the resultset of datarelation to the datagrid control. please let me know. thanks in advance

    C# tutorial

  • How to invoke web service method in C#.Net
    S shanthivasan

    Hi, How to invoke web service methods in C#.Net? Thanks in advance

    C# csharp tutorial question

  • How to insert images in MS Access db using C#.net
    S shanthivasan

    I have to insert images in Access db using C#.net. what datatype should i use to achieve that? Thanks in advance

    C# csharp database tutorial question

  • Active Directory And .NET
    S shanthivasan

    Thanks a lot Zion

    C# csharp windows-admin help

  • Please help me out : How to convert "CrystalDecisions.Shared.ExportFormatType.PortableDocFormat" to System.IO.MemoryStream
    S shanthivasan

    Thank you so much for your timely help.

    C# help tutorial

  • Please help me out : How to convert "CrystalDecisions.Shared.ExportFormatType.PortableDocFormat" to System.IO.MemoryStream
    S shanthivasan

    I have to export crystal report data into excel.To achieve that, I have written coding like this MemoryStream oStream; oStream=(MemoryStream)(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); Response.clear(); Response.Buffer=true; Response.ContentType="application/pdf"; Response.BinaryWrite(oStream.ToArray()); Response.End(); But i am getting compile-time error such as "Cannot convert type 'CrystalDecisions.Shared.ExportFormatType.PortableDocFormat' to 'System.IO.MemoryStream' " Can anyone help point out what mistake i have done on coding. Thanks in advance Shanthi

    C# help tutorial
  • Login

  • Don't have an account? Register

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