Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 24th, 2008, 2:21 PM   #1
AFProgMan
Newbie
 
Join Date: Oct 2008
Posts: 23
Rep Power: 0 AFProgMan is on a distinguished road
Creating an Edit Table

Hello,

I have created a site page that allows for the input of referrals onto this website. There is a function to add the referrals to the DB in a new record or row and in MultiView View2 I have a delete record function that displays some of the general info for the referrals and you can delete the record from there.

I am in need of an edit record page. I would like to do this from the same page, but I am not sure if I need to create a 3rd view to allow for this or if I can add an edit button on the delete section that would bring up all of the data in the the create referral view and just add a delete button that is visible when editing a record?

Anybody know of the best way to go about this?
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Logger;

/// <summary>
/// Summary description for directorylistings
/// </summary>
public class directorylistings : data
{
    private static string oConn = ConfigurationManager.AppSettings["connstring"];

    public static DataSet GetDirectoryListings()
    {
        return _getDirectoryListings();
    }
    private static DataSet _getDirectoryListings()
    {
        string oString = "Select refid ,reffirstname, reflastname, reffirmname, refspecialty, refaddress, refcity, refstate, refzipcode, refphoneareacode, refphonenumber, reffaxareacode, reffaxnumber, refemailaddress, refwebsiteaddress, refdescription "
            + "From tbl_ReferralDirectory "
            + "Order by refstate, refspecialty";

        string DataTable_Name = "tbl_ReferralDirectory";

        DataSet DS = new DataSet();
        SqlDataAdapter oAdapter = new SqlDataAdapter(oString, oConn);
        oAdapter.Fill(DS, DataTable_Name);

        return DS;
    }

    public static DataSet GetReferralByID(int refid)
    {
        return _getReferralByID(refid);
    }
    private static DataSet _getReferralByID(int refid)
    {
        string oConn = ConfigurationManager.AppSettings["connstring"];
        string oString = "Select refid ,reffirstname, reflastname, reffirmname, refspecialty, refaddress, refcity, refstate, refzipcode, refphoneareacode, refphonenumber, reffaxareacode, reffaxnumber, refemailaddress, refwebsiteaddress, refdescription "
            + "From tbl_ReferralDirectory "
            + "Where refid = " + refid;

        string DataTable_Name = "tbl_ReferralDirectory";

        DataSet DS = new DataSet();
        SqlDataAdapter oAdapter = new SqlDataAdapter(oString, oConn);
        oAdapter.Fill(DS, DataTable_Name);
        return DS;
    }

    public static DataSet GetLatestDirectoryListings()
    {
        return _getLatestDirectoryListings();
    }
    private static DataSet _getLatestDirectoryListings()
    {
        string oString = "Select refid ,reffirstname, reflastname, reffirmname, refspecialty, refaddress, refcity, refstate, refzipcode, refphoneareacode, refphonenumber, reffaxareacode, reffaxnumber, refemailaddress, refwebsiteaddress, refdescription "
            + "From tbl_ReferralDirectory "
            + "Order by refid desc";

        string DataTable_Name = "tbl_ReferralDirectory";

        DataSet DS = new DataSet();
        SqlDataAdapter oAdapter = new SqlDataAdapter(oString, oConn);
        oAdapter.Fill(DS, DataTable_Name);

        return DS;
    }

    public static bool Insert(string strfirstname, string strlastname, string strfirmname, string strspecialty,
        string straddress, string strcity, string strstate, string strpostalcode, string strphoneareacode, string strphonenumber,
        string strfaxareacode, string strfaxnumber, string stremail, string strwebsite, string strdescription)
    {
        return _insert(strfirstname, strlastname, strfirmname, strspecialty, straddress, strcity,
                strstate, strpostalcode, strphoneareacode, strphonenumber, strfaxareacode, strfaxnumber, stremail, strwebsite, strdescription);
    }
    private static bool _insert(string strfirstname, string strlastname, string strfirmname, string strspecialty,
        string straddress, string strcity, string strstate, string strpostalcode, string strphoneareacode, string strphonenumber,
        string strfaxareacode, string strfaxnumber, string stremail, string strwebsite, string strdescription)
    {

        SqlConnection oConn;
        oConn = new SqlConnection(ConfigurationManager.AppSettings["connstring"]);
        string oString = "Insert Into tbl_ReferralDirectory(reffirstname, reflastname, reffirmname, refspecialty, refaddress, refcity, refstate, refzipcode, refphoneareacode, refphonenumber, reffaxareacode, reffaxnumber, refemailaddress, refwebsiteaddress, refdescription) values(@firstname, @lastname, @firm, @specialty, @address, @city, @state, @postalcode, @phoneareacode, @phonenumber, @faxareacode, @faxnumber, @email, @website, @description) ";

        SqlCommand ocommand = new SqlCommand(oString, oConn);
        ocommand.Parameters.Add(new SqlParameter("@firstname", strfirstname));
        ocommand.Parameters.Add(new SqlParameter("@lastname", strlastname));
        ocommand.Parameters.Add(new SqlParameter("@firm", strfirmname));
        ocommand.Parameters.Add(new SqlParameter("@specialty", strspecialty));
        ocommand.Parameters.Add(new SqlParameter("@address", straddress));
        ocommand.Parameters.Add(new SqlParameter("@city", strcity));
        ocommand.Parameters.Add(new SqlParameter("@state", strstate));
        ocommand.Parameters.Add(new SqlParameter("@postalcode", strpostalcode));
        ocommand.Parameters.Add(new SqlParameter("@phoneareacode", strphoneareacode));
        ocommand.Parameters.Add(new SqlParameter("@phonenumber", strphonenumber));
        ocommand.Parameters.Add(new SqlParameter("@faxareacode", strfaxareacode));
        ocommand.Parameters.Add(new SqlParameter("@faxnumber", strfaxnumber));
        ocommand.Parameters.Add(new SqlParameter("@email", stremail));
        ocommand.Parameters.Add(new SqlParameter("@website", strwebsite));
        ocommand.Parameters.Add(new SqlParameter("@description", strdescription));

        try
        {
            oConn.Open();
            ocommand.ExecuteNonQuery();
        }
        catch (Exception ee)
        {
            bool bReturnLog = false;
            ErrorLog.LogFilePath = "ErrorLogFile.txt";
            bReturnLog = ErrorLog.ErrorRoutine(false, ee);
            return false;
        }

        oConn.Close();
        oConn.Dispose();

        return true;
    }

    public static bool DeleteReferralByID(int intrefid)
    {
        return _deleteReferralByID(intrefid);
    }
    private static bool _deleteReferralByID(int intrefid)
    {

        SqlConnection oConn;
        oConn = new SqlConnection(ConfigurationManager.AppSettings["connstring"]);

        string oString = "Delete From tbl_ReferralDirectory Where refid = @refid";

        SqlCommand ocommand = new SqlCommand(oString, oConn);
        ocommand.Parameters.Add(new SqlParameter("@refid", intrefid));

        try
        {
            oConn.Open();
            ocommand.ExecuteNonQuery();
        }
        catch (Exception ee)
        {
            bool bReturnLog = false;
            ErrorLog.LogFilePath = "ErrorLogFile.txt";
            bReturnLog = ErrorLog.ErrorRoutine(false, ee);
            return false;
        }

        oConn.Close();
        oConn.Dispose();

        return true;
    }
}
^--Is the code behind directry listings. Functions for delete and add referral contained in here.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="adminReferralDirectory.ascx.cs" Inherits="includes__private_adminReferralDirectory" %>
<style type="text/css">
    .style1
    {
        width: 1px;
        height: 122px;
    }
    .style2
    {
        width: 136px;
        height: 122px;
    }
    .style3
    {
        height: 122px;
    }
    .tab
    {
    }
    .tabs
    {
    }
    .text
    {
    }
    .notices
    {
    }
    .selectedTab
    {
    }
    .tabContents
    {
    }
</style>
<div>
<asp:Menu ID="Menu1" Orientation="Horizontal" StaticMenuItemStyle-CssClass="tab"
    StaticSelectedStyle-CssClass="selectedTab" CssClass="tabs" OnMenuItemClick="Menu1_MenuItemClick"
    runat="server">
    <Items>
        <asp:MenuItem Text="Add Referral" Value="0" Selected="true" />
        <asp:MenuItem Text="Delete Referrals" Value="1" />       
    </Items>
</asp:Menu>
<div class="tabContents">
<asp:MultiView ID="MultiView1" ActiveViewIndex="0" runat="server">
<asp:View ID="View1" runat="server">
<table border="0" cellpadding="0" cellspacing="2" width="600">
 <tr>
    <td style="width: 1px">
        <span style="color: #ff0000">*</span></td>
    <td style="width: 136px">
        <asp:Label ID="lblRefFirstName" runat="server" CssClass="text" Text="Referral First Name"></asp:Label></td>
    <td>
        <asp:TextBox ID="txtRefFirstName" runat="server" Width="279px"></asp:TextBox>&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRefFirstName"
            Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator></td>
</tr>
<tr>
    <td style="width: 1px">
        <span style="color: #ff0000">*</span></td>
    <td style="width: 136px">
        <asp:Label ID="lblRefLastName" runat="server" CssClass="text" Text="Referral Last Name"></asp:Label></td>
    <td>
        <asp:TextBox ID="txtRefLastName" runat="server" Width="279px"></asp:TextBox>&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtRefLastName"
            Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator></td>
</tr>
<tr>
    <td style="width: 1px; height: 24px;">
        <span style="color: #ff0000">*</span></td>
    <td style="width: 136px; height: 24px;">
        <asp:Label ID="lblRefFirmName" runat="server" CssClass="text" Text="Referral Firm Name"></asp:Label></td>
    <td style="height: 24px">
        <asp:TextBox ID="txtRefFirmName" runat="server" Width="279px"></asp:TextBox>&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtRefFirmName"
            Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator></td>
</tr>
<tr>
    <td style="width: 1px">
        <span style="color: #ff0000">*</span></td>
    <td style="width: 136px">
        <asp:Label ID="lblRefSpecialty" runat="server" CssClass="text" Text="Referral Specialty"></asp:Label></td>
    <td>
        <asp:TextBox ID="txtRefSpecialty" runat="server" Width="279px"></asp:TextBox>&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtRefSpecialty"
            Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator></td>
</tr>
<tr>
    <td style="width: 1px">
     <span style="color: #ff0000">*</span></td>
    <td style="width: 136px">
        <asp:Label ID="lblRefAddress" runat="server" CssClass="text" Text="Referral Address"></asp:Label></td>
    <td>
        <asp:TextBox ID="txtRefAddress" runat="server" Width="279px"></asp:TextBox>&nbsp;
         <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtRefAddress"
            Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td style="width: 1px">
        <span style="color: #ff0000">*</span></td>
    <td style="width: 136px">
    <asp:Label ID="lblRefCity" runat="server" CssClass="text" Text="Referral City"></asp:Label></td>
    <td>
        <asp:TextBox ID="txtRefCity" runat="server" Width="279px"></asp:TextBox>&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtRefCity"
            Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator></td>
</tr>
<tr>
    <td style="width: 1px">
        <span style="color: #ff0000">*</span></td>
    <td style="width: 136px">
        <asp:Label ID="lblRefState" runat="server" CssClass="text" Text="Referral State"></asp:Label></td>
    <td>
        <asp:DropDownList ID="cboStates" runat="server" Width="277px" DataTextField="State"
            DataValueField="Abbrev" />&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="cboStates"
            Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator></td>
</tr>
<tr>
    <td style="width: 1px">
    <span style="color: #ff0000">*</span>
    </td>
    <td style="width: 136px">
        <asp:Label ID="lblRefPostalCode" runat="server" CssClass="text" Text="Referral Postal Code"></asp:Label></td>
    <td>
    <asp:TextBox ID="txtRefPostalCode" runat="server" Width="279px"></asp:TextBox>&nbsp;
    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtRefPostalCode"
        Display="Dynamic" ErrorMessage="Required Field!" SetFocusOnError="True" ValidationGroup="Referrals"></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td style="width: 1px; height: 24px">
        </td>
    <td style="height: 24px; width: 136px;">
        <asp:Label ID="lblRefPhoneNumber" runat="server" CssClass="text" Text="Referral Phone #"></asp:Label></td>
    <td style="height: 24px">
        <asp:TextBox ID="txtRefPhoneNumberAreaCode" runat="server" Width="51px"></asp:TextBox>&nbsp;
        <asp:TextBox ID="txtRefPhoneNumber" runat="server" Width="219px"></asp:TextBox>&nbsp;
       </td>
</tr>
<tr>
    <td style="width: 1px; height: 24px">
       </td>
    <td style="height: 24px; width: 136px;">
        <asp:Label ID="lblRefFaxNumber" runat="server" CssClass="text" Text="Referral Fax #"></asp:Label></td>
    <td style="height: 24px">
        <asp:TextBox ID="txtRefFaxNumberAreaCode" runat="server" Width="51px"></asp:TextBox>&nbsp;
        <asp:TextBox ID="txtRefFaxNumber" runat="server" Width="219px"></asp:TextBox>&nbsp;
        </td>
</tr>
<tr>
    <td style="width: 1px">
    </td>
    <td style="width: 136px">
        <asp:Label ID="lblRefEmailAddress" runat="server" CssClass="text" Text="Referral Email Address"></asp:Label></td>
    <td>
    <asp:TextBox ID="txtRefEmailAddress" runat="server" Width="279px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td style="width: 1px">
    </td>
    <td style="width: 136px">
        <asp:Label ID="lblRefWebsite" runat="server" CssClass="text" Text="Referral Website"></asp:Label></td>
    <td>
    <asp:TextBox ID="txtRefWebsite" runat="server" Width="279px"></asp:TextBox>
    </td>
</tr>
 <tr>
    <td class="style1">
    </td>
    <td class="style2">
    <asp:Label ID="Label2" runat="server" CssClass="text" Text="Referral Description"></asp:Label>
        &nbsp;</td>
    <td class="style3">
    <asp:TextBox ID="TxtRefDescription" runat="server" Width="279px" Height="112px" 
            Rows="4" TextMode="MultiLine"></asp:TextBox>
    </td>
</tr>
<tr>
    <td style="width: 1px">
    </td>
    <td style="width: 136px">
    </td>
    <td>
        &nbsp;</td>
    </tr>
<tr>
    <td style="width: 1px">
    </td>
    <td style="width: 136px">
        <asp:Label ID="hidstatus" runat="server" CssClass="text" Visible="False"></asp:Label></td>
    <td>
        <asp:Button ID="cmdSubmitRef" runat="server" Width="188px" OnClick="cmdSubmitRef_Click"
            Text="Submit Referral Information" ValidationGroup="Referrals" />&nbsp;
        <asp:Label ID="lblUserMessage" runat="server" ForeColor="Red"></asp:Label>
    </td>
    </tr>
    <tr>
        <td style="width: 1px">
        </td>
        <td style="width: 136px">
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3" rowspan="2">
            <span class="notices" style="color: #ff0000">* Fields are required.<br />Please complete all required fields before submitting.</span>
    </td>
    </tr>
</table>
</asp:View>
<asp:View ID="View2" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" EmptyDataText="No referrals in the database." 
        PageSize="50" SkinID="gvClearSkin" Width="600px" OnRowDataBound="GridView1_RowDataBound"  
        OnRowDeleted="GridView1_RowDeleted" OnRowDeleting="GridView1_RowDeleting">
        <Columns>
        <asp:BoundField DataField="refid" Visible="False" />
        <asp:BoundField DataField="reffirstname" HeaderText="First Name" />
        <asp:BoundField DataField="reflastname" HeaderText="Last Name" />
        <asp:HyperLinkField DataNavigateUrlFields="refid" 
            DataNavigateUrlFormatString="~\admin\default.aspx?ld=refDirectory&amp;refid={0}" 
            DataTextField="reffirmname" HeaderText="Firm Name" />
        <asp:BoundField DataField="refspecialty" HeaderText="Specialty" />
        <asp:BoundField DataField="refstate" HeaderText="State" />   
    <asp:TemplateField  HeaderText="Select">         
        <ItemTemplate>
<asp:LinkButton ID="LinkButton1" CommandArgument='<%# Eval("refid") %>' CommandName="Delete" 
runat="server">Delete</asp:LinkButton> or
<asp:LinkButton ID="LinkButton2" CommandArgument='<%# Eval("refid") %>' CommandName="Edit" 
runat="server">Edit</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:View>
</asp:MultiView>
</div>
</div>
^-- Code for the front end admin secion with 2 views. Should I add a 3rd?

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class includes__private_adminReferralDirectory : System.Web.UI.UserControl
{
    private static int deleteid;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            cboStates.DataSource = functions.GetStates();
            cboStates.DataBind();
            cboStates.Items.Insert(0, "Please Select");          
        }

        if (data.intRefID != 0)
        {
            bindReferrals();
        }
    }

    protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
    {
        int index = Int32.Parse(e.Item.Value);

        if ((index == 0) || (index == 1))
            MultiView1.ActiveViewIndex = index;

        switch (index)
        { 
            case 0:
                cleanTextBoxes();
                break;
            case 1:
                GridView1.DataSource = directorylistings.GetDirectoryListings();
                GridView1.DataBind();
                break;
        }
    }

    protected void cmdSubmitRef_Click(object sender, EventArgs e)
    {       
        string firstname = txtRefFirstName.Text.Trim();
        string lastname = txtRefLastName.Text.Trim();
        string firmname = txtRefFirmName.Text.Trim();
        string specialty = txtRefSpecialty.Text.Trim();
        string address = txtRefAddress.Text.Trim();
        string city = txtRefCity.Text.Trim();
        string state = cboStates.SelectedItem.Value.Trim();
        string postalcode = txtRefPostalCode.Text.Trim();
        string phoneareacode = txtRefPhoneNumberAreaCode.Text.Trim();
        string phonenumber = txtRefPhoneNumber.Text.Trim();
        string faxareacode = txtRefFaxNumberAreaCode.Text.Trim();
        string faxnumber = txtRefFaxNumber.Text.Trim();
        string emailaddy = txtRefEmailAddress.Text.Trim();
        string website = txtRefWebsite.Text.Trim().Replace("http://", "");
        string description = TxtRefDescription.Text.Trim();

        if (directorylistings.Insert(firstname, lastname, firmname, specialty, address, city, state, postalcode, phoneareacode, phonenumber, faxareacode, faxnumber, emailaddy, website, description) == true)
        {
            lblUserMessage.Text = "Referral added to the database.";
            cleanTextBoxes();
        }
        else
        {
            lblUserMessage.Text = "This request resulted in an error.";
        }       
    }

    private void cleanTextBoxes()
    {
        txtRefFirstName.Text = string.Empty;
        txtRefLastName.Text = string.Empty;
        txtRefFirmName.Text = string.Empty;
        txtRefSpecialty.Text = string.Empty;
        txtRefAddress.Text = string.Empty;
        txtRefCity.Text = string.Empty;                 
        cboStates.SelectedIndex = 0;
        txtRefPostalCode.Text = string.Empty;
        txtRefPhoneNumberAreaCode.Text = string.Empty;
        txtRefPhoneNumber.Text = string.Empty;
        txtRefFaxNumberAreaCode.Text = string.Empty;
        txtRefFaxNumber.Text = string.Empty;
        txtRefEmailAddress.Text = string.Empty;
        txtRefWebsite.Text = string.Empty;
        TxtRefDescription.Text = string.Empty;
    }

    private void bindReferrals()
    {
        foreach (DataRow dr in directorylistings.GetReferralByID(data.intRefID).Tables[0].Rows)
        {
            txtRefFirstName.Text = dr["reffirstname"].ToString();
            txtRefLastName.Text = dr["reflastname"].ToString();
            txtRefFirmName.Text = dr["reffirmname"].ToString();
            txtRefSpecialty.Text = dr["refspecialty"].ToString();
            txtRefAddress.Text = dr["refaddress"].ToString();
            txtRefCity.Text = dr["refcity"].ToString();    

            try
            {
                cboStates.ClearSelection();
                cboStates.Items.FindByValue(dr["refstate"].ToString()).Selected = true;
            }
            catch { }

            txtRefPostalCode.Text = dr["refzipcode"].ToString();
            txtRefPhoneNumberAreaCode.Text = dr["refphoneareacode"].ToString();
            txtRefPhoneNumber.Text = dr["refphonenumber"].ToString();
            txtRefFaxNumberAreaCode.Text = dr["reffaxareacode"].ToString();
            txtRefFaxNumber.Text = dr["reffaxnumber"].ToString();
            txtRefEmailAddress.Text = dr["refemailaddress"].ToString();
            txtRefWebsite.Text = dr["refwebsiteaddress"].ToString();
            TxtRefDescription.Text = dr["refdescription"].ToString();
        }
    }

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            LinkButton l = (LinkButton)e.Row.FindControl("LinkButton1");
            l.Attributes.Add("onclick", "javascript:return " +
            "confirm('Are you sure you want to delete referral #" +
            DataBinder.Eval(e.Row.DataItem, "refid") + "?')");

            deleteid = (int)DataBinder.Eval(e.Row.DataItem, "refid");            
        }
    }

    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {     
    }

    protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
    {    
    }

    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        directorylistings.DeleteReferralByID(deleteid);
    }
}
^---- Here is the code behind the front end view.


Any suggestions or easiest methods to go about this? Any and all help is greatly appreciated.

-kev
AFProgMan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a table border with a break in it? how? sabian HTML / XHTML / CSS 3 Jun 20th, 2006 4:01 AM
very simple question. make button change number in edit box nickm Delphi 2 Apr 29th, 2006 11:47 PM
table or TDBgrid please help gaara Delphi 15 Jul 5th, 2005 3:37 AM
creating a multiplication table in a ListView control awdboxer Visual Basic .NET 4 Jun 21st, 2005 3:59 PM
Reading edit controls (I have tried, code provided) layer C++ 5 Apr 27th, 2005 8:31 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:29 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC