|
|
Hi friend
Give me an idea for image encryption and decryption in asp.net 2.0. I am try same as txt file encryption and decryption it is not working.
Prasanna Kumar.B
|
|
|
|
|
Well, if you posted your code and defined 'not working', perhaps we could help.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
What is the problem you are encountering? I guess it has a good comprehensive code snippet over there.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
its working good for 'txt' files,But same code use for image files encryption and decryption is done successfully but i cann't see the image in decrpted image(jpg) file.
Prasanna Kumar.B
|
|
|
|
|
I Have web.config file as follows
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appsettings>
<connectionstrings>
<add name="DbCnn" connectionstring="server=66.112.112.65;database=test;uid=test;password=attctest">;
..............................
When iam connecting to the server an occured like follows
"EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'." string
pls help me it's very urgent for me....................pls anybody
|
|
|
|
|
georgegarvasis wrote: pls help me it's very urgent for me....................
Of course it is. But not enough to try google ?
I can't see your config file. But, that error means that your stored proc doesn't allow the user you're logging in as to execute the stored procedure in question. It's a database configuration issue.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to authenticate the aspx pages in asp.net. How can we do this. Please anybody help this.
Regards
M.Ramesh
ramesh
|
|
|
|
|
The obvious way is to store something in the session to say you're logged in, and to make all your pages derive from a base page that redirects to the login page if that is not set.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
I am having problem with reading configSections from web.config file.
Can anyone provide a sample code, how to read this group.
Following in the web.config:
<configurations>
<configsections>
<sectiongroup name="merchants">
<sectiongroup name="merchant" type="System.Configuration.NameValueSectionHandler, System, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
</sectiongroup>
</sectiongroup>
</configsections>
<merchants>
<merchant>
<add key="name" value="shehzad" />
<add key="url" value="localhost" />
</merchant>
</merchants>
I am trying following code to read but the object a contains null value.
NameValueCollection a = (NameValueCollection)ConfigurationSettings.GetConfig("merchants");
Shahzad Aslam
Software Engineer
modified on Wednesday, February 13, 2008 12:38 AM
|
|
|
|
|
web.config file text
<code><configuration>
<appsettings>
<add key="connection" value="User ID=11;password=111;DataBase=11111;Data Source=localhost" />
<add key="MyPractice_DataAccessLayer_Type" value="11" />
<add key="111" value="111" />
</appsettings>
<connectionstrings>
<add name="MyPracticeConnectionString" connectionstring="Data Source=RAJEEV;Initial Catalog=MyPractice;Integrated Security=True" providername="System.Data.SqlClient" /></connectionstrings></code>
to read that
in c#
using system.configuration;
string connectionsttring=configurationmaneger.appsettings["connection"].tostring();
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
modified on Wednesday, February 13, 2008 12:48 AM
|
|
|
|
|
This was not the one that I was expecting. The appsettings section can be read easily but my concern was to read ConfigSections group which we used for our customized section.
Shahzad Aslam
Software Engineer
Softech Systems Limited
Email: shehzadaslam@hotmail.com
|
|
|
|
|
Hi,
hope this link[^] will hwlp you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
In VB.NET
First U imports comfig setting
Imports System.Configuration
Ofter that u get AppSetting value
dim str as string = ConfigurationManager.AppSettings("serverurl")
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
hi every buddy
i am using image signature in a page .
in situation of wrong text input, image must be change without refreshing all data of page. then how to reload image signature on the page in that situation where real image in on the other page .
please give me a solution
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
RajeevKumarSharma wrote: without refreshing all data of page
This means AJAX, or it means changing the image URL using javascript, if you know what the other image is when the page is generated.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
actual problem is that
1- image crated on the imgvar.aspx
2- calling that image on registration.aspx
<asp:image id="Image1" runat="server" imageurl="~/imgvar.aspx">
3- and now if user enter the wrong signature then that image should be change . then how to refresh that image and imgvar.aspx page for new image.
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
well, imgvar.aspx does not exist anymore. So, you need to know what image you want to show, either on the server ( which means an AJAX call ) or have it embedded in the script if you know it, so you can just set it on the client. But, if you need to store some data so the next time the user goes to imgvar.aspx they see a different image, then you probably need the AJAX call if you don't want a postback. imgvar.aspx will need to rebuild itself to show the new image you want it to show, and it will need to do that in response to state that is stored ( probably in your database, I am guessing ), by the ajax call from registration.aspx.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Refer a capcha implementation here:
http://www.codeproject.com/KB/aspnet/CaptchaImage.aspx[^]
To refresh the image, simply have a JavaScript function which sets a blank.gif and set SRC value as a new call to aspx page with a random number to prevent caching.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I want to open the tif files in web pages. but picture box will not support tif files. How convert tif files into gif or jpeg files programatically when i retrieve the data from database (I am storing only the path of picture files).
|
|
|
|
|
Really, you need to run a batch converter to convert them into the right format at the point of storage, not at the point of retrieval. GDI+ will load a tif, and store it as a jpg.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you. I too think so. But the images have been stored already. Is there is no way to solve this problem?
|
|
|
|
|
Not really - you can write code to generate a new jpg out of the tif image, but that seems like a pain to me. Why not just run a batch converter, then do an update to your db to replace .tif with .jpg ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
In that case I have to update the database. Thank you Graus.
Chaitra N
|
|
|
|