c# - Checking a stream in kilobytes -


i want check if stream on 100 kilobytes.

i have this:

   int size = fileupload1.postedfile.contentlength/1024;         if (size<100)         { 

is way it?

another thing want know, how can autosize picture image control.

i remember winform image control has autosize property..but dont see 1 in asp image control

it looks right it, yes

for imagecontrol: set height , width imagecontrol , image scale. if dont set height , width control sets appropiate height , width itself

<asp:image id="img1" runat="server" height="400" width="400" imageurl="whateverurlhere" /> 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -