Blog Home  Home Feed your aggregator (RSS 2.0)  
kevin Mocha - Thursday, May 03, 2007
Bookmarks collected from web.
 
 Thursday, May 03, 2007

www.yardsaleportal.org

free posting, multiple cities, searching, categories, knowledge base, sign selling, RSS subscription, featured listing

Thursday, May 03, 2007 3:40:39 PM UTC  #    Comments [0]    |  Trackback
 Tuesday, May 01, 2007
Tuesday, May 01, 2007 7:05:11 PM UTC  #    Comments [0]    |  Trackback
Tuesday, May 01, 2007 7:04:08 PM UTC  #    Comments [0]    |  Trackback
 Monday, April 30, 2007
 Thursday, April 26, 2007

This category will record information for all projects I am going to develop.

Thursday, April 26, 2007 7:57:17 PM UTC  #    Comments [0]    |  Trackback
 Wednesday, April 25, 2007

http://www.dynamicdrive.com/ (Dynamic Javascript and DHTML)

http://css.maxdesign.com.au/ (Great Layout and List CSS Tutorial)

Wednesday, April 25, 2007 9:24:59 PM UTC  #    Comments [0]    |  Trackback
 Thursday, April 19, 2007

http://aspalliance.com/774

 

 

Title: Repopulating checkboxes in GridView solution   
Name: Anonymous
Date: 8/13/2006 8:30:45 PM
Comment:
This is a great solution! However, when I first tested I get the same problem as everyone where the checkboxes get reset after every page changed. In order to solve this problem, you need to add DataBound event to repopulate the checkboxes states. Below is the solution:
protected void GridView1_DataBound(Object sender, EventArgs e)
{
RePopulateValues();
}
protected void GridView1_PageIndexChanging(Object sender, GridViewPageEventArgs e)
{
RememberOldValues();
}
Note: This is done in .Net 2.0 and the reason the author code doesn't work is because the databound event is called after pageindexchanging and pageindexchanged and therefore it clears the checkboxes states.

Thursday, April 19, 2007 4:01:09 AM UTC  #    Comments [0]    |  Trackback
 Wednesday, April 18, 2007

<!----connection string for SQL 2005 Express ----------->
<!-- <add key="DBConnStr" value="Provider=SQLOLEDB;Data Source=(local)\SQLExpress; Initial Catalog= SMARTBRIDGE; Integrated Security=SSPI;"/> -->
<!-- <add key="DBConnStrMaster" value="Provider=SQLOLEDB;Data Source=(local)\SQLExpress; Initial Catalog= master; Integrated Security=SSPI;"/> -->

Wednesday, April 18, 2007 5:51:00 PM UTC  #    Comments [0]    |  Trackback
 Tuesday, April 17, 2007

The Page class includes a property called the IsPostBack property, which you can use to detect whether the page has already been posted back to the server.

Because of View State, when you initialize a control property, you do not want to initialize the property every time a page loads. Because View State saves the state of control properties across page posts, you typically initialize a control property only once, when the page first loads.

In fact, many controls don't work correctly if you re-initialize the properties of the control with each page load. In these cases, you must use the IsPostBack property to detect whether or not the page has been posted.

 

if(!Page.isPostBack)
{
//not postback means first time initiation.
}
Tuesday, April 17, 2007 9:21:24 PM UTC  #    Comments [0]    |  Trackback

Here is the sequence of events that are raised whenever you request a page:

  1. PreInit
  2. Init
  3. InitComplete
  4. PreLoad
  5. Load
  6. LoadComplete
  7. PreRender
  8. PreRenderComplete
  9. SaveStateComplete
  10. Unload

 

Ninety-nine percent of the time, you won't handle any of these events except for the Load and the PreRender events. The difference between these two events is that the Load event happens before any control events and the PreRender event happens after any control events.

Tuesday, April 17, 2007 9:11:26 PM UTC  #    Comments [0]    |  Trackback
Copyright © 2009 Kevin Mocha. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: