|
Sounds like the viewstate is getting bigger and bigger. Try disabling the viewstate altogether, perform a few postbacks and see what happens to the memory then.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
uhh... i H-A-T-E viewstate but it's just too convenient. Do you think it's a good idea to store the between-postback data in session instead? If so, would you suggest storing it on client or server?
Nila
|
|
|
|
|
I would just assess what needs to be stored in the viewstate and then turn off anything that doesn't. Yes, it is convenient, and to be honest it is a huge time saver. Bear in mind that the "memory consumed" at the browser should be reclaimed whatever was used.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Grapes-R-Fun wrote: Do you think it's a good idea to store the between-postback data in session instead?
Remember that session state is stored on the server. If you have a site with 100's or 1000's of users, that can be a real drain (depending on how much you store) on the server and reduce the number of users you can serve. Also if you use a webfarm it becomes much more challenging using session state this way.
only two letters away from being an asset
|
|
|
|
|
Silly me, I must have confused the session with cache
During the most severe case, at most I will have 400 people using it, and I have only one virtualized server (that's another 'uhhh' story) to dish out this app.
Now when Im done with a variable that is stored in session, if I set its value to null will the space be conserved, or do I pretty much have to abandon/timeout session all together?
Nila
|
|
|
|
|
The memory isn't really going to be recovered until the GC gets around to it. Although it doesn't seem as though your app would have any difficulties if you limited what you were storing. Keep in mind that IIS will scavange memory when needed, so you may lose session state from whatever sessions it determines are no longer in use, even if they are.
only two letters away from being an asset
|
|
|
|
|
Thanks a bunch Mark!!
I really like your signature, btw - it's so witty
Nila
|
|
|
|
|
hi nila..
thank u very much...
keep in touch
|
|
|
|
|
I have problem with paging of gridview control.
Guys can u tell me does grid view control contain scrolling property?
I am working on visual studio 2005.
Actuallly i want to display some data that i retrive it from wmi query..
But the data is so large., it could manage it in one page..
but still to see the data i need to scroll Iexplorer scoller.
So i want to provide scrolling property to grid view control.
Do u know how to do it?
|
|
|
|
|
You can set your gridview's width to 100% then put it inside a Panel control. Panel can be set to be scrollable...
Nila
|
|
|
|
|
You are welcome dear, codeproject is here just for times like this
Nila
|
|
|
|
|
Any one who have worked on Google APl's. Please Help me I have some problem in uploading pages. It works fine localy but when I upload it, it does not work.
Thankx in Advance
|
|
|
|
|
Have you generated the proper key for your stage/production server? Can you post your script so we all can take a look at it?
Nila
|
|
|
|
|
Can u please give me ur id of yahoo so that we can discuss it properly.
Yahoo or Skype
|
|
|
|
|
Safecom wrote: Can u please give me ur id of yahoo so that we can discuss it properly
Keep it on the forum - so we can all benefit!
|
|
|
|
|
Hi,
I've been working on local host to create a webform in asp.net. now I'supposed to deploy it on another server how could I do this?
Thank you
|
|
|
|
|
There is no need to deploy this just uplad it on server. It will work
|
|
|
|
|
|
Yes . Just copy ur pages and upload it to ur domain. But keep in mind that ur link should be like ur local.
|
|
|
|
|
Hello.
I would like to give my user the option to browse his files (like the simple fileUpload control do) and after selecting the file (and when the fileUpload control hold in his text box the full path and file name) I want to press another button and get the path+file name as a string.
I want to do this with out actually upload the file. I use the fileupload just for his browsing option.
the problem is that after selecting the file, the fileupload have a property called "fileName" that only return the file name and not the path.
Also, if i type a file name myself and not choosing it with the browse - It doesn't even recognaize it as a file name.
Any help?
How can I have a simple browsing control that save path+file name?
thanks!
|
|
|
|
|
Have you tried this?:
ASPX:
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:TextBox ID="TextBox1" runat="server" /> CODEBEHIND:
FileUpload1.Attributes.Add("onChange", "document.Forms[0].TextBox1.Value=document.Forms[0].FileUpload1.Value");
|
|
|
|
|
Hi.
Thanks for the post.
I Found a better solution.
I tried the "fileupload1.filename" and what I should have tried was "fileupload1.postedfile.filename".
That do the trick
smart and simple
Thanks again.
|
|
|
|
|
I have HTML content/text in a string variable and i want to print that
(which looks like the one that appear on the browser).
I found the below code in Code project only and i used the same:
using HtmlPrinter;
HtmlPrinter.HtmlPrinter hpobj = new HtmlPrinter.HtmlPrinter();
hpobj.PrintHtml(txtString.Text,true);
But it is not workin for me. It is giving the following error:
"ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment."
How can i fix this bug? What did i miss here?
Any work arounds please...
Really appreciable if you can help me...
Srini
Hyderabad
|
|
|
|
|
Hi,
Why don't you try using DHTMLEditClass and set the DocumentHTML property with the HTML text you are having.
You can then make use of PrintDocument method and pass 1 as a ref parameter to show the print dialog.
You can get some help from MSDN as well.
Hope it solves all your issues.
Thanks
Sameer
|
|
|
|
|
Hi,
I don't know that it is possible or not.
I have to crate logo for that i use flash to customize the image and text, for that i used 3 movie clip of flash and succeded in positioning clips (i.e text below or above image,change font,size of image/text) ,now I have to save all of them as a single image to use it as a logo but i am not getting any way for that.
Thanks in Advance!
|
|
|
|