开发者

DataNavigatorUrlfields in a hyperlink

开发者 https://www.devze.com 2023-03-17 13:56 出处:网络
Using DataNavigatorUrlfields. <asp:HyperLinkField DataNavigateUrlFields=\"MMBId,TotalPublishedProfiles,TotalRevenueOnProfiles\"

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

0

精彩评论

暂无评论...
验证码 换一张
取 消