When I update the code on my website I (naturally) restart my apache instance so that the changes will take effect.
Unfortunately the first page served by each apache instance is quite slow while it loads everything into RAM for the first time (5-7 sec for this particular site).
Subsequent requests only take 0.5 - 1.5 seconds so I woul...
Hi friends,
I have an asp.net web application in c# script.
I want this application page to refreh after every 30 seconds or 60 minutes of time.
I have written my codes in its page_load event.
http://localhost:1096/DisplayPop3Email.aspx?emailId=97
this is my url to refresh every 30 or 60 seconds.
also i want to change or increment ...
I have been looking around yet I can't find any that fits in my problem.
I am doing this in c# asp.net visual studio 2005, i have a master page and removed the Page_Load event from there since i wanted the Page_Load in the pages other than the master to fire. So in one of the pages other than the masterpage:
in page1.aspx:
public par...
Hi all,
Apologies in advance for the long-winded post, but I'm having some trouble with a .NET page I'm building.
END QUESTION: How can I check the 'Checked' property of a dynamically-created checkbox during the Page_Load subroutine?
DETAILS: Basically, I have a VB.NET page that creates some table rows dynamically, based on a number s...
Hello, this problem is driving me really mad.
In an Asp.Net-application, I have two DropDownLists, DropDownStore and DropDownCampaign.
<asp:DropDownList ID="storeDropDown" AppendDataBoundItems="true"
AutoPostBack="true" DataSourceID="storeSqlDataSource"
DataTextField="Name" DataValueField="StoreId"
runat="server" OnSe...
I have noticed that window.onunload event fires off AFTER page_load event which makes no sense.
This behaviour is creating an issue for me - in my unonload I clear the session, so if the Page_Load first BEFORE onunload, there are errors on the page displayed.
I would expect the javascript onunload to fire BEFORE Page_Load....is that t...
I'm working with an AJAX button and label controls. When the user clicks the button, the data is updated in the label.
But after clicking the button, the Page_Load event occurs, and I don't want it, because all data is being initialized to default values.
How can I check in Page_Load event that it's an AJAX request?
I'm using UpdatePa...
Hi,
I have already gone through some of the posts in many websites regarding page_load being called twice but my problem is little bit different from those.
My problem is with the landing page of my web application.
Initially in my website page_load for the landing page was getting called twice every time when it is loaded. Since my a...
I am working on a web application. I noticed that one of my pages is getting called twice. On studying the call stack trace for this page_load event, I found that the second time page_event is called it is called from the event:
System.Threading._TimerCallback.PerformTimerCallback(object state)
I am not sure why and how this event gets...
hi my dear friends ....
why i got this error :
Object reference not set to an
instance of an object.
when i put this code in my page_load.:
protected void Page_Load(object sender, EventArgs e)
{
BackEndUtils.OverallLoader();
string Teststr = Session["Co_ID"].ToString();
}
===========================================...
I am working on a ticket system, having the following requirement:
The home page is divided into two sections:
Sec-1. Some filter options are shown here.(like closed-tickets, open-tickets, all-tickets, tickets-assigned-to-me etc.). You can select one or more of these filters.
sec-2. List of tickets satisfying above filters will be displa...
I am having a timing issue when attempting to slide down my more info div. My desired functionality is that the div slidesdown from the top once the page has already been rendered. My problem is if I use $(document).ready().. the animation does not visibly occur.
Here is my code:
$(document).ready(function() {
$(".MoreInf...
I am setting a Session variable in an HttpHandler, and then getting its value in the Page_load event of an ASPX page. I'm setting it using
public void ProcessRequest(HttpContext context)
{
HttpPostedFile file = context.Request.Files["Filedata"];
context.Session["WorkingImage"] = file.FileName;
}
(And befor...
i have this querystring that shall open up my page.
http://www.a1-one.com/[email protected]&stuid=123456
Now when this page loads, on page_load, I want to pick up email and stuid in two different variables. So I can use them to insert into my database (sql server)
how can this be done in vb.net
...
Hiya,
I am trying to set the focus to the user name TextBox which is inside an ASP.NET Login control.
I have tried to do this a couple of ways but none seem to be working. The page is loading but not going to the control.
Here is the code I've tried.
SetFocus(this.loginForm.FindControl("UserName"));
And
TextBox tbox = (TextBox)t...
Is it possible to find out which javascript files are NOT used on a web page without having to add console logs or debug or removing them to see if things break?
I'm looking for a tool, or a command line script or firefox plugin etc.
For example, lets say I have these included in the header:
<script type="text/javascript" src="js/jque...
This question is sort of a tangent to Browser support for <script async=“true” />?.
I've seen a few scripts lately that do something like this:
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'http://www.example.com/script.js';
document.getElementsByTagName('head')[0].appendChild(s);
This...
I'm having a problem with IE where it doesn't scroll to a fragment (#foo on the URL) when the page loads. The anchor for the fragment is part of the base HTML, it isn't dynamic or anything. The page is pretty heavy. If I go into the location bar and hit enter, it scrolls to the anchor as expected (and as observed in other browsers). ...
I have this datatable
public partial class class1
{
private DataTable dt;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
dt.Columns.Add("Col1", System.Type.GetType("System.String"));
dt.Columns.Add("Col2", System.Type.GetType("System.String"));
bind();
...
I have a grid with one TemplateField which is a checkbox and say 2 bound fields.
In Page_Load on postback I rebind the grid with cached dataset stored in session. If user selects checkbox on the grid, upon postback i can iterate on the grid and get those checked values, everything works fine.
If I move the code of grid binding on postb...