Method 1: JS Paging
<SCRIPT type = "text/JavaScript">
Function $ (ID) {return document. getelementbyid (ID );}
VaR Quan = NULL;
Function pagemethod (ID ){
$ ("Cntpage"). innerhtml = "";
If (Quan = NULL ){
Quan = $ ("content"). innerhtml. Split ("$ ");
}
For (VAR I = 0; I <Quan. length; I ++ ){
VaR P = I + 1;
$ ("Cntpage "). innerhtml + = "<a onclick = 'pagemethod (" + I + ") '>" + P + "</a> & nbsp ;";
}
If (ID <= Quan. Length ){
$ ("Content"). innerhtml = Quan [ID];
}
}
</SCRIPT>
</Head>
<Body onload = "pagemethod (0)">
<Div id = "content"> content... </div>
<Div id = "cntpage"> </div>
Note: You must separate the pre-read content with the specified symbol "$", for example :..... $ ...... $. Of course, these characters can be set according to your preferences, but they must be unique,
Method 2: ASPnet background reading
Int page = 0;
Protected void page_load (Object sender, eventargs E)
{
If (! Ispostback)
{
Int S = 0;
String [] htmls = pagecontent (). Split ('$ ');
If (! String. isnullorempty (request. querystring ["p"])
{
Page = int. parse (request. querystring ["p"]);
If (Int. tryparse (page. tostring (), out S ))
{
For (INT I = 1; I <= htmls. length; I ++)
{
If (page = I)
{
CNT. innerhtml = htmls [I-1];
}
Pages. innerhtml + = "<a href = 'default. aspx? P = "+ I +" '> "+ I +" </a> & nbsp ;";
}
}
Else
{
}
}
Else
{
For (INT I = 1; I <= htmls. length; I ++)
{
Pages. innerhtml + = "<a href = 'default. aspx? P = "+ I +" '> "+ I +" </a> & nbsp ;";
}
CNT. innerhtml = htmls [0]. tostring ();
}
}
}
Private string pagecontent ()
{
Stringbuilder strhtml = new stringbuilder ();
Strhtml. append ");
Strhtml. append ("the enthusiastic pursuit of various banks, financial products have sprung up. In general, investors should comprehensively consider various ");
Strhtml. append ("the mobility, risk, and profitability of the product. Select the product that best suits your needs. I think we should mainly consider the following aspects :");
Strhtml. append ("1. Consider the expected benefits. The investment in products is different, and their income may vary. There are guaranteed Floating type, and there are non-guaranteed ");
Strhtml. append ("Floating type, of course, the risk is also different. ");
Strhtml. append ("2. fully consider the impact of sales on the overall revenue. Some of the previously purchased RMB financial products must be matched with a certain proportion ");
Strhtml. append ("period of time deposits (the period of time deposits must pay the interest tax), will reduce the final overall rate of return. $ ");
Strhtml. append ("3. Consider the term of the financial product and the minimum subscription quota. Generally, banks have the minimum subscription quota and term requirements ");
Strhtml. append (", and in the financial period, it is not allowed to withdraw in advance, and the product's warranty rate cannot exceed 70%-90%, so there is no idle ");
Strhtml. append ("investors with money cannot buy it. As the renminbi has entered a period of sustained interest rate hikes, banks will ");
Strhtml. append ("adjust the product interest rate in a timely manner. It is recommended to purchase short-term products. It is better to use the half-year period and one-year period. ");
Strhtml. append ("4. Pay attention to the product Termination Right. Investors need to figure out whether the right to terminate is in the bank's hands or not. If the bank knows the final $ ");
Strhtml. append ");
Strhtml. append ("the asset owner can exercise the early termination right, but the yield of the product will be relatively low. ");
Strhtml. append ("5. Select a bank. Currently, the homogenization of financial products is very serious, and the same is true for RMB financial products ");
Strhtml. append ("when the difference is very small, investors should purchase banking products with good service quality. ");
Strhtml. append ("6. carefully read the contract terms provided by the Bank. Some data in the promotional materials may be different from the specific terms in the contract. ");
Strhtml. append ("7. Be aware of risks. Any investment is risky. Investors must be aware of risks when purchasing financial products, $ ");
Strhtml. append ("Carefully plan your own financial solutions. That is, investors must face the interest rate risk after raising interest rates. ");
Strhtml. append ("if the Central Bank raises interest rates again and the interest rate on fixed savings and deposits increases again, the benefits of purchasing RMB financial products will be obtained ,");
Strhtml. append ("risks that may be lower than the future savings income; product liquidity risks cannot be ignored, RMB Financial Management Plan ");
Strhtml. append ("there is often a limited period of time, investors cannot withdraw money in advance during the financial period; there is a risk of re-investment. The market is constantly adjusting ,");
Strhtml. append. ");
Return strhtml. tostring ();
}