Advertisement
Advertisement
| 07.24.2008 at 06:06AM PDT, ID: 23591882 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: |
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
public partial class Email_List : System.Web.UI.Page
{
protected void test(object sender, ObjectDataSourceStatusEventArgs e)
{
rowcountTextBox.Text = ((List<DataTableAdapters.tbl_Email_Blast2TableAdapter>)e.ReturnValue).Count.ToString();
}
}
********************************************************************************************************************
<%@ Page Language="C#" MasterPageFile="~/Email_List/MasterPage2.master" Debug="true" AutoEventWireup="true" CodeFile="CSV_List.aspx.cs" Inherits="Email_List" Title="Email Address List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<h3 style="font-family:Tahoma;">Datawarehouse Email Marketing List<br />
<asp:TextBox ID="rowcountTextBox" runat="server"></asp:TextBox></h3>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid"
BorderWidth="1px" CellPadding="3" DataKeyNames="db_key" DataSourceID="ObjectDataSource2"
ForeColor="Black" GridLines="Vertical" PageSize="25">
<FooterStyle BackColor="#CCCCCC" Font-Names="Tahoma" Font-Size="Small" />
<Columns>
<asp:TemplateField HeaderText="Edit" ShowHeader="False">
<EditItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="True" CommandName="Update"
ImageUrl="~/images/disk.png" ToolTip="Save Changes" />
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Edit"
ImageUrl="~/images/pencil.png" ToolTip="Edit Email Addresses" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Delete" ShowHeader="False">
<EditItemTemplate>
<asp:ImageButton ID="ImageButton3" runat="server" CausesValidation="False"
CommandName="Cancel" ImageUrl="~/images/diskx.png" ToolTip="Discard Changes" Text="Cancel" />
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton ID="ImageButton4" runat="server" CausesValidation="False" CommandName="Delete"
ImageUrl="~/images/cancel.png" ToolTip="Delete Email Address" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Email Address" SortExpression="email_address">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("email_address") %>' Width="255px"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("email_address") %>' Width="255px"></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:BoundField DataField="company_name" HeaderText="Company Name" SortExpression="company_name">
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
</Columns>
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" Font-Names="Tahoma" Font-Size="Small" />
<AlternatingRowStyle BackColor="#CCCCCC" />
<RowStyle Font-Names="Tahoma" Font-Size="Small" />
<EditRowStyle Font-Names="Tahoma" Font-Size="Small" ForeColor="Black" BackColor="#FFFF80" />
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetCSVAddresseSorted"
TypeName="DataTableAdapters.tbl_Email_Blast2TableAdapter" InsertMethod="Insert" UpdateMethod="Update" OnSelected="test">
<DeleteParameters>
<asp:Parameter Name="Original_db_key" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="email_address" Type="String" />
<asp:Parameter Name="company_name" Type="String" />
<asp:Parameter Name="Original_db_key" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="email_address" Type="String" />
<asp:Parameter Name="company_name" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
</div>
</asp:Content>
|