|
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
|
|
|
|
|
|
Hi guys
My problem is this . I need to generate a large number of records from SQL server 2000 to and excel spreadsheet. However the durations of time id too long. For about 900 records there's about 40 min.
Any idea or guide to boast up the speed?
i am generating to excel .xls
Basically i have a main details table link to many sub details Table
Then first i select all the main info id and use the for loop to loop through all the sub details table whether the id is match. then insert into the excel spreadsheet. The method i use is Create the XLS file then connect to it and do insert statement to input data. This method work but when inserting 900 records it took about 30 mins or more....
Any suggetion or solution please guide.... Need help man
Thanks a million guys need it urgently
KaKaShi HaTaKe
|
|
|
|
|
Why are you asking this in the ASP.NET forum ?
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 )
|
|
|
|
|
Becasue i am using ASP.net to generate the reports. Is a Web applications
KaKaShi HaTaKe
|
|
|
|
|
OK, but it doesn't relate to the presentation tier, so it's really a VB.NET or C# question. I'm only saying because asking in the right forum will get you more coverage and more answers.
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 )
|
|
|
|
|
OK got it thanks bro
KaKaShi HaTaKe
|
|
|
|
|
hello frnds,
i have .Net framework 2.0 installed on my machine, I was developed one website which was run fine. But yesterday i upgrade the SP1 of .Net framework and my site gives scripting errors over there. i used Javascript, VBScript in website and take HTML buttons.
what should be the problem ???
any setting after installing SP1 ???
Thankx in Advance
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: But yesterday i upgrade the SP1 of .Net framework and my site gives scripting errors over there.
Really?? I too have websites which is developed in .NET 2.0 framework previously and I have upgraded my VS 2005 with SP1. They are working fine as before.
koolprasad2003 wrote: what should be the problem ???
What is the error, you are talking about? Could you please post somemore information about your errors?
Did you tried to convert you websites to web applications??
|
|
|
|
|
Hi All,
I have created a table called tblState in access with 2 columns: id and state and am populating a dropdownlist with state.
I am in need of code to delete a selected value of dropdownlist from database in asp.net2.0 using c#.
Can anybody help me please.
Thanks
Wajid
|
|
|
|
|
On postback, you can tell what your selected item is, what you need to be able to do, is turn that into an id you can use to delete the right record in the database. You do that when you populate the list, by using the unique ids as the data value for the list item ( the value that is not displayed )
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 Guy
do this way, put ur dropdwon list with Updatepanel,When you desired delete a item from the dropdownlist,first get the ID when u selectedValue, after send that ID to ur Database acces code and delete,after select all from the database and bind again to DropdownList,if you put in the updatepanel, doesn't take much more time for this operation.
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
The OP never mentioned anything about needing asynchronous processing. Why are you suggesting using an UpdatePanel?
Ravenet wrote: put in the updatepanel, doesn't take much more time for this operation.
It takes just as much time as without an update panel. UpdatePanel just gives the user the perception of a faster operation because of the out-of-band processing and no page refresh.
only two letters away from being an asset
|
|
|
|
|
But, AJAX is the new magic bullet, didn't you get the memo ?
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 )
|
|
|
|
|
Yes exactly.
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
I was being sarcastic.....
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 )
|
|
|
|
|
Guess he didn't get the memo
only two letters away from being an asset
|
|
|
|
|
Hi Guy
I think we want do fast work for that, becuase if when he select a item from the dropdownlist and process delete command, he wihs's delete from the database, so we must bind data again to dropdownlist, so i thought we reduce the time for the operation since, suggest AJAX update panel.
Just use ad tell me, how about applciation perfomance this operation
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
The time it takes to perform the operation will not be reduced by using an UpdatePanel!!
only two letters away from being an asset
|
|
|
|
|
Hi Guy
i told not loading and getting and binding operation time man, i told page refresh and data show time. means, if u use update panel, postback time is very very less.
Cheers
RRave
MCTS,MCPD
|
|
|
|