Melhor modo de utilizar o FormsAuthentication+AuthorizeAttribute
Pessoal, preciso fazer uma autenticação no meu sistema utilizando o FormsAuthentication, peguei um exemplo onde no Global.asax executa o método Application_AuthenticateRequest para obter os dados do...
View ArticleHTML to PDF from c# Windows
Hi All,how to i export a HTML to PDF from c# in a windows application.any help or suggestion is higly appreciated.thanksfairozkhan
View ArticleRequirement to Extract text from txt,doc,docx,xls,xlsx,ppt,pptx,tiff,text PDF...
IDE: - Visual Studio 2008.Language: - C#.Requirement:- Need to extract documents. Extension Support: - txt, doc, docx, xls, xlsx, ppt, pptx, tiff, text PDF and Scanned PDF documents..Already Attempt: -...
View ArticleDigital Signature Algorithm with Secure Hash Algorithm (DSAwithSHA1)
I have seen lot of codes but in that codes, no role of public key.How to implement Digital Signature Algorithm with Secure Hash Algorithm (DSAwithSHA1) for verifying the digital signature using public...
View ArticleHelp convert a sample powershell containing Null Variable to c#
Some of my functions in powershell use null variable.and the function just says return at the last. Expecially i dont understand the null variable and how should i use in c# and what should be my...
View ArticleMore efficient way to remove 1st character from a string
Hi..if a string starts with ; then i want to remove first character(;) from the stringcan any one help in more efficient wayEx: ;xyz then i need to remove ;
View ArticleC# FindWindow() - Get multiple windows.
Hi all,I'm looking to get an array of windows with a certain class name, so it appears that FindWindow() is just what I'm looking for. The problem is I'm not quite sure of how to get multiple windows...
View ArticleGetting assembly version of dll files in a directory
Good morning.I am iterating a directory, including sub-folders, and trying to get the assembly version of .dlls contained in the directory. For the most part, this is working, except I come across the...
View ArticleAdd method with CodeDom
Hi All how to dynamically add method to already compiled class by CodeDom
View ArticleVariable question
Is there any difference performance/resource wise between these two solutions? I'm thinking if recreating the x variable continually in the second example will use more resources and slow things down?...
View Articlepassing two dimensional array from classic asp to c#
Hi,I would like to pass two dimension array from Classic asp to C# Method.
View Articlegetting OU details of another OU in AD using C#
Hi all , In AD I have a structure where , under an OU (say CITY) I have sub OU's (say locations) , how can I fetch the details of sub OUs(i.e Locations) using C#
View ArticleLeave Management System
HI, Currently im working under leave management, in web application when user wants to apply a leave , he will select from date and to date from calendar controls, i need to display the duration of...
View ArticleImport AOL Contacts
Hi, please anybudy tell me a complete description of fetching AOL contacts in our ASP.Net web application.
View Articleproblem printing a windows form!
Hey everyone!I want to print a windows form and I used the following code for it but it prints a blank page. why is this so? kindly help. using System; using System.Collections.Generic; using...
View ArticleTrouble using MageUI
Hi there,I have a click once app which is signed using signtool in the post-build step. This broke my app which required me to use MageUI, which worked. Now since I made changes I can't get it to work...
View ArticleHow would I write a DLL that you can run, like asp, asp.net, or php? How...
How would I write a DLL that you can run, like asp, asp.net, or php? How would I get the contents of the file accessed, and how would I return it to the server?How would I write a DLL that you can run,...
View ArticleProblem with tinyint fields
Hi everybody,I have the following code Int16 pref_lvl = row.Field<Int16>("pref_lvl1");and I am getting 'Specified cast is not valid' error. For all other column types similar code works fine.I...
View ArticleSweet Mysteries of Type ... or ... how can I cast this darn thing ?
Good Morning Gurus.First, an example of the problem, then some background ....(from tmp in currList orderby ((double)tmp.StoredAsObject[(int)listIDX]) select tmp).ToList<StationData>();the...
View ArticleHow to avoid sorting in serial no iinside gridview
HiI am having datagridview in c#I populated data inside datagridview.I created Serial No inside datagridview along with other columns.If i click serial no head,the serial no is sorted.If i do sorting...
View Article