Httpcontext. Current. items [""] obtains a set of key values that can be used to organize and share data between ihttpmodule and ihttphandler during HTTP requests.
Similar to viewsate,
If you want to set this value on page A and use this value on page B, you must use server when redirecting. transfer (), and can only get this value in the page_load event, in the button trigger event
An error is reported.
It can survive only one HTTP request, that is, it can survive only one event.
Find sitemap.
Protected string getreportlist ()
{
Sitemapprovider objmapprovider = sitemap. Providers ["stagereport"];
If (objmapprovider! = NULL)
{
Sitemapnode objnode = objmapprovider. rootnode;
If (objnode! = NULL)
{
Stringbuilder sbouthtml = new stringbuilder ();
Foreach (sitemapnode it in objnode. childnodes)
{
Sbouthtml. append ("<li> <a href = \" "+ It. URL + "\" onclick = \ "setselectstyle (); \" target = \ "reportviewframe \"> "+ It. title + "</a> <br> </LI> ");
}
Return sbouthtml. tostring ();
}
Else
Return "The report configuration map information is empty ";
}
Else
Return "No report configuration map information is found ";
}
/// <Summary>
/// Convert the value to the specified type
/// </Summary>
/// <Typeparam name = "T"> </typeparam>
/// <Param name = "svalue"> </param>
/// <Returns> </returns>
Protected t converttype <t> (string svalue)
{
Try
{
If (svalue = NULL)
Throw new exception ("this object does not exist! ");
Return (t) convert. changetype (svalue, typeof (t ));
}
Catch
{
Return default (t );
}
}