Click here to Skip to main content
16,004,192 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: [ask] asp.net and IBM DB2 Pin
Sibeesh KV29-Sep-14 1:24
professionalSibeesh KV29-Sep-14 1:24 
QuestionBuilding OData Web API on the basis of other OData API instead of Database Pin
LiQuick8-Sep-14 0:01
LiQuick8-Sep-14 0:01 
AnswerRe: Building OData Web API on the basis of other OData API instead of Database Pin
Nathan Minier8-Sep-14 4:54
professionalNathan Minier8-Sep-14 4:54 
GeneralRe: Building OData Web API on the basis of other OData API instead of Database Pin
LiQuick8-Sep-14 9:39
LiQuick8-Sep-14 9:39 
Questiononsubmit event Pin
Ali Al Omairi(Abu AlHassan)7-Sep-14 21:07
professionalAli Al Omairi(Abu AlHassan)7-Sep-14 21:07 
AnswerRe: onsubmit event Pin
jkirkerx8-Sep-14 12:58
professionaljkirkerx8-Sep-14 12:58 
GeneralRe: onsubmit event Pin
Ali Al Omairi(Abu AlHassan)8-Sep-14 21:24
professionalAli Al Omairi(Abu AlHassan)8-Sep-14 21:24 
GeneralRe: onsubmit event Pin
jkirkerx9-Sep-14 4:22
professionaljkirkerx9-Sep-14 4:22 
QuestionSample code to post a asp.net forms data to third party API in XML input Pin
Roberts Techie7-Sep-14 19:07
Roberts Techie7-Sep-14 19:07 
GeneralRe: Sample code to post a asp.net forms data to third party API in XML input Pin
Kornfeld Eliyahu Peter7-Sep-14 20:51
professionalKornfeld Eliyahu Peter7-Sep-14 20:51 
GeneralRe: Sample code to post a asp.net forms data to third party API in XML input Pin
Richard MacCutchan7-Sep-14 21:27
mveRichard MacCutchan7-Sep-14 21:27 
GeneralRe: Sample code to post a asp.net forms data to third party API in XML input Pin
Kornfeld Eliyahu Peter7-Sep-14 21:57
professionalKornfeld Eliyahu Peter7-Sep-14 21:57 
GeneralRe: Sample code to post a asp.net forms data to third party API in XML input Pin
Richard MacCutchan7-Sep-14 22:15
mveRichard MacCutchan7-Sep-14 22:15 
AnswerRe: Sample code to post a asp.net forms data to third party API in XML input Pin
Bernhard Hiller7-Sep-14 22:06
Bernhard Hiller7-Sep-14 22:06 
QuestionHow to implement a Treeview / Form interface. Pin
Wierdbeard656-Sep-14 4:21
Wierdbeard656-Sep-14 4:21 
AnswerRe: How to implement a Treeview / Form interface. Pin
jkirkerx6-Sep-14 12:30
professionaljkirkerx6-Sep-14 12:30 
GeneralRe: How to implement a Treeview / Form interface. Pin
Wierdbeard656-Sep-14 15:21
Wierdbeard656-Sep-14 15:21 
GeneralRe: How to implement a Treeview / Form interface. Pin
jkirkerx6-Sep-14 16:20
professionaljkirkerx6-Sep-14 16:20 
You can the select action of the node group to 4 choices - Just FYI

TreeNodeSelectAction.Expand -
TreeNodeSelectAction.None
TreeNodeSelectAction.Select - Selecting a node
TreeNodeSelectAction.SelectExpand - I guess expanding a folder

Controls that are made in onInit or PreInit are persistent. They will remain after a postback trip to the server.

Controls that are made after Init, like on Page.Load are not persistent, and will not survive a postback. Even if you load the control again after postback, the data in the textbox will be lost, because it's a new version of the control.

So either you redesign your form, to load the control in Init, so the control stays, or you have to do something else.

I would probably load all the controls, and turn off the visibility. Then on node select, turn on the visibility of the control you need.

You can also use CSS, in which you just toggle the "display" to inline-block or none.

I not sure how you wrote the code, if your using webform, then place all the controls on the form.

If your using code behind to generate the page, then use PreInit, or I think you can override an event using

Protected Overrides Sub OnInit(ByVal e as System.EventArgs)
   'Load your user controls here.
End Sub


Keep in mind, that all controls or HTML markup has to be made in OnInit to persist. You use Page.Load just to populate the data in the HTML markup.
GeneralRe: How to implement a Treeview / Form interface. Pin
Wierdbeard6512-Sep-14 6:54
Wierdbeard6512-Sep-14 6:54 
QuestionNeed to POST xml data to web device w/ c# ASPX Pin
Member 110616635-Sep-14 5:36
Member 110616635-Sep-14 5:36 
QuestionAsp.net GridView with JQuery Pin
Member 106549793-Sep-14 20:41
Member 106549793-Sep-14 20:41 
QuestionRe: Asp.net GridView with JQuery Pin
ZurdoDev5-Sep-14 6:19
professionalZurdoDev5-Sep-14 6:19 
QuestionConverting Word document to HTML page Pin
meeram393-Sep-14 19:14
professionalmeeram393-Sep-14 19:14 
SuggestionRe: Converting Word document to HTML page Pin
Kornfeld Eliyahu Peter3-Sep-14 20:14
professionalKornfeld Eliyahu Peter3-Sep-14 20:14 
QuestionEncoding password sent to MVC web service reports vulnerability issues Pin
Stephen Holdorf3-Sep-14 8:22
Stephen Holdorf3-Sep-14 8:22 

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.