|
Well, you know where to look; the post back event uses 3.5 seconds, that's where almost all the time is spent. If saving the information takes less than a second, what do you do other than that?
---
b { font-weight: normal; }
|
|
|
|
|
That's the weird thing. I am not doing anything other than call my update function. When I put a custom message Trace.Warn("Before ButtonClicked handler.") This is what it displays:
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000412 0.000412
aspx.page Begin LoadViewState 0.000440 0.000027
aspx.page End LoadViewState 0.000944 0.000504
aspx.page Begin ProcessPostData 0.000967 0.000023
aspx.page End ProcessPostData 0.001165 0.000198
aspx.page Begin ProcessPostData Second Try 0.001258 0.000092
aspx.page End ProcessPostData Second Try 0.001282 0.000025
aspx.page Begin Raise ChangedEvents 0.001301 0.000019
aspx.page End Raise ChangedEvents 0.001331 0.000030
aspx.page Begin Raise PostBackEvent 0.001349 0.000019
Before ButtonClicked handler. 3.498082 3.496733
aspx.page End Raise PostBackEvent 3.541860 0.043778
aspx.page Begin PreRender 3.541911 0.000051
aspx.page End PreRender 3.542067 0.000156
aspx.page Begin SaveViewState 3.544194 0.002127
aspx.page End SaveViewState 3.544302 0.000108
aspx.page Begin Render 3.544323 0.000021
aspx.page End Render 3.547021 0.002698
So I wonder what else happends between Begin Raise PostBackEvent and my actual postback event?
Regards,
Albert
-- modified at 15:57 Tuesday 28th November, 2006
|
|
|
|
|
Is that the first line in your event handler?
Do you have any other event handlers? Page_PreInit? Page_Load? Page_PreRender?
---
b { font-weight: normal; }
|
|
|
|
|
I have some overridable functions but I check them if it is a postback before performing anything. So from that side I know there is not extra trip to the server it is just what happend before the postback event, where the 3 to 4 seconds occurs.
If I found what was the cause, I'll definetly let you know.
Thanks for your help anyway.
|
|
|
|
|
Is there any way in C# to evaluation and Expression created in reporting services? Example evaluating the expression =Globals!ReportName + ".rdl" which would return MySample.rdl.
I know this is a very simple example and I would like to evaluate very complex expressions.
It looks like the expression is in VB.NET with a few addins like Globals!ReportName, Globals!ExecutionTime, etc. Therefore I could create a sample VB.NET project and make my C# code compile a VB.NET executable with the expression inside VB.NET project with the "addins" replaced with their text representation, but this would be a lot of work. Thats what I am trying to avoid.
Has anyone come up with a solution?
Chris
|
|
|
|
|
Just incase if anyone is wondering I had to create a class that would compile the VB.NET assembly with the expression code to get back a value.
Chris
|
|
|
|
|
Hi everyone!
I need help understanding how to add overlays and tiles over my google map... is there a way to overlay only one image instead of mapping the url's of each tile? Many many thanks in advance!
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|
|
I have to run a crystal report within a specified date range and display this date range in the header of the report.
So, for example, I may be grabbing all data between 10/1/2006 & 10/31/2006. I would then need to place on the header of the report "Period: 10/1/2006 - 10/31/2006". These two dates would be specified within an asp.net textbox before the report is generated.
How can I pass these 2 dates to display on the report?
Thanks.
-Goalie35
|
|
|
|
|
|
im studying asp.net, i write a web page by using asp.net, it run on my computer so well, but when i try public it on web service which server support asp.net it cant run, it also correct on my web.config
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
but it does not work.
this is the file i just upload. i uploaded all dir of program
http://www.bambooproductall.com/chandoi/WebForm.aspx
any one can help me.................
___________
tran nguyen
|
|
|
|
|
tran, did you compile your code before uploading it to the server?
For example, in visual studio, you can debug your program on your machine with no problem however when you're ready to upload it to a server, you need to switch your "Solution Configuration" dropdown from "Debug" to "Release", then select "Build" --> "Rebuild Solution".
This will compile your project (your vb, c#, j#, or whatever your coding in) into a single DLL file, which can be located in your "Bin" folder. Upload your projects' DLL file to the "Bin" folder on the server and then upload your aspx file to its propper folder.
Also, since we're discussing troubleshooting options, ensure that the server you're uploading to is not only asp.net compatible but is also compatible with the version of asp.net you're using (i.e. a server with only the 1.1 .NET Framework will not run a project created in the 2.0 framework).
-Goalie35
|
|
|
|
|
thank for help but it still does not work, i complile it , check version, (i use .net 2003) , correct web.config file, in my conputer it run very well, but on web it does not work!
___________
tran nguyen
|
|
|
|
|
What's the actual error you're receiving?
|
|
|
|
|
Copy the error message, and post it here.
|
|
|
|
|
http://www.bambooproductall.com/mysite/WebApplication6/bin/WebForm1.aspx
this is my web, you can copy and paste it in brower and see my failt
or this is my failt
<!--
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
-->
i try to correct my failt by correct web.config like it said but no effect
this is my project, i only create 2 text box and 1 button
http://www.freewebs.com/quetien/imageforblog/chandoi.zip
im using .net 2003, it run good on my computer, i only dont know how to use it on web
thank for advance
____________
tran nguyen
|
|
|
|
|
Are you sure that the virtual directory has been set on the server? Also make sure there is an application name associated with the directory.
|
|
|
|
|
Hi,
Im having problems getting the value from a column in my GridView. I Have tried all of the following methods and a few others but none return the value and most just give Object not found errors.
<code>protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{//test message
ShowMessageBox("CHANGING");
//Label temp=null;
//temp.Text = (GridView1.FindControl(Label1.Text)).ToString();
//Label11.Text = GridView1.FindControl(Label1.Text).ToString();
//Label11.Text = GridView1.SelectedDataKey.Value.ToString();
//Label11.Text = GridView1.UniqueID.ToString();
//Label11.Text = GridView1.SelectedDataKey.Values.ToString();
//Label11.Text=GridView1.DataKeys.ToString();
//Label11.Text=GridView1.SelectedRow.Cells[0].Text;
}</code>
Any help would be great. Im wondering if the problem is anything to do with the fact im using a masterpage for the template of the actual page im working on????
Or is it coz im not doing it the corect way for ASP.Net 2.0 ????
Thank
|
|
|
|
|
Is ShowMessageBox("CHANGING"); a method or have you confused it with console app?
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|
|
Hi SHOWMESSAGEBOX is a method for displaying a pop-up. I use it just to confirm the action of the button click has occurred.
This has nothing to do with the error / problem im getting.
|
|
|
|
|
Sorry 'bout the earlier smartie-pants comment
Do this: create a control at runtime to match your Gridview's templated control
Label lbl = GridView1.FindControl(Label1);
_yourVariable = lbl.text;
Also I would imagine you gotta do this for the Label1 control appearing on EACH row... do you know how to do that?
Nila
"...for that, I will need a large cup of coffee and a bran muffin!" -Samantha Bea
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">Grapes-R-Fun wrote:</div>Do this: create a control at runtime to match your Gridview's templated control
Label lbl = GridView1.FindControl(Label1);
_yourVariable = lbl.text;
Also I would imagine you gotta do this for the Label1 control appearing on EACH row... do you know how to do that?</blockquote>
Nila, dont worry i didnt take the comment as bad.
Let me re-iterate what im trying to do, just to clarify we are thinking along the same lines.
Ok, i have a gridview displaying data, when i click the select button on a given row i need to get the value of the data (unique_id) displayed in the first column. This column is also the DataKey for the gridview.
So how can i get this info? Ive tried all sorts but to no avail. What would you suggest and how would you implement it? Sorry if this seems like im asking you to tell me how to do it all, but ive tried that many ways that should work and dont, that i really would appreciate it if you could explain in as much detail as possible.
I dont know if this makes any difference but i am using MasterPage for the template of the page. I read somewhere that you have to drill right down to the control if using MasterPages. Is this true, and does it apply in this instance?
If what you said above is still true <code>Label lbl = GridView1.FindControl(Label1);
_yourVariable = lbl.text;</code>
Then how would you implement this? At present ive tried both SelectedIndexChanged / SelectedIndexChanging, but without success. I get the error that the Object Referenced does not exist. This happenes no matter if i try indexing the column or the Label1 control used to display the info in the required column.
So again, id be really greatful if you could tell me how you would approach it, in all its horrible detail :->
Thanks!!!!!!!
|
|
|
|
|
Nah, the Masterpage has nothing to do with this... just convert all your columns to templates (note that they will all default to Label controls; let me know if you need help with templated fields), then give your templated controls meaningful names. THEN you can access them like this:
String _city;
...
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
...
Label city = (Label)(GridView1.SelectedRow.FindControl("cityLabel"));
_city = city.Text;
city.Dispose(); //yup, always clean up!
TextBox copy = (TextBox)(GridView1.SelectedRow.FindControl("copyTextBox"));
copy.Text = _city
copy.Dispose();
}
Give this a try. Let me know if it works ro not
Nila
"...for that, I will need a large cup of coffee and a bran muffin!" -Samantha Bea
|
|
|
|
|
Thanks Nila,
Ill give it a try today, and ill let you know how it goes!
|
|
|
|
|
Mate I Loves Ya!
That works perfectly!!! Thanks a lot.
But perhaps you can tell me 1 thing? Why does it only work when passing the Controls Data to a variable and then onto the static label control, yet it doesnt work when i miss out the middle man and try getting the data from the dynamic label and adding it straight to the static label?
Thanks again. I appreciate your time!
|
|
|
|
|
Oh I have no idea why... typically when something doesn't work, I find a work around and move-on. Im sure the 'corky' .Net has its reasons, I just don't have time/patience to figure out the WHY
Now, what does Mate I Loves Ya! mean??
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|