私のシナリオでは、ユーザーがCreateUserWizardでアカウントの作成を終了したら、UserIdの値をデータベース内の別のテーブルに渡します。
ASP .Net C#を使用しています。
以下のコードを試しましたが、エラーが発生しました:「System.Guid」から「byte[]」に変換できません
可能な/代替の解決策について何か提案はありますか?
MembershipUser currentUser = Membership.GetUser();
Guid currentUserId;
currentUserId = new Guid("{" + currentUser.ProviderUserKey.ToString()+ "}");
MyDataSetTableAdapters.MEMBERINFOTableAdapter accUpdate = new Project1.PAGES.MyTableAdapters.MEMBERINFOTableAdapter();
accUpdate.UpdateQuery(instName, accountMade, lblTodaysDate, currentUserId, instName);