This is the checkbox that I have in asp.net which generates a string next to it when checked.
<asp:CheckBox ID="autoDoc" runat="server" OnCheckedChanged="autoDoc_Checked" AutoPostBack="true" />
<asp:Literal ID="StrautoDoc" runat="server" Text=""></asp:Literal>
This is the C# code for the functionality.
protected void autoDoc_Checked(object sender, EventArgs e)
{
StrautoDoc.Text = DateTime.Now.ToString("MM/dd/yy") + " - " + GetUser() + " assigned " + txtInstructions.Text + " task to " + GetTaskee();
}
This is getting the current date, logged in user, and the person being assigned, from the database. But all this does right now is posts the string next to the checkbox upon clicking it. I instead need it to post to a different page (different file) in a specific location. How would I go about approaching this? Thank you!
Aucun commentaire:
Enregistrer un commentaire