Search

You searched for the word(s): userid:622677

Matching Posts

  • Detailsview cell value to variable

    I am missing somthing here in this setup as I am getting a variable out of bounds for any cell value greater than 1: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Dim strQuery = Request.QueryString("store") HyperLink1.NavigateUrl += strQuery.ToString() Dim strRegion As String = DetailsView1.Rows(1).Cells(1).Text Select Case strRegion Case "azcommunity" HyperLink4.NavigateUrl = "http://www.community.com/azcommunity/Jobs.aspx" Case "flcommunity"
    Posted to Data Presentation Controls (Forum) by ronhawker on 7/22/2009
  • Re: DetailsView dataitem to variable

    I ran into an cell number out of bounds with cells >1 with this code. I would expect the cells(26) for the StoreRegion Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Dim strQuery = Request.QueryString("store") HyperLink1.NavigateUrl += strQuery.ToString() Dim strRegion As String = DetailsView1.Rows(1).Cells(1).Text Select Case strRegion Case "azcommunity" HyperLink4.NavigateUrl = " http://www.ridenowcommunity.com/azcommunity/Jobs.aspx "
    Posted to Data Presentation Controls (Forum) by ronhawker on 7/22/2009
  • Re: Append query string to hyperlink

    Ok, from what I see you are both suggesting I add a template field in the detailsview and then put the hyperlink control in that template. At that point build the link string with for example the link root plus the query string content: <asp:TemplateField> <ItemTemplate> <asp:HyperLink runat="server" Text= http://www.mc.com/storeemail.aspx?store= " & '<%# Request.QueryString["TEST"] %>' /> </ItemTemplate> </asp:TemplateField>
    Posted to Web Forms (Forum) by ronhawker on 7/3/2009
  • Re: Append query string to hyperlink

    It does not like concatenating in this instance. Both the + and & are rejected in trying to add a link string and the query request. The other field available to add besides the template field is a hyperlinkfield but this seems to be only a bound field option as it does not have the id option to reference outside of the control.
    Posted to Web Forms (Forum) by ronhawker on 7/3/2009
  • Re: Postback Issues?

    Thanks all. Yes it was the dumb mistake of nulling the label after the send. It was left over from an ealier version that cleared all variables after the send. Thanks
    Posted to Web Forms (Forum) by ronhawker on 7/2/2009
  • Append query string to hyperlink

    I have a page that was linked to with a query string which I then want to link out to another page with that same query string. If I capture the query string as such: Protected Sub Page_Load( ByVal sender As Object , ByVal e As System.EventArgs) Dim strQuery = Request.QueryString( "store" ) End Sub I then want to build to outbound link as such: < asp : HyperLink ID ="HyperLink1" runat ="server" NavigateUrl ="http://www.mc.com/locations/StoreEmailContact.aspx
    Posted to Web Forms (Forum) by ronhawker on 7/2/2009
  • Re: Append query string to hyperlink

    Yes that works fine when I move the hyperlink out of a detailsview template page to after the detailsview table I had it in. I really wanted it in the detailviews table but then the hyperlink is not seen and you get a not declared error.
    Posted to Web Forms (Forum) by ronhawker on 7/2/2009
  • Re: Append query string to hyperlink

    I tried that in page_load while it was part of a detailsview but got the hyperlink is not declared error. It does not seem to see the control within a detailview section. It may be that there is no databinding going on since it is not needed. To be within the detailsview is simply more convient for formatting but adding it outside the detailview works fine.
    Posted to Web Forms (Forum) by ronhawker on 7/2/2009
  • DetailsView dataitem to variable

    I have an application where I am calling a detailsview of store location with a passed query using the store key. That gets the info fine. I want to send an email to the store using the email address in the detailsview. I tried using in the Submit_Click event to databind the StoreEmail field to the strTo address for the email: Protected Sub Submit1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Dim strTo As String strTo = DataBinder.Eval(DetailsView1.DataItem, "StoreEmail"
    Posted to Data Presentation Controls (Forum) by ronhawker on 7/1/2009
  • Re: DetailsView dataitem to variable

    Thanks. Syntax still not quite right. Tried findcontrol and this is the rows(0) version of the code: Context is store location lookup and display from sql database based on store key in query from another page. <%@ Page Language="VB" MasterPageFile="~/site.master" Title="Retail Store Locations" EnableTheming="False" Theme="" %> <%@ Import Namespace="System.Net.Mail" %> <script runat="server"> Protected Sub Submit1_Click
    Posted to Data Presentation Controls (Forum) by ronhawker on 7/1/2009
Page 1 of 15 (146 items) 1 2 3 4 5 Next > ... Last »