Using DataNavigatorUrlfields.
<asp:HyperLinkField DataNavigateUrlFields="MMBId,TotalPublishedProfiles,TotalRevenueOnProfiles"
DataNavigateUrlFormatString="~\ProfilePurchasesSummary.aspx?MMBId={0}&TotProfiles={1}&TotRevenue={2},"
DataTextField="TotalPublishedProfiles" HeaderText="TotalPublishedProfiles" />
<asp:BoundField DataField = "TotalRevenueOnProfiles" HeaderText="TotalRevenueOnProfiles" />
In the ProfilePurchasesSummary.aspx,
protected void Page_Load(object sender, EventArgs e)
{
MMBId = Convert.ToInt32(Request.QueryString["MMBId"]);
TotPurchasesPerProfile = Convert.ToInt32(Request.QueryString["TotalPublishedProfiles"]);
TotRevenuePerProfile = Convert.ToDouble(Request.QueryString["TotalRevenueOnProfiles"]);
..........................................
}
Here MMBId is getting its value correctly. But TotPurchasesPerProfile , TotRevenuePerProfile are 0's
开发者_如何转开发Any hints Thanks Sun
精彩评论