これを使用して、ascx分離コードから3つのラベルを持つascxユーザーコントロールに値を転送しています
string text1 = fr.data[0].name;
string text2 = m.data[0].name;
string text3 = m.data[0].name;
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), " ", "document.getElementById('lblfriend').innerHTML ='" + text1 + "'; return true;", true);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), " ", "document.getElementById('lblmyname').innerHTML ='" + text2 + "'; return true;", true);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), " ", "document.getElementById('lblmyname1').innerHTML ='" + text3 + "'; return true;", true);
ただし、値が渡されないため、これらのラベルを Html としてレンダリングして、メールに埋め込むことができるようにしたい
助けてください!