|
Probably best done through a webservice.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hello friends
First at all happy new year of all of you.All the best in next one.))
Cloud you help me please.I will describe the problem.It seens stupid but i did not use VS from 1 year and just now start it again.
So we have GridView inside of it are templates for example label and text box for edit mode which are connected with some db.So the problem is appear when i try to update that data exactly in updating event.After pressing update button in quick watch i see that it is give me old value not what i had change ready!!!For example in label value is 1 and when you press button edit in text box is 1 too but my goal is to be changed to 2 so in text box value is changed to 2 but after pressing of bot ton the value which is extract is 1???Pleas cloud you tell me some body why.Unfortunately the at the moment i am not in-front of my pc but let try the code.
string name;
name=((TextBox)(gvMain.Rows[e.EditIndex].Cells[1].Control[1])).Text;
And result is 1;
Please tell me why
Now the project on which i work it use net.3.5 can you explain me if there is some changes and why if i catch the text box the value is old one not the value which i already type on it.
Thanks in advance.
when i want to read something good just seat and type it
|
|
|
|
|
Is it possible to get all the Unchecked nodes of TreeView control as a TreeNodeCollection the same way TreeView.CheckedNodes does.
|
|
|
|
|
I use this function for Encypt my strings,but I want to know how I can Decrypt string.
<br />
public string Md5AddSecret(string strChange)<br />
{<br />
byte[] pass = Encoding.UTF8.GetBytes(strChange);<br />
<br />
MD5 md5 = new MD5CryptoServiceProvider();<br />
string strPassword = Encoding.UTF8.GetString(md5.ComputeHash(pass));<br />
return strPassword;<br />
}<br />
<br />
protected void bntDisp_Click(object sender, EventArgs e)<br />
{<br />
<br />
try<br />
{<br />
TxtResult.Text = Md5AddSecret(TxtPassword.Text);<br />
}<br />
finally<br />
{<br />
Response.Redirect("UrPage.aspx");<br />
}<br />
}
Thanks in Advance...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
This function may help you to decrypt string.
Public Function Decrypt(ByRef Data As String) As String<br />
Dim decData() As Byte = Convert.FromBase64String(Data)<br />
Dim decStr As String = ASCIIEncoding.ASCII.GetString(decData)<br />
Decrypt = decStr<br />
End Function
use SHA1 Algorithm for Encryption.
Public Function Encrypt(ByRef Data As String) As String<br />
Dim sha As New SHA1Managed<br />
Convert.ToBase64String(sha.ComputeHash(Encoding.ASCII.GetBytes(Data)))<br />
Dim encData() As Byte = ASCIIEncoding.ASCII.GetBytes(Data)<br />
Dim encStr As String = Convert.ToBase64String(encData)<br />
Encrypt = encStr<br />
End Function
Regards.
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
modified on Saturday, January 05, 2008 2:39:10 AM
|
|
|
|
|
Thanks Rahul...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
MD5 is not an encryption algorithm, its a hashing algorithm. Hashes don't "decrypt" - they are a summary (digest) of the information, a checksum. They are lossy. Have a look on wikipedia about the difference.
You probably want to look at the RSA CryptoServiceProvider.
|
|
|
|
|
Mark Churchill wrote: You probably want to look at the RSA CryptoServiceProvider.
Can u give me reference link about RSA CryptoServiceProvider.
Thanks in Advance...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
Answer as above, MD5 cant be Decrypted. because it is a Digest algorithm.
if u want to encrypt and decrypt message, DES and AES cryptography algorithm will be your selection.
regards Eric.W
modified on Sunday, January 06, 2008 7:50:18 AM
|
|
|
|
|
Eric.W wrote: if u want to encrypt and decrypt message, DES and AES cryptography algorithm will be your selection.
Can u give me reference link about DES and AES Cryptography algorithm.
Thanks in Advance...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
visit here,it mey be helpful for u.
regards Eric.W
|
|
|
|
|
You cannot decrypt the hash. Hashes are one-way.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Can u suggest me how to encrypt and decrypt a string...Any Reference link will be more helpful.
Thanks in Advance...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
Kasi Viswanathan wrote: Can u suggest me how to encrypt and decrypt a string...
Try an actual encryption algorithm like Rijndael. It is in the .NET Cryptography namespace.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Thanks Paul...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
hi all i want to fixed the header of page
like give url
http://limpid.nl/lab/css/fixed/header[^]
but i am unable to do this in my asp.net
plz help some one
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
We have a db with some fields.When we select the grid row the details of the row in particular control.One of the field is image field .I put an asp.net image control for displaying the image .When i select the row The rows corresponding image will be displayed on the control.For that send code to display the rows image into the image control.
|
|
|
|
|
Kindly reply me soon...It surgent so ia sk like that .okay.
|
|
|
|
|
SreejithAchutan wrote: When we select the grid row the details of the row in particular control
You want to read one grid row and display it in a saperate control ????
This control only display the image or Alll details along with image?
---
did you store image path in database or image as binary format ?
you can check it for your Reference
Read image from database[^]
|
|
|
|
|
it didn't give the output image. other fields are showing but no image..
suchita
|
|
|
|
|
iam having a regular validator to accept [0-9a-zA-z]along with this how it can accept the special characters also.
|
|
|
|
|
|
Hi,
I'am using ASP.NET 2 and I am trying to check size of an upload file.Since by default fileuploader can upload upto 4Mb if i try to upload a file greater than 4Mb shows a page that shows PAGE CANNOT BE DISPLAYED message without entering the upload function.How can i reload my default page without showing this error page if size is greatrer than 4Mb.i dont want to increase my upload size though..
Prasobh
|
|
|
|
|
<httpruntime maxrequestlength="1048576" executiontimeout="3600">]
add this code in the web.config file
|
|
|
|
|
Hello,
Check the file length first. You may helped by the following code. (Refrence : using System.IO;)
FileInfo FI = new FileInfo(@"C:\Rate.txt");
Response.Write("File Size : " + FI.Length.ToString());
This code returns the size of the particular file. You may check the file size u want.
Reply.
Best Of Luck.
Dipak
|
|
|
|