How to show advert titles Show Ad "title"

Last post 05-12-2008 6:06 AM by roymartian. 17 replies.

Sort Posts:

  • Re: How to show advert titles Show Ad "title"

    05-12-2008, 5:23 AM

    Kamii,

     Thanks, no error but just get Your Title in page display, changed to Title which is name of database column but no joy.

    Sorry to be a pain, I know this is kids stuff for you - any chance of further guidance?

    R.

  • Re: How to show advert titles Show Ad "title"

    05-12-2008, 5:24 AM
    • Loading...
    • kamii47
    • Joined on 05-26-2005, 12:04 PM
    • Karachi, Pakistan
    • Posts 1,522

    Post your full code behind code

    Also menmtion whihc exact column's Data u want's to show in the Tile

    Kamran Shahid(MCSD.NET,MCPD.net[web])
    Sr. Software Engineer
    Netprosys Inc.
    www.netprosys.com

    Remember to click "Mark as Answer" on the post that helps U
  • Re: How to show advert titles Show Ad "title"

    05-12-2008, 6:06 AM

    Kamii,

     This is my, ShowAd.aspx.vb

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

    If (Not IsPostBack) Then

    Page.Header.Title = "AdTitleLabel"

    End If

     

     

    ' Check if the URL querystring contains a valid ad.

    Dim adId As Integer = DefaultValues.IdNullValue

    Dim adIdQs As String = Request.QueryString("id")

    If Not (adIdQs Is Nothing) AndAlso Not (Int32.TryParse(adIdQs, adId)) Then

    Response.Redirect("~/Search.aspx")

    End If

    If Not Page.IsPostBack Then

    If User.Identity.IsAuthenticated Then

    Me.ResponseContactEmailTextBox.Text = Membership.GetUser().Email

    Me.EmailSenderAddressTextBox.Text = Membership.GetUser().Email

    Me.ResponseContactNameTextBox.Text = Profile.FirstName & " " & Profile.LastName

    Me.EmailSenderNameTextBox.Text = Profile.FirstName & " " & Profile.LastName

    End If

    End If

    End Sub

     

    This is start of ShowAd.aspx

    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" CodeFile="ShowAd.aspx.vb"

    Inherits="ShowAd_aspx" Title="Title" %>

    <%@ Register TagPrefix="uc1" TagName="CategoryDropDown" Src="Controls/CategoryDropDown.ascx" %>

    <%@ Register TagPrefix="uc1" TagName="CategoryPath" Src="Controls/CategoryPath.ascx" %>

    <%@ Import Namespace="AspNet.StarterKits.Classifieds.Web" %>

     

Page 2 of 2 (18 items) < Previous 1 2