Home > Net >  Webform, master page navigation ul li will refresh the master page, how to solve?
Webform, master page navigation ul li will refresh the master page, how to solve?

Time:01-25

Fellow teachers, ask a question,
Now I am using the webform to design a small site, the first is to design a master page, and then in the master page is divided into three parts, the head, the left and right,
Head in addition to the login information, there is also a dropdownlist, binding options,
The left is made of UL li navigation
Is on the right page, based on the navigation bar and the head of homework dropDownList information,
I use the updatePanel fixed refreshes the content pages on the right side only, but the question is:
Every time I click on the left navigation bar, will refresh the entire page, including my DropDownList selected content will also be refreshed,
Haven't solve a long night, even if I left and right side are wrapped up with UpatePanel, all not line,
Just learning webform, don't know which wrong, this to teach,

In addition, UL LI click finish, right after the jump to the corresponding page content, LI will recover before the background color, which makes it impossible to distinguish which option before clicking, can present different background color set to click?

CodePudding user response:

must first introduced in the most front ScriptManager control , and pay attention to the UpdatePanel UpdateMode property should be "Conditional", on the other hand, in fact you don't need to stay in the Trigger designer statement to illustrate the refresh controls, as long as the code in the background of
 control. The Update (); 
code can dynamically specify should refresh controls,

2005 technology, 10 before and after a few years ago web programming gradually entered the separation technology category of end, Microsoft also at asp.net "literally threw a jquery. Js and transformation, now, I suggest you study webassembly single-page development, to keep pace with the trend of The Times,

CodePudding user response:

I remember is to add a ScriptManager, are in pairs, well what do you do with these old things? Directly on net5.0 Blazor or MVC is bad

CodePudding user response:

refer to the second floor nan peony reply:
I remember is to add a ScriptManager, are in pairs, well what do you do with these old things? Directly on net5.0 Blazor or bad MVC

Well, add a ScriptManager already, and now the right column updates will not refresh the master page, but the master page ul click will refresh the entire page, don't know why,
Because just for department use, applicable people won't be too many, eighty people, learn MVC requires too much time and effort, a bit too much, after all just amateur study, not professional to do this,