Search

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

Matching Posts

  • Re: Binding to Label Web Control (kinda a newbie question)

    That's a very strange thing you're trying to accomplish, and not very efficient. #Eval only works in repeater, gridview, etc. I would just do a code behind to retrieve the title and set the label to that value. ie. CategoryTitleLabel.Text = myDataReader["CategoryTitle"].ToString()
    Posted to Web Forms (Forum) by tedqn on 11/16/2007
  • Re: ajax updatepanel not editable if values are database driven

    You need to put the code to retrieve values from database in PageLoad() { if(!IsPostBack) { // prefill fields with values from database } }
    Posted to Web Forms (Forum) by tedqn on 11/16/2007
  • Re: c# syntax clarification please

    Thank you all for your advice. It makes sense now.
    Posted to Migrating from ASP to ASP.NET (Forum) by tedqn on 11/14/2007
  • Re: sqldatsource:SelectParameters:FormParameter not effective till postback?

    Excellent. CookieParameter works fine. Can't believe I didn't notice that and ended up doing it the hard way (code behind onload to assign the plain Parameter value with cookies value).
  • sqldatsource:SelectParameters:FormParameter not effective till postback?

    I have a simple gridview that loads on page load. It uses an on page sqldatasource declaration in which there's a parameter in which value is already available in cookies. I added an asp:HiddenField and set that value on PageLoad() to the value of the cookies. I then set a FormParameter in the sqldatasource mapped to that hidden field. However that appears to have no effect at all. I'm guessing the sqldatasource will only use the form field after postback.
  • c# syntax clarification please

    I use <%# Eval("SomeField") %>, <%# SomeFunction(SomeInputValue) %> in ItemTemplate for gridview, repeater, etc. and it works fine. But when using it in javascript code, it doesn't get processed ie. var el = document.getElementById("<%# MyTextBox.ClientID%>") ). I have to use <%=xxxx%> to make it work. What's the difference? Also, is it possible in .net to continue running script blocks like ASP directly in the page, such as <% while objReader
    Posted to Migrating from ASP to ASP.NET (Forum) by tedqn on 11/14/2007
  • Need more info than args.get_postBackElement().id

    The gridview has Edit option on each row and pages at the bottom for paging. For paging, I just refresh the current gridview (UpdatePanel) with content of the next page. For edit, I need to load the content of a row into a separate UpdatePanel. The mouseover of edit & paging show the same elements __doPostBack('ctl00$ContentPlaceHolder1$grdEvents','LoadEdit$0') __doPostBack('ctl00$ContentPlaceHolder1$grdEvents','Page$0') I need to be able to access the variable
    Posted to ASP.NET AJAX UI (Forum) by tedqn on 11/5/2007
  • CascadingDropDown - possible to make dropdown2 a checkboxlist?

    I have a dropdownlist1 which serves as the filter to limit the checkboxlist choices. Currently I'm using UpdatePanel to dynamically refresh the choice list base on the selection in the droplist. However, I'm thinking about replacing that method with a web service to make it faster rather than calling the whole page asynchronously to refresh the choice list. The CascadeDropDown appears to be a solution but it only works for dropdownlists.
    Posted to ASP.NET AJAX Control Toolkit (Forum) by tedqn on 3/23/2007
  • Re: Gridview edit - client side validation

    I'm positive that the submit update button won't do anything with CausesValidation="true". It took me two days to figure out why that stupid button won't trigger a postback. I don't understand how the ValidationGroup can help since the CausesValidation is false so it won't be triggered at all. I can understand why CausesValidation="false" is required for Cancel, Edit, Delete but requiring it for Update is a .net mistake. Yes the ID is always there when submitting an update but most of the time, we
    Posted to Data Presentation Controls (Forum) by tedqn on 3/22/2007
  • Gridview edit - client side validation

    Currently I have to set CausesValidation="false" in order for the gridview edit to submit. Therefore asp:RequiredFieldValidator won't work. I currently handle the validation upon post back but wonder if there's a way to handle it client side instead of wasting a post back to the server. <EditItemTemplate> <asp:TextBox ID="EditLabel" runat="server" Text='<%# Eval("Label") %>' CssClass="white1" Width="200px" MaxLength="100"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator3
    Posted to Data Presentation Controls (Forum) by tedqn on 3/21/2007
Page 1 of 3 (25 items) 1 2 3 Next >