Hi, I have the requirement to encrypt my password with the PKCS #7 algorithm and store it to the sql server database. And to get the password also i need to decrypt with the same PKCS #7 algorithm. Is it possible with .Net code. Pls provide some help on how to do this encryption & decryption. Tnx in advance
anandhakrishnan
Posts
-
PKCS #7 Encryption -
.Net Membership providerHi, I am using .net membership provider for authentication purpose. I have the following requirement. If a user first time login to an application and the password hasn’t been changed (assume this user created by admin and the password is provided to user by admin) i should not validate the user until or unless he change the password provided by admin. I dont know how to accompolish this task. I meant how do i come to know tat this is the first time the user login to the application. Is there any property is available in the .net membership provider or any other way. Help would be greatly appreciated With Regards, Anand
-
sqlprofileproviderHi, Can you please give me some idea of how to use the sqlprofileprovider in windows forms application. with regards, Anand
-
[Message Deleted][Message Deleted]
-
Web serviceHi, I have created a web service and i have created the msi file. I deployed the Web service in the IIS by running the msi file. If any exceptions occur during the WS call i want log the exceptions in to a file. I have given the file path in the web.config file. Until or unless i create a directory with write permission, its not creating the file in the mentioned path. for ex: path : c:\Inetpub\wwwroot\webservice\ErrorLog\ErrorLog.txt If the dont create the ErrorLog folder with write permission its showing the c:\Inetpub\wwwroot\webservice\ErrorLog\ErrorLog.txt denied message. Is there any way to create directory with write permission through the c# code itself or the above is the only way to log the message. Please help me. With Regards, Anand
-
SSRSHi, I have created a report with three input parameters(OrdNum,InvoiceNum,PO), and i checked AllowBlankValue to allow blank input values. Any One of the input parameter must be given to get the order details. When i give the input for PO, i need to have a combination of one more input parameter(either OrderNum,InvoiceNum) along with PO. So i want to give a message like (Give one more input along with PO) when i give the value for PO alone, i mean i need to validate this input in the report itself. Is it possible? ex: IF (PO<>'' AND InvoiceNum='' AND OrdNum='') THEN "MSG: Give one more input along with PO" As of now i have given the above condition in the Stored procedure. It ll return Null rows. I have given the message in the NoRows property of table. I dont want let it go to the stored procedure and check that condition. I want to do it in the report itself. Please help me!
-
AJAXU have to download the Ajax tool kit and msi setup file. Download the <b>ASPAJAXExtSetup.msi</b> file from the below site to support Ajax in Asp.Net. http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en[^] Download the Ajax control toolkit from the below site. http://www.codeplex.com/AjaxControlToolkit/Release/ProjectReleases.aspx?ReleaseId=16488[^] In the above page, at the top right corner u can see the topic Releases in a box. Click the link 20229. It redirects to another page. Select AjaxControltoolkit.zip under the topic Downloads&Files. Run the msi file. Follow these steps to add the ajax control toolkit to ur application: 1. Create a folder AJAX Control Toolkit at path C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions or the drive where you have installed the Windows on PC. 2. Then extract the files of downloaded Control Toolkit .zip inside new created folder. 3. You will get the following folders and files from the extracted items: o AjaxControlExtender o AjaxControlToolkit o Binaries o SampleWebSite o TemplateVSI o ToolkitTests o AjaxControlToolkit.sln [Visual Studio Solution file] 4. Double click on AjaxControlToolkit.sln solution file to open it in Visual Studio 2005. It will show a security warning with two project load options: o Load project for browsing o Load project normally 5. Select load project normally and click ok. 6. After loading the solution it will display AJAXControlToolkit, SampleWebSite, ToolKitTests, TemplateVSI in the solution explorer. Right click on TemplateVSI and click build. After successful compile and build go to the path X: or C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AJAX Control Toolkit\TemplateVSI\bin At this path you will get the fresh build of AjaxControlExtender.vsi 7. Next Right click on SampleWebSite in the solution explorer and Build Web Site to get the fresh copy of AjaxControlToolkit.dll.
-
.Net Questions [modified]Hi, Can u pls help me on the below questions. This questions were asked in some exams. I want to clarify the doubts. I am not asking the answers during writing exams. 1) Is Client-side validation done by default? a) no b) yes c) modified by user. 2) Which control displays static text? a) Label. b) Literal. c) Both d) none. Tnx. With Regards, Anand
modified on Monday, February 23, 2009 3:34 AM
-
SSRSHi, I am using SQL Server Reporting Services to create Reports in Buiness Intelligence studio. I have created applied the Tree view structure for groups in Report using the Toggle visibility option. I have illustrated the structure of my report below: Header : ProductLine|ReasonCode|UnitType |Qty ------------------------------------- Detail: ------------------------------------- - E Reason - IO2Failure COG 100 + T + U ------------------------------------- The + and - indicates the tree structure.Assume (-E,+T,+U) parentnode, (-IO2Failure) Child Node I think you could understand the structure. The problem is i want to give some option in dropdownlist to user such as CollapseAll, ExpandAll, Expand only ProductCode. As i am not much experience with SSRS i dont know how to apply the ExpandAll and Collapse All options. Please Help me! Tnx. With Regards, Anand
-
Tree view controlHi, I am using a Treeview control with xml file as source file. I have given the html source code below. <asp:TreeView ID="TreeLeftNavigation" runat="server" DataSourceID="XmlDataSource1" ImageSet="Simple" OnTreeNodePopulate="TreeLeftNavigation_TreeNodePopulate" > <DataBindings> <asp:TreeNodeBinding DataMember="Countries" Text="Countries" Value="Countries" /> <asp:TreeNodeBinding DataMember="continent" TextField="cont" /> <asp:TreeNodeBinding DataMember="country" TextField="coun" /> <asp:TreeNodeBinding DataMember="language" TextField="lang" NavigateUrlField="Url"/> <asp:TreeNodeBinding DataMember="captial" TextField="cap" /> <asp:TreeNodeBinding DataMember="cities" TextField="city" /> </DataBindings> <ParentNodeStyle Font-Bold="False" /> <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" /> <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" /> <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="0px" NodeSpacing="0px" VerticalPadding="0px" /> </asp:TreeView> <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml"></asp:XmlDataSource> This is my xml file content. <?xml version="1.0" encoding="utf-8" ?> <Countries> <continent cont="NorthAmerica"> <country coun="United States of America"> <language lang="English" Url="Header.aspx"></language> <capital cap="Washington D.C"></capital> <cities city="Chicago"></cities> </country> </continent> <continent cont="Europe"> <country coun="United Kingdom"> <language lang=" English" Url="Header.aspx"></language> <capital cap="London"></capital> <cities city="Bristol"></cities> </country> </continent> </Countries> Here i have given the url link in xml file. I am getting the url v
-
Tree View ControlHi, I am using Tree view control for navigation. I am using XmlDataSource control as the datasource for the tree view control. I have given below the Xml file content. <?xml version="1.0" encoding="utf-8" ?> <Countries> <continent cont="NorthAmerica" Navigate="Header.aspx"> <country coun="United States of America"> <language lang="English"></language> <capital cap="Washington D.C"></capital> <cities city="Chicago"></cities> </country> </continent> <continent cont="Europe"> <country coun="United Kingdom"> <language lang=" English"></language> <capital cap="London"></capital> <cities city="Bristol"></cities> </country> </continent> </Countries> Html source: <asp:TreeView ID="LeftNavigation" runat="server" DataSourceID="XmlDataSource1"> <DataBindings> <asp:TreeNodeBinding DataMember="Countries" Text="Countries" NavigateUrlField="Navigate" /> <asp:TreeNodeBinding DataMember="continent" TextField="cont"/> <asp:TreeNodeBinding DataMember="country" TextField="coun" /> <asp:TreeNodeBinding DataMember="language" TextField="lang" /> <asp:TreeNodeBinding DataMember="captial" TextField="cap" /> <asp:TreeNodeBinding DataMember="cities" TextField="city" /> </DataBindings> </asp:TreeView> <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml"></asp:XmlDataSource> Here the binding working fine. But the navigation is not working. I have given the NavigateUrlField="Navigate". "Navigate" is having the url in xml file. Giving the binding error @ runtime. Pls help me! Tnx.
-
Frameset in .NetHi, I want to use a Frameset in .net webpage. This Framset is to create a Left Navigation menu. In the Frameset i want to have a Tree view control. I dont have idea about the Frameset. Can anybody pls help me on how to use a Frameset in .Net with Tree view control. Tnx in advance. With Regards, Anand
-
Strongly Typed DatasetHi, I am using Strongly Typed Dataset(.Xsd) to keep the values fetched from the database. And i am using three tyre architecture in my project. I am using this Typed dataset not only to fetch the records from database and also to store the new values into the database. I am getting a problem while i am trying to assign NULL for an integer field. if (txtExperience.Text.Trim() == "") row.Experience =(Int32)SqlInt32.Null; //row.SetExperienceNull; //DbNull.Value; else row.Experience = Convert.ToInt32(txtExperience.Text); I am getting the error below Data is Null. This method or property cannot be called on Null values in strong typed dataset I dont know how to pass the null value. Pls help me! Tnx in Advance.
-
Passing input parameter to external js file functionHi, I have written the following function in external JScript.js file. function validateParameter(textBoxId) { var paramname = document.getElementById(textBoxId); alert(paramname); } Text="Save Comments" OnClientClick="javascript: return validateParameter('<%=txtParam.ClientID %>');"> But during the runtime it showing the alert message as null. How to pass the input parameter to the function which in external javascript file. Tnks in advance!
-
Call External Javascript File in aspx fileHi, I have written the javascript function in the External js file and named it as JScript.js. This file is in Javascripts folder which under the Project folder. The JScript.js file contains the following code. // JScript File function validateParameter() { var paramname=document.getElementById('<%=txtParam.ClientID %>'); var message; message=""; if(paramname.value=="") { message+="\n*Parameter Name is mandatory"; } else if(paramname.value!="") { var alphaExp = /^[a-zA-Z\s]+$/; if(!paramname.value.match(alphaExp)) { message+="\n*Only Alphabets are allowed for Parameter Name"; } } if(message!="") { alert(message); return false; } return true; } I have called the javascript file using the below html tag. I have called the javascript function for OnClientClick of a button. OnClientClick="javascript: return validateParameter();" But during the runtime the button click is not validating the controls. Please Help Me! Thanks.