|
Hi dears,
I have an uploadFile server control (in asp.net 2.0) which is uploades users images . how can I upload selected image to server by changing its height and width to a specific size and then save it?
plz help me
regards,
|
|
|
|
|
//save the image to the disk.
//load the image.
Image image = new Bitmap("myfile.bmp");
Image pThumbnail = image.GetThumbnailImage(100, 100, null, new
IntPtr());
image.Save("myfile.bmp");
|
|
|
|
|
thx but an error occurred with this message :
A generic error occurred in GDI+
I think the file is used by another proccess so it cant rewrite it...?!
|
|
|
|
|
Check this post
http://www.codeproject.com/aspnet/netimageupload.asp
keep Learning and you never will be out of date...
|
|
|
|
|
hi all,
can anyone help me in creating "webcustomcontrol" of wizard control in asp .net 2.0.
i tried but cudnt get the one i required.i always get the first page with single button "Next" on it. theres no traversal for next page.
has anyone tried doing so ?
Thanks
ShadesRulz
|
|
|
|
|
Hi friends,
Can anyone help me in finding out a suitable algorith which will create distinct cipher each time?
For example if I give Encrypt(5)and if I get value s 2
when I give next time Encrypt(5) I should not get 2, I have an application where values can be {1,2,3,4,5}, I dont want to store it plain text in DB, if I encrypt, I have to make sure by any chance one who enter into DB can compare the encrypted values and reach in conclusions, is it possible by any means to avoid it?, I should be able to decrypt also, through program, I mean encrypt with respect to time or anything?
Thanks in advance!!!
Cheers
Sony Sebastian
Nothing is Impossible
|
|
|
|
|
Dear All,
How can database schema handle the multi-user environment and Synchronizationin webservices.
Thanks
|
|
|
|
|
In my asp.net 1.1 application i have 4 ListBoxes i.e., Category1, Category2, Category3, Category4.
if u select Category1, it will finds from DB and populates in Category2 ListBox. liket this i am populating Category4.
Here Each Category is having CategoryName, CategoryID and its languageid(each category is having each languageid).
I want to avoid the DataBase Trip each time.
My question is how to cache the whole data & How to retrieve the data from cached. We can store in 4 different Sessions also. but in which format to store(it is having name, value1, value2)
How to do this? anybody give me the solution for this.
?
regards
GV Ramana
|
|
|
|
|
Ramana. G.V wrote: We can store in 4 different Sessions also. but in which format to store(it is having name, value1, value2)
Create a datatable, pump the data in that and then put that datatable in session in order to reuse it.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Or save it all on the client side (if you don't like your users) in javascript array - this way you can use script to populate the listboxes at runtime, avoiding postbacks.
|
|
|
|
|
There are a number of ways that you can attack this problem. The correct solution depends entirely on the nature of your application. Our developers usually create some sort of "Cached Items" class that manages data within a cache. If your data set isn't too large, you may want to store all of the unfiltered data in a single data set and use the DataRelation to define the relationship among the tables in the DataSet used to populate your ListBoxes. Whenever a list box is changed, use the relationships defined in your filter the data as needed and rebind the filtered data to the list boxes.
For example, you could so something like this:
intenal static DataSet Categroies<br />
{<br />
get<br />
{ <br />
DataSet data = HttpContext.Current.Session["CategoryData"] As DataSet;<br />
if(data == null)<br />
{<br />
data = <br />
HttpContext.Current.Session["CategoryData"] = data;<br />
}<br />
return data;<br />
}<br />
}<br />
<br />
internal static GetCategory2Data(string category1)<br />
{<br />
DataView category2 = Categories.Tables["Category2"].DefaultView;<br />
category2.RowFilter = string.Format("Category1 = {0}",category1);<br />
return category2;<br />
} <br />
Here data is being stored in the session. You could also use the Application or Cache object to store the data globally so long as you account for multi-threaded/multi-user access into account.
|
|
|
|
|
Y not u use ajax???
Lets work it Out.........!
|
|
|
|
|
Hi! I'm using ASP.net 2.0.Sometimes a file named App_Offline.htm gets created by itself, which displays message that application is currently offine. Any idea why it gets created automatically or how to stop this? Thanks a lot.
|
|
|
|
|
I guess this kind of things will happen
1. when your hosting server receives the more than requestlimit and size
2. when you workprocessor size limitation occurs.
|
|
|
|
|
Hi, All
I want to get Message page has expired In Asp.net.
I want to show message page has expired when clicking on Back button in
Browser.
I tried
Response.AddHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT")
Response.AddHeader("Last-Modified", Now & " GMT")
Response.AddHeader("Cache-Control", "no-cache, must-revalidate")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
But it doesn't show the message i want to display.
Thanks
|
|
|
|
|
Hi May be u should try window.history.forward(1); through javascript so that back button can not be used.
Regards
|
|
|
|
|
Hi, thanks for reply
but i just want to know, how to get that message (page has expired).
Thanks.
|
|
|
|
|
hi dear,
i have two textboxes in filled with the dates by user, now on button click i want that third textbox should filled with difference between both dates in days...
regards
vishal sharma
Thanks & Regards
Vishal Sharma
vishalsharma556@yahoo.co.in
|
|
|
|
|
This is how you can get that:
DateTime dt1 = <some date="">;
DateTime dt2 = <some other="" date="">;
TimeSpan ts = dt1 - dt2;
int days = ts.Days;
Best Regards,
Apurva Kaushal
|
|
|
|
|
Use the Substract method of the DateTime object to get the difference as a TimeSpan. The TimeSpan structure has properties that you can use to get the number of days.
---
b { font-weight: normal; }
|
|
|
|
|
How to make transparent browser windows in ASP.net?
|
|
|
|
|
Set its Opacity property.
|
|
|
|
|
Hi, Thanks for your reply. I am able to set the transparency of windows forms in C# and VB using Opacity property. But what i need is to set the opacity for the web browser windows in ASP.net. Could you please help me with this?
|
|
|
|
|
I am not sure where you would like to apply, but i am giving a sample.
this style attribute can be applied to any html element.
|
|
|
|
|
I use asp:ImageButton rather than use asp:Button as a button, so how i make the imagebutton handle the btn.click ( function of button click already done at vb code behind) in html view ?
-- modified at 5:27 Monday 18th September, 2006
-- modified at 5:28 Monday 18th September, 2006
Best regards,
Chee ken
|
|
|
|