|
jagadeeshkumar2106 wrote: how i can down load a file from server to a client machine
Redirect to that file which will open a file save dialog by browser. Response.Redirect("YourFile");
|
|
|
|
|
hi sir how r u ..iam little bit confusion with ur answer this is actual requirement...sir
actually i am having a abc.tif in the server.when clinet click a down load button this file has to download ..and when client again click save then a save as pop diolog has to come to specify where to save this server file in the clinet machine ..will u give excat code...for me sir
|
|
|
|
|
jagadeeshkumar2106 wrote: i am having a abc.tif in the server.when clinet click a down load button this file has to download
Inside the button click event, write Response.Redirect("abc.tif") to start the downloading.
jagadeeshkumar2106 wrote: and when client again click save then a save as pop diolog has to come to specify where to save this server file in the clinet machine
Once you did a redirect to the file, browser will check for the extension and trying to match a application which can open that file. It shows you a popup window with save and open buttons. Clicking on save, user will be asked for the location for the file to get saved.
You don't need to worry on this, browser will take care
|
|
|
|
|
Response.Redirect("http://localhost/kumars/serverdownload/abcfile/createuser.tif");
hi sir the same code i wrote in the button click but its getting opened the content in that file but the pop window of save and open is not comming ...plz see this once
|
|
|
|
|
May be the extension TIF has been mapped to the application and browser opens it. Which is the browser you are using ? Firefox ?
|
|
|
|
|
iam using internet explorer sir
|
|
|
|
|
Plse can u tell me how to display videos in Asp.net 2.0. I used following codes.
<object
classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param name="FileName" value="video.dat" />
It is working in local host. But after uploading it is not working. I have also changed the class id to
clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6
But still it didn't worked.
|
|
|
|
|
garga1 wrote: Plse can u tell me how to display videos in Asp.net 2.0. I used following codes.
ASP.NET has nothing to do on displaying video. You can try some HTML tags which helps for this. Do you mind to do a search[^] before you post it over here ?
|
|
|
|
|
hi
i have a aaplication in which i have store the dataa in hindi and and when i write in textbox in hindi it will appear in hindi but store in database in english can anyone help me how i overcome with this problem
the code is:
<asp:TextBox ID="TextBox1" runat="server" meta:resourcekey="TextBox1Resource1" Style="z-index: 102;
left: 370px; position: absolute; top: 89px;font-family:Kruti Dev 010;" ></asp:TextBox>
thanks in advance
|
|
|
|
|
Ravi_21 wrote: database in english
Which is the data type you are using ? Try using nvarchar which can store utf encoded characters.
|
|
|
|
|
i m using nvarchar but the problem is when i type in textbox it appear in hindi but store it in english
<asp:TextBox ID="TextBox2" runat="server" Style="z-index: 103;
left: 364px; position: absolute; top: 40px; font-family:Kruti Dev 010; font-weight:bold;"></asp:TextBox>
|
|
|
|
|
What Happens When u fetch data from database is it in form of hindi or english?
i think it will be stored in database in only english, but while getting data from it it should display in hindi
Believe Yourself :->
|
|
|
|
|
no it will appear in english please help me its urgent
|
|
|
|
|
Ravi_21 wrote: please help me its urgent
Don't think so. You are being rude demanding people help you right away.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
This is from Chandrakanth.
I am doing Encrypt and Decrypt ther Password.
Regarding Encryption I am saving Password in different format.
I want to decrypt the Password from DataBase.
How can i go for that. Is there any source code means please send me that.
Thanks And Regards
Chandrakanth
Chandrakanth
|
|
|
|
|
You may google about how to encrypt and decrypt in C#. C# encryption and decryption
but I have a few suggestions for you.
1. There should NOT be any decryption for password. [ Encrypted == Encrypted ]
In our projects, we never use the encryption method that can be decrypted. This is for security reason.. If we wanna verify whether a particular password is correct or not, we match the encrypted password from database and the encrypted password that is encrypted from the plain text which is typed by user...
2. Password should not be stored what the user entered.
For example, the user set the password "abc123". then, we append some checksum or something to the password. (e.g. "abc123" + "USR1092" ) then, we encrypt this text and save it in the database.
3. The password should not be sent to the user in plain text format if the user lost the password.
In case the user lost the password and he/she wanna recovery then you should give the user a way to reset the password.. (You should not mail the decrypted password back to the user)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Michael Sync wrote: There should NOT be any decryption for password.
Yes it's a secure method. Hashing right ? But it always annoys the developers to test the functionality. It annoys user too once they forgot the password. But security point of view, it's the best.
|
|
|
|
|
N a v a n e e t h wrote:
Yes it's a secure method. Hashing right ?
Yeah.
N a v a n e e t h wrote: But it always annoys the developers to test the functionality
haha.. ya..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Michael Sync wrote: 2. Password should not be stored what the user entered.
For example, the user set the password "abc123". then, we append some checksum or something to the password. (e.g. "abc123" + "USR1092" ) then, we encrypt this text and save it in the database.
I mean, password with salt
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi ..Frd....once try this code...this is decryption..
private string Decrypt(string strText, string sDecrKey)
{
byte[] byKey;
byte[] IV = {18, 52, 86, 120, 144, 171, 205, 239};
byte[] inputByteArray;
// inputByteArray.Length = strText.Length;
try
{
byKey = System.Text.Encoding.UTF8.GetBytes(sDecrKey.Substring(0, 8));
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
inputByteArray = Convert.FromBase64String(strText);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(byKey, IV), CryptoStreamMode.Write);
cs.Write(inputByteArray, 0, inputByteArray.Length);
cs.FlushFinalBlock();
System.Text.Encoding encoding = System.Text.Encoding.UTF8;
return encoding.GetString(ms.ToArray());
}
catch (Exception ex)
{
return ex.Message;
}
}
Naik M
|
|
|
|
|
Hi
i want to get list of users of sharepoint and send to them an email.
do any body know about it?
|
|
|
|
|
Do you want to send an email to more than one user?
God is always with you.
|
|
|
|
|
yes. one or more than one. both of them. plz
|
|
|
|
|
Create a mailing list and add emails to that list.
message.To = txtEmail.text
and the server can take the rest of actions.
try this link for more details:
http://www.aspheute.com/english/20000918.asp
Let me know whether it is working for you.
God is always with you.
|
|
|
|
|
Hi Dear
I have 2 problem :
1- in getting list of sharepoint users?
2 sendeng email for them.
ur solution is just solve my secend problem but first i can get the list of sharepoint users.
thanks for ur help.
|
|
|
|