|
I guess 420 HTML Controls means 420 Server Controls (label, datagrid, button etc) In that case you should really take a look at caching! Rendering 420 Server controls uses cpu! Split the page in several usercontrols if you need to partial cache tha page.
Maybe you could post some code?
|
|
|
|
|
HI
There are many causes that leads to high memory usage and CPU conspumtion.
First of all it depends on your approach .
Do we need to have server side validation even we can do it at client side ?
You are using 420 html controls in one page ? i think you should divide them by making different controls .......
Can you tell What exatly are you doing ? Any bussiness logic ?
Are you using COM component ?
Are you closing all the instances ?
Many more
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Anytime I hear 100% cpu utilization I think loop problem. Often infinite loop. I would remove your looping validation and see if the CPU utilization goes down. If it does then you know your validation loop is the problem.
Hope that helps.
Ben
|
|
|
|
|
Hi, i need to send the selected date back to the parent form..i tried many ways...one of them is
in selection_change event of calender, i have :
strSelectedDate = Calendar1.SelectedDate.ToString("dd/MM/yyyy");
strFormName = Request.QueryString["FormName"];
strCtrlName = Request.QueryString["CtrlName"];
string java =
""+
" window.opener.document.forms['<%="+ strFormName +"%>'].elements['<%="+ strCtrlName+" %>'].value = '<%="+ strSelectedDate+" %>';" +
" window.close();" + " ";
Response.Write(java.ToString());
this should work...but it doesn't close the calender popup window and populate the date in parent form,...which shld happen...
could anyone plz tell me what is wrong...
thanks
Dee
|
|
|
|
|
I would guess you have a javascript problem. Most likely the control name you are passing it is not the actual control name. You would need to put the Control.ClientID into the querystring for the control name to be correct. So I would guess you get a javascript error and never make it to the window.close
You can debug the javascript. Let me know if you want to know how to do that.
Hope that helps.
Ben
|
|
|
|
|
Hi,
yes i would want to know...
|
|
|
|
|
Go to Tools then internet options.
Go the the advanced tab
Un check disable script debugging.
Then in the browser when the app is running you can go to view script debugger.
That will open into your source code if you are running the web site in debug mode with visual studio.
Ben
|
|
|
|
|
|
I have a main page. This main page contains a usercontrol. This usercontrol has another user control which contains a textbox. The text box value is set in a property.
I want the property name with the value from the main page. How can i get it?
I have tried the following:
main page.aspx
==============
<uc1:CtlGridCheckBox></uc1:CtlGridCheckBox>
main page.aspx.cs
=================
string a;
UserControl us = (UserControl)this.CtlGridCheckBox1.FindControl("CtlGridCheckBox1_1");
TextBox txt = (TextBox)usFindControl("text");
a = txt.Text;
CtlGridCheckBox.ascx
=======================
<uc1:CtlGridCheckBox1></uc1:CtlGridCheckBox1>
CtlGridCheckBox1.ascx.cs
=======================
string _name;
public string Name
{
get { return _name; }
set { _name = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
_name = text.Text.ToString();
}
In this CtlGridCheckBox1 is within CtlGridCheckBox.
CtlGridCheckBox1 has the property "Name" whose value I want to access in main page.
Its urgent......
Sandeep Kumbhar
-- modified at 1:21 Friday 25th May, 2007
|
|
|
|
|
Its urgent
Sandeep Kumbhar
|
|
|
|
|
i have a gridview in which i have edit and delete links on each row. i want to edit the row where i get textbox in place of fields . But they are empty. the data is not there . i want to change that and edit it. Pls help me out with the coding.
thanks in advance. i need to do it very fast .
|
|
|
|
|
Hi,
You can get a lot of this stuff just by a quick search...here is just one
Check this
<< >>
|
|
|
|
|
Actually on clicking the edit link i am not getting the previous values in the textboxes . so how it is to be done . i am not doing the way it is done in this article. i am taking my database separately.when i click edit i get textboxes but i get them empty.
|
|
|
|
|
ritu4321 wrote: i am not doing the way it is done in this article. i am taking my database separately
So what is your approach?
<< >>
|
|
|
|
|
i want to know how to do now .
|
|
|
|
|
Sorry man... as I dont know what are you doing? What is your code to process the edit buton click? Do you populate data into those textboxes in this handler or not?.....Cannot help you out till having your code...
<< >>
|
|
|
|
|
You can do that by changing the code in html view.
for example u have a column with name "Column0" in your grid
u want to see text in textbox on it's edit and insert mode
for that just go in your html view and in edittemplatecolumn tag with search the text property of your textbox and change it
text='<%#bind(databaseColumnName)%>'
hope i make my self clear to u
|
|
|
|
|
How can I use webpartmanager without installing SQL 2005 express?
Can any one please help?
pchakma_buet
|
|
|
|
|
Hi All...........
I have a situation like ,i need to upload Excel file and i need to store it in database, my table fields and xl sheet fields are same. can you please send me code to write under upload button...
Its very urgent ..plz.........
Suresh.R
|
|
|
|
|
sooreeagt wrote: my table fields and xl sheet fields are same
Do You want to upload or want to store field by field value of xl sheet to DB fields?
if you want to upload refer this
http://www.codeproject.com/aspnet/fileupload.asp[^]
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hi All...
I have a datagrid with values bound to it..I have two columns in the datagrid.The first column is the name field and the second column is age field..Now i need to higlight the highest age which is found in the datagrid..I want to differentiate it from other rows by giving some color differences in the datagrid...
Someone help in this regard....
Balaguru
|
|
|
|
|
Here is the idea...IMO
- You find the highest age from data...
- In the ItemDataBound event, you get the value of the second cell and compare this one with the highest one. If equal, change background color for this cell or whole row...that's up to you
Hope you get the idea
<< >>
|
|
|
|
|
Hi..
Could u be more specific..? Canu give me some sample codes to do that..?
Regards,
Balaguru
|
|
|
|
|
Balagurunathan S wrote: Could u be more specific..?
What do you need me to explain more....?
Balagurunathan S wrote: Canu give me some sample codes to do that..?
As I do not have the specific code for that purpose now...
Just try by step thruogh...and post your question here to tell us what are you stuck on?
<< >>
|
|
|
|
|
Hi
You can change background color in ItemDataBound if you have row number with highest age as given below: "0" --> row with highest age
if (e.Item.ItemIndex.ToString() == "0")<br />
e.Item.BackColor = Color.Beige;
Or Get row number using for loop. Set this row no in a hidden variable. Use this hidden varible to change the background color.
DataGrid1.Items[0].BackColor = Color.Beige; //Change 0 to your hidden variable.
Hope you got it.
Harini
|
|
|
|