commonly on say PHP or other web frameworks getting the total response time is easy, just start the timer at the top of the file and stop it at the end. In ASP.Net there is the whole Page Lifecycle bit though so I'm not sure how to do this. I would like for this response time recording to take place in a master page and the response time show up in the footer of pages. What would be the best way of doing this? Is there something built in to ASP.Net for it? Is it even possible to include the OnRender time?
I need to get values of all individual cells from the row of a grid view and assign eac one fo them to seperate variables. Should i just access the control values directly from the gridview (the controls are template fields) or is it best to run an sqlq select query for each value i want to retrieve.
I have the problem of Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
I have a gridview with a column of text boxes bound to a value from a database. I should be able to edit the values in each of the text boxes and just print those new values(dont have to update into the database). But my method returns only the old values, not the new values entered into the text boxes.
I have a web form called default.aspx which has a form with user information. In addition to this, I have an iFrame on the same page that displays a page Secondary-Form.aspx that has a few additional dynamic data fields. I need to do two things.
1. I need to pass the parent form data in real time to the iFrame page to refresh its content and modify it's fields accordingly. Example: If the user submits their Vehicle Choice as Car on parent form, the form item in iFrame will display a radio button that says Honda, and if the user submits their Vehicle Choice as MotorCycle in the parent page, the iFrame will display Harley Davidson as the radio button choice
2. The submit button is on the parent page. I want both pieces of this information (from the parent page, as well as iFrame selection) to be passed to a server side ASPX page to process this information.the default.aspx and Secondary-Form.aspx files are located on different domains.
Previously form id in child pages was aspnetform,suddenly now the id has changed to form1, now the problem is there are lots of script used with reference to id aspnetform and they are giving error. So i want to change or override the form1 name to aspnetform to make it work again
I have certain information in my webconfig such as the name of the database i am connecting to. However, I would like a situation where my aspx is able to obtain that information as well and display it in a label. Hence, how do I go about doing that.
I wish to obtain the domain SID from a user account that has been used to access my web page, but...
In some instances, you dont have access to the HttpContext object to call HttpContext.Current.Request.LogonUserIdentity.User.Value
All the static function is able to accept is a user-name as a string, and a domain-name as a string.
If the domain is left blank, it is amused that the user account name is within the same domain as the IIS server that the process is executing upon. :/
In an ASP.NET MVC 2 application, how would I obtain the Type of the controller that would be used, given the information about the route: string action, string controller, object routeValues?
(The routeValues object might look like this new {area="admin"} and route to a controller for a different site area.)
I have an asp.net application running on a production server.
The cpu usage on the server is very high, 80-90%.
Each request however does not appear to be taking too long, unless the cpu has peaked at 100%.
I need to obtain some profiling data in order to determine if the high cpu usage is due to a small number of high cpu requests, or, if it is just general high load.
I can add more cores to the machine and also web farm the app but I will need evidence in order to justify any costs and future proofing the performance.
Is there a way of logging to a file the CPU usage for each page request?
I have an ASP.net/VB.net website, and want to make an inquiry of another website to obtain particular information for use on my site in string format. For example, I have used the code:
which only produces the other website address as a string. However, I want to get the actual result of the inquiry as a string. I have experimented with System.Xml.XmlDocument coding, without any luck. the proper coding to get the results of such an inquiry as a string?
For some reason, some of the fields in our database use a different collation than the default. There doesn't seem to be a pattern as to which fields use the different collations, so I'd like to run a query to find which fields use this collation and change them to the default. Does anyone know how to do this?
so I am new to ASP and I am confused here about how to obtain specific data from a specific cell.so, i have a gridview that i fill from a SQL source, this works fine. what i have been task to do is add an editable text box and a comments portion to the site. these controls are to be inside the gridview. my dilema is getting the primary key of the row i am inside of.
Example when i click in the text box i created and i change the text the "ontextchanged" event fires; however, i am having difficultly at that point getting the primary key from column [0] of that specific row. i need this so that i can update the database.here is some of my code
ASP (Markup)
[Code]....
Code Behind (it is blank becuase i have run out of ideas and need your help filling it) [Code]....
I have an asp.net (FW 3.5) web app that runs on an internal network. One specific page needs to "report" in to the web server that it is active and not locked up. I need to be able to run a script (or something) at the client to report the pc's computer name in that report. I cannot find a method that does this. I found several things that would report the WAN IP or host name, but this appears to all be for external facing sites.
Following is the structure of the pages in application
[Code]....
Suppose the user is on ..../paycheck.aspx which is the content page. But when ...../paycheck.aspx loads, "lnkDynamic" properties "Text and PostBackUrl" must be set. Which events should be handled .....
I have a form that works just fine, problem is that if user leave form open for more than 20 30 min and then click a button on that form the browsers status line shows "Error in page", user then must refresh the page in order for the page function.
I have a master page with a form on it. It's a people search form. When the user clicks on the search button it goes to the search results page that uses the same master page. With the code below I get the info off the master of the current page. Howdo I grab that info from the first page? Here's the code:
Imports System Imports System.Web.UI Imports System.Web.UI.WebControls Partial Class mstrIntranet Inherits System.Web.UI.MasterPage Public Property mSearchName() Get Return txtSearchName.tex End Get Set(ByVal value) txtSearchName.text = value End Set End Property
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load txtSearchName.Text = "People Search" End Sub End Class
Search Results Code Behind page:
Partial Class PeopleSearch2 Inherits System.Web.UI.Page Public SearchName As String
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim mpTextbox As TextBox mpTextbox = CType(Master.FindControl("txtSearchName"), TextBox) SearchName = mpTextbox.Text
When the users presses submit, I get the below error and for the life of me cannot figure out why! I have tried GET as well, byt that just seems to post to itself and just puts the form vairables in the URL rather than going to formprocess.aspx.page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.Please try the following:Contact the Web site administrator if you believe that this request should be allowed.Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.HTTP Error 405 - The HTTP verb used to access this page is not allowed.Internet Information Services (IIS)
I have a Web User Control I created for authentication. The web user control is inside the box below. Clicking any button (1 or 2) below works correct as it goes to the correct c# button click event in the code behind file. If I press enter on fields a or b it goes to the correct callback (button1's) if I press enter on field c it still goes to button1's callback, not button2's
How can I give my web user control a nice self contained for and view state etc, so it wont mess with the remainder of the page's form?
am getting "Time Out Expired,The Timeout period elapsed prior to obtaining a connecttion from pool".Please suggest suddenly i am getting this error in 10% of the pages.