Home > Net >  The iframe and partial refresh
The iframe and partial refresh

Time:09-27

Just learning ASP.NET, a BBS system to do, want to ask a question, I do BBS home page have a navigation bar on the left, and links to each section, click on the navigation links, on the right side load corresponding section in the content, in order to achieve this function use the iframe or local refresh is good? Good reference case specific how to do? thank you

CodePudding user response:

Your navigation bar and iframe on the same page, click on the navigation bar, through js set the SRC attribute of the iframe, assigned to the corresponding page menu you can; Local refresh is on your page, by an element of an event, such as I want to refresh the post, so when I click the refresh button, through ajax requests to the background database, read all the posts of information, and then put the information parsed in your post in the list!

CodePudding user response:

Implement this function use the iframe or local refresh is good?
The two is not the same level, the realization of local refresh can use iframe loading, img tags request loading, script tags get request, link, etc., the use of concrete and the example a closed a large online!

CodePudding user response:

Don't consider so much, the function to achieve the best
  • Related