第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

單擊按鈕將 int 傳遞到不同的頁面

單擊按鈕將 int 傳遞到不同的頁面

Go
至尊寶的傳說 2021-07-12 17:54:37
Hi I have a page that has a load of check boxes, when one is selected the user then clicks the button to go to a new page. 我需要這個(gè)新頁面來包含從上一頁中選擇的記錄的 ID。我不知道如何將名為 FileID 的 ID 的 int 值放入下一個(gè)名為 EditFile.aspx 的頁面中。我這個(gè)函數(shù)的所有代碼目前都在一個(gè) buttonclick 事件中:protected void btnEditSelectedFile_Click(object sender, EventArgs e){    int intSelectedFileCount = 0;    foreach (GridDataItem item in fileRadGrid.MasterTableView.Items)    {        int FileID = int.Parse(fileRadGrid.MasterTableView.DataKeyValues[item.DataSetIndex - (fileRadGrid.CurrentPageIndex * fileRadGrid.PageSize)]["FileID"].ToString()); //Gets File ID of Selected field        CheckBox chk = (CheckBox)item["AllNone"].Controls[0];        if (chk.Checked)        {            intSelectedFileCount++;        }    }    if (intSelectedFileCount == 1)    {        Response.Redirect("EditFile.aspx", false);            }    else    {        lblNeedSingleFile.Visible = true;    }}任何有關(guān)如何在 EditFile 頁面中訪問“FileID”的幫助將不勝感激!
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 220 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)