[CODE]using System; using System.Security.Cryptography; using System.Text; public static class Encryption { public static string Encrypt(string input, string key) { byte[] inputArray = UTF8Encoding.UTF8.GetBytes(input); TripleDESCryptoServiceProvider tripleDES = new TripleDESCryptoServiceProvider(); tripleDES.Key = UTF8Encoding.UTF8.GetBytes(key); tripleDES.Mode = CipherMode.ECB; tripleDES.Padding = PaddingMode.PKCS7; ICryptoTransform cTransform = tripleDES.CreateEncryptor(); byte[] resultArray = cTransform.TransformFinalBlock(inputArray, 0, inputArray.Length); tripleDES.Clear(); return Convert.ToBase64String(resultArray, … |
|
The problem I am having is that I need to reference a dll this is rebuilt every hour and are placed into a unique directory. So every couple hours I have to go to the newest directory and reference that dll for mt project. What I did so far is … |
|
Usint PHP, I'm trying to add the username, used in a login form, to the MYSQL table of another form. Scenario: User "x" logs in (providing his username, "x", and a password). The username and password are stored in a MYSQL table called "users". Once "x" is logged in, he … |
|
Ok im a little new to php so please bare with me. this is the code i have been using to Transfer Variables from and to. What i want to do is to keep the variables in page2 untill further notice even after submited. Concept of this for customer to … |
|
I have a program to download files from server (using ftp_connect) using php and save the files in my local system.While saving the files in local system file's modified time changes according to my system time But what i need is the files saved in local should have the same … |
|
Hi, I need a Php library or Code to convert images to a video. If i give few images as input, the library should convert it to a Video and it's output should be a video file!! Where can i find this library?? Need some help? |
|
hi mate. i have problem about REGEX this is my simple code [CODE]<?php $teks="hi whats up? how are you?"; $replace=preg_replace("/(you)/i",'<span style="background:yellow;">\1</span>',$teks); echo "$replace"; ?>[/CODE] what the mean \1 ? its not give effect for my text.. if i change the value to \2, the text has change.. thanks mate! |
|
Hey everyone, So I've looked and tried to figure out how to get the user to "log in" before accessing a page. However I've seen where you send the user to the log in page if he or she has not log in but what about if the person has … |
|
Hi i have a foreach loop, but it is just showing everything in one long line, so I wanted to put it in a table like this <table> <tr> <td>data1</td> <td>data2</td> <td>data3</td> </tr> <tr> <td>data4</td> <td>data5</td> <td>data5</td> </tr> </table> here is my loop: [CODE]<?php foreach( $products as $product ) { … |
|
Hey Everyone, hope all good. i have a problem with some php that is not randomly selecting an ip. I will try to explain my problem below. I have a state form [CODE] <select name="State"> <option value="0" selected="selected">Select a State</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> etc..... </select>[/CODE] … |
|
hi! i have a form to enter data i want to put validations in the text boxes and prompt the user if he/she enters the wrong data i want to put validations for phone number Date of birth email i tried using regex but it says that i am missing … |
|
i want to add a word document into c sharp code as reference..and while clicking a button in the form,the word file has to get opened.. |
|
Hey! I'm trying to create a program which can multiplicate complex numbers. For example. (1+2j)*(3-4j)= 11+2j What would be the best way to split up the equation (1+2j)*(3-4j), so i can persom the calculations? I tried using the split method but I just got stuck, since i couldn't make it … |
|
Ok So I have to create a Date Class that will allow me to return the current day with data members of month , day, and year this is what I have for from my Main() class: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DateApp2 { class DateApp … |
|
Hi, I have this codes: (index.html) [CODE] <body> <div id="wrapper"> <?php include('includes/header.php'); ?> <div id="nav"> <a href="#">Home</a> <a href="#">About</a> <a href="#">Portfolio</a> <a href="#">Contact</a> </div> <!-- end #nav --> [/CODE] I wonder why <?php include('includes/header.php'); ?> does not works. In other words, the codes that I have place in header.php does … |
|
|
Um, How do these work? I know you do something like [CODE]Blah Blah {Get; Set;}[/CODE] but how does that work? how does it know what to get and set? |
I'm making a datagridview, inside datagridview got many columns. 1 of column name is Finished(checkbox). When load form, the system will detect Finished is Checked and display color. But when I click column header to sort, it will not display color. So how I set color command in column header … |
|
Hi guys, I created an application in C#, which requires [B].Net Framework 4.0[/B] (Not the client profile) I created a Setup project for my application, since it has to be installed on a very big number of computers, some of which may have not access to the internet. Moreover, I … |
|
The datetime picker control 'focused' property is not set to true even though I have changed the date value. Please anyone help me Regards, Jineesh |
|
Create a class named Pizza. Data fields include a string for toppings (such as pepperoni), an integer for diameter in inches (such as 12), and a double for price (such as 13.99). Include properties to get and set values for each of these fields. Create a class named TestPizza that … |
|
This is the code snippet used to get the files/folder present in a particular folder/sub directories. |
|
I am currently working on a game that takes place in the console. I need to know how to combine [CODE]Console.WriteLine()[/CODE] and [CODE]Console.ReadLine()[/CODE] into 1 line so that the blinking underscore appears on the same line. Is there any way to do this? Any help is appreciated. |
|
I have application which contain textbox, 2 button and datagridview In text box user will enter query button1 click to display query result in gridview and Button2 to export data to excel My application is working fine But problem is when i again click button1 it also show the previous … |
|
I have a application contain 1 text book for Multiple line 2 Button(Query and Export) and 1 DataGrid View If user enter the query in textbox and click on Query Button i want to prompt for use input to get key for validating purpose My application is working fine But … |
|
Hi Frnz, anyone can help me with code , how to setting up [B][U]"solr search engine "[/U][/B] for document search on ur desktop in .net |
|
Hi, I am using windows form. Now in this window i have 2 textboxes which have their validation using the error provider. Now i want that when the user clicks on the close button it closes not rests until u enter something in the textboxes. How can i do so? |
|
I am learning about networking in C# and to do so i am making a simple instant message server/client app. everything is going fine. i am currently testing it by inputting my own ip address as the target to send/receive on same machine. but, i can only send one message … |
|
string valeur = ligne.Split(ChrW(59))(0); what is the equivalent of that in C# please??? |
|
Hallo, i have a Csv file,i would like to read ,convert it and than represent it with Datagrid the fonction who read my csv [CODE]public List<String[]> Parse_CSV(String File_Path) { List<string[]> Parse_Data = new List<string[]>(); try { using (StreamReader Read_File = new StreamReader(File_Path)) { string Line; string[] Row; while ((Line = … |
|
okay so i figured everything out for my project except how to get this simple select statement to work. i have a table named [B]Car[/B] that i LINQ'd from a Microsoft Access File. please help. i want a button to display the Car database according to the SQL statement. thank … |
0 Reputation Points
0 Endorsements
Ranked #779