12/31/2023 0 Comments Download the new RightFont 8![]() Pages.Add(new ListItem("Prev", (currentPage - 1).ToString())) Int pageCount = (int)Math.Ceiling(dblPageCount) Private void PopulatePager(int recordCount, int currentPage)ĭouble dblPageCount = (double)((decimal)recordCount / (decimal)PageSize) Int pageIndex = int.Parse((sender as LinkButton).CommandArgument) Protected void Page_Changed(object sender, EventArgs e) Using (SqlDataReader dr = cmd.ExecuteReader()) Using (SqlDataAdapter sda = new SqlDataAdapter()) Using (SqlCommand cmd = new SqlCommand("Recipients", con))Ĭmd.CommandType = SqlDbType.Int, = ParameterDirection.Output Using (SqlConnection con = new SqlConnection())Ĭon.ConnectionString = WHERE (RowNumber BETWEEN * + 1 AND * OR = - 1 ORDER BY Id DESC SELECT ROW_NUMBER() OVER(ORDER BY Id DESC) RowNumber Stored Procedure CREATE PROCEDURE INT OUT ![]() = Math.min(textbox.scrollHeight, 300) + "px" Here is my GridView where the recipients' names are displayed along with their email addresses I hope my explanation can be easily understood? I would want that even if I have hundred names in the Gridview, I can send to the names even if some names will be displayed in other GridView pages due to the Pagination. The documents are saved in the Database in PDF format. I also do not want one particular document to be sent to all recipients, like all recipients receiving Timothy's Doc only. So I want to send these documents such that Timothy's Doc will not go to Eric, Sandra, Michael or Rita because it's Timothy's document, and Sandra's Doc will not go any other recipient but only to Sandra. Timothy's Doc has Timothy's name on it, Sandra's Doc has Sandra's name on it, Eric's Doc has Eric's name on it, and so on. Recipients: Timothy, Sandra, Eric, Michael, Ritaĭocuments: Timothy's Doc, Sandra's Doc, Eric's Doc, Michael's Doc and Rita's Doc. Each document bears the name of each recipient, and I want to send them to each recipient accordingly. What I mean is, let's say I have about 5 recipients that I want to send these documents attachment to. How do I achieve a situation where I can send pdf documents, as attachment, via email to multiple recipients displayed in a GridView, without mixing up the document? I seek this help because I am trying to learn how to do this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |