|
Hi Guys, Anyone can help me with this question,
When i created a var session like this one Session["Var1"] = "1234567890"
which amount memory used the Server to save the var onto Ram Memory
Exactly 10 Bytes?, an default memory amount for small var (Ex, 1 Kb)
?¿?¿?
Thanks
Gracias
keep Learning and you never will be out of date...
|
|
|
|
|
You can try a test web page to test it. Try something like this:
private ProcessInfo po;
public int GetIteration
{
set{ ViewState["Iteration"] = value; }
get
{
if(ViewState["Iteration"] != null )
{
return (int)ViewState["Iteration"];
}
return 0;
}
}
private void Page_Load(object sender, System.EventArgs e)
{
po = ProcessModelInfo.GetCurrentProcessInfo();
if( !Page.IsPostBack)
{
lblOriginal.Text = po.PeakMemoryUsed.ToString();
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
// Add to session
for( int i=0;i<100000;i++)
{
Session["Test" + GetIteration.ToString()] = "1234567890";
GetIteration = GetIteration + 1;
}
lblCurrent.Text = po.PeakMemoryUsed.ToString();
}
|
|
|
|
|
IsolatedStorageFile.GetStore(
IsolatedStorageScope.User | IsolatedStorageScope.Assembly,
null,
null))
|
|
|
|
|
Have you tried here?
http://msdn2.microsoft.com/en-us/library/29ks7wa3.aspx
|
|
|
|
|
do i have to add dynamic buttons(added at runtime ) to the page at each post back ?
WHY does ViewState property of placeholder Not Keeps my dynamic buttons?
I tried also panel, but it doesnt keep my dynamic buttons too.
|
|
|
|
|
You need to add the buttons during the oninit event of the page during each postback and the viewstate will be maintained.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
can we create classes in web service
|
|
|
|
|
no, a webservice can only have methods.
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
no, a webservice can only have methods.
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
I put some iframe in a page. then I need change its 'src' value in javascript.
but I can get the iframe object, it always return 'undifined'. I tried the
'document.getElementById' method and 'window.frames['xx']'.
at last, I did a test want to know how many frames in the page. so I use
'window.frames.length' to get the count. but it always return 0.
where did I wrong? Thanks in advance.
|
|
|
|
|
If I put an iframe in a page, window.frames.length returns the value 1.
Do you try to access the frame before it's loaded?
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: Do you try to access the frame before it's loaded?
It seems 'Yes'. I wrote 'window.frames.length' in head part. the page doesn't loaded.
I will try it after page load.
Thanks for your reply.
|
|
|
|
|
I read a lot of articals on net via google.
but none of them is about event handling of controls was created at runtime For example in for next loop.
'Creation Part<br />
Protected Sub btnCreateRuntimeButtons_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCreateRuntimeButtons.Click<br />
For i As Integer = 0 To CInt(txtNumberOfButtons.Text)<br />
Dim btn As New Button<br />
btn.Text = i.ToString()<br />
AddHandler btn.Click, AddressOf Me.btnClicked<br />
Panel1.Controls.Add(btn)<br />
Next<br />
End Sub<br />
<br />
'Event Part btnClicked event is never raised :'( i wanna die :'( <br />
Protected Sub btnClicked(ByVal sender As Object, ByVal e As EventArgs)<br />
Dim btn As button = CType(sender, button)<br />
Response.Write(btn.Text & "th button is clicked")<br />
End Sub
please help and run this code :'(
|
|
|
|
|
Are you reestablising the event handler on PostBack since this is a dynamically created control?
only two letters away from being an asset
|
|
|
|
|
do i have to add dynamic buttons to the page at each post back ?
WHY does ViewState property of placeholder Not Keeps my dynamic buttons?
I tried also panel, but it doesnt keep my dynamic buttons too.
|
|
|
|
|
Becuase the buttons are dynamic, you must re-connect the event handlers on postback
only two letters away from being an asset
|
|
|
|
|
i have a commonClass in application.
Public Class CommonClass<br />
Enum ShoppingType<br />
SavedBaskets = 0<br />
ShoppingListIDid = 1<br />
End Enum<br />
End Class
In aspx pages i code dim xST as CommonClass.ShoppingType
it works in local machine, but i upload files to ftp, it says Type CommonClass.ShoppingType is not defined
What is missing :S
|
|
|
|
|
Have you tried moving the Enum definition out of the class definition, then creating a member of that type?
|
|
|
|
|
hi,
Can we save image from excel file to database?
|
|
|
|
|
|
Hi,
Can any one suggest me how to read an block of content from an file and replace the content alone with new content using File concept in Asp.net??
For Eg:
.txtbold
{
font-family: Verdana;
font-size: 11px;
font-weight: bold;
color: #000000;
text-decoration: none;
}
.les10gests_txt
{
font-family: Verdana;
font-size: 11px;
font-weight: normal;
color: #ffffff;
text-decoration: none;
}
In the above, I want to read the content of .txtbold i.e font....to ....none; and also to replace this with new values if needed.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
I noticed your earlier post and just thought I should mention that the CSS sits on the web server not the client machine so allowing one user to re-write it will affect all users. Dependant on circumstance I'd probably either look into something like isolated Storage[^] and maintaining a users preferences in XML format on the client machine, or having a limited set of pre-defined css 'styles' and allow users to choose which particular style is used to format the page when they view it.
Just my 2p
Rhys
I'm glad I'm not Brezhnev. Being the Russian leader in the Kremlin, you never know if someone's tape-recording what you say. Richard Nixon
|
|
|
|
|
Hi,
Here i am mentioning the admin as user. Coz we are creating an globalized web site can be adapted by many users with out chaning buy an designer or developer. We provide all opptions to the admin of the site to change the display
Know is Drop, Unknown is Ocean
|
|
|
|
|
how to create dynamic theme with asp.net 1.1 (vb.net)
thx
|
|
|
|
|
This link will help you. http://dotnetjunkies.com/WebLog/csteen/archive/2005/01/30/49164.aspx
Regards,
Thomas
|
|
|
|