Click here to Skip to main content
15,920,633 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralGetting web.config settings Pin
Brendan Vogt13-Mar-08 1:55
Brendan Vogt13-Mar-08 1:55 
GeneralRe: Getting web.config settings Pin
AhsanS13-Mar-08 2:21
AhsanS13-Mar-08 2:21 
QuestionRe: Getting web.config settings Pin
Brendan Vogt13-Mar-08 21:25
Brendan Vogt13-Mar-08 21:25 
GeneralRe: Getting web.config settings Pin
AhsanS13-Mar-08 21:32
AhsanS13-Mar-08 21:32 
QuestionHow to stop PostBack for Treeview control Pin
Kuricheti13-Mar-08 1:17
Kuricheti13-Mar-08 1:17 
GeneralRe: How to stop PostBack for Treeview control Pin
AhsanS13-Mar-08 1:27
AhsanS13-Mar-08 1:27 
GeneralRe: How to stop PostBack for Treeview control [modified] Pin
Kuricheti13-Mar-08 1:34
Kuricheti13-Mar-08 1:34 
GeneralRe: How to stop PostBack for Treeview control Pin
AhsanS13-Mar-08 1:58
AhsanS13-Mar-08 1:58 
This link has several solutions: http://forums.asp.net/thread/469254.aspx

The best one I found was offered by persky. To use it, backup the treeview.htc file and then open it with notepad or some other text editor. Find the function "nodePlusMinusClick" and replace the entire function with the following code:

function nodePlusMinusClick()
{
if (g_bInteractive == false)
return;
var el = this.parentElement.treenode;
// 2 lines below commented out to disable postback on expand/collapse, extra lines added below for better functionality
// if (doNodePlusMinusClick(el) == true)
// fireQueuedEvents();
var index = getNodeIndex(el);
// if the selected or hovered node was one of the collapsed node's descendants then postback anyway
if (selectedNodeIndex.length > index.length && selectedNodeIndex.substr(0,index.length) == index)
{
if (doNodePlusMinusClick(el) == true)
fireQueuedEvents();
}
// otherwise just do the expand/collapse stuff
else
doNodePlusMinusClick(el);
}

Ahsan Ullah
Senior Software Engineer

GeneralRe: How to stop PostBack for Treeview control Pin
AhsanS13-Mar-08 2:00
AhsanS13-Mar-08 2:00 
GeneralRe: How to stop PostBack for Treeview control Pin
P Tagore Srinivas Dhanunjay13-Mar-08 2:08
P Tagore Srinivas Dhanunjay13-Mar-08 2:08 
GeneralCreate New Email in Domain Pin
vurugonda13-Mar-08 0:33
vurugonda13-Mar-08 0:33 
GeneralRe: Create New Email in Domain Pin
Christian Graus13-Mar-08 0:56
protectorChristian Graus13-Mar-08 0:56 
QuestionFORMVIEW CONTROL Pin
md_azy13-Mar-08 0:25
md_azy13-Mar-08 0:25 
GeneralRe: FORMVIEW CONTROL Pin
David Rike13-Mar-08 3:51
David Rike13-Mar-08 3:51 
QuestionHow to capture ASP.NET2.0 control's event at client side Pin
salon13-Mar-08 0:06
salon13-Mar-08 0:06 
AnswerRe: How to capture ASP.NET2.0 control's event at client side Pin
Christian Graus13-Mar-08 0:34
protectorChristian Graus13-Mar-08 0:34 
GeneralRe: How to capture ASP.NET2.0 control's event at client side Pin
salon13-Mar-08 1:07
salon13-Mar-08 1:07 
GeneralRe: How to capture ASP.NET2.0 control's event at client side Pin
Christian Graus13-Mar-08 1:13
protectorChristian Graus13-Mar-08 1:13 
Generalread doc file Pin
yogeshpan12-Mar-08 23:59
yogeshpan12-Mar-08 23:59 
GeneralRe: read doc file Pin
_AK_13-Mar-08 0:02
_AK_13-Mar-08 0:02 
GeneralRe: read doc file Pin
yogeshpan13-Mar-08 0:11
yogeshpan13-Mar-08 0:11 
GeneralRe: read doc file Pin
_AK_13-Mar-08 0:18
_AK_13-Mar-08 0:18 
GeneralRe: read doc file Pin
Christian Graus13-Mar-08 0:30
protectorChristian Graus13-Mar-08 0:30 
JokeRe: your new article Pin
Muhammad Gouda13-Mar-08 0:54
Muhammad Gouda13-Mar-08 0:54 
GeneralRe: your new article Pin
Christian Graus13-Mar-08 0:58
protectorChristian Graus13-Mar-08 0:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.