Programming for Everybody: June 2020

Prevent textbox autofill with previously entered values

<asp:TextBox id="end_date1" runat="server" autocomplete="off"></asp:TextBox>

Or from the CodeBehind:
end_date1.Attributes.Add("autocomplete", "off")

Arabic Characters are not recognized when exporting gridview to Excel and Word asp.net (Vb.net,c#))

C#
Response.ContentEncoding = System.Text.Encoding.Unicode;
Response.BinaryWrite(System.Text.Encoding.Unicode.GetPreamble());
VB.net

Response.ContentEncoding = System.Text.Encoding.Unicode
Response.BinaryWrite(System.Text.Encoding.Unicode.GetPreamble())