Search

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

Matching Posts

  • Re: validate multiple textboxes for unique values

    This is something I did a while ago. My CustomValidator checks for one or the other for State and Province textboxes located inside a formview called company_detail. Code looks like this: <asp:CustomValidator id="req_one_validator" OnServerValidate="req_one_validate" ValidateEmptyText="true" Display="Dynamic" Text="* Either a US State <b>or</b> a Provice (below) is Required" ErrorMessage="You must provide a US State or a Province
    Posted to Web Forms (Forum) by anught on 10/16/2007
  • Re: Checkbox list loop is not returning a value for index 1!!

    Which part exactly do you need help with? on Page_load: if page.ispostback then For each check_item as CheckBoxList.item in my_checkboxlist if check_item.selected then check for existing row, edit or insert 1 value to database else check for existing row, edit or insert 0 value to database end if next end if
    Posted to Web Forms (Forum) by anught on 10/1/2007
  • Re: Which validator to use for numeric only?

    http://www.asp.net/AJAX/AjaxControlToolkit/Samples/MaskedEdit/MaskedEdit.aspx
    Posted to Web Forms (Forum) by anught on 10/1/2007
  • Re: Problems programmatically setting multiple selections in a list box

    Try going through the items in the listbox and test for existing in the array instead of the other way around. very rough pseudo-code: Try For Each Item in ListBox if itemstoselect.contains(item.value) then item.selected = true end if next HTH Andrew Andrew
    Posted to Web Forms (Forum) by anught on 10/1/2007
  • Re: validate multiple textboxes for unique values

    You could use AJAX to check the values in your server-side code using partial page postbacks or since it sounds like you are creating a method for a reordering utility/function of some sort, you might try using the AJAX ReorderList. Andrew
    Posted to Web Forms (Forum) by anught on 10/1/2007
  • Re: Checkbox list loop is not returning a value for index 1!!

    Rather than look into you OBO error (off by one), I would suggest you re-evaluate the approach you are using. I think it's completely unnecessary to store the values in a textbox for submission to a database. Just bind the checkboxes themselves to the datasource. I would think you can use a CheckBoxList and an ObjectDataSource. Andrew
    Posted to Web Forms (Forum) by anught on 10/1/2007
  • Re: Using an array, collection or else ?

    I would have all the answers stores at the server immediately and just mark the test as COMPLETE once they finish. Otherwise, if they lose connection, etc, their browser crashes, whatever, they won't lose their test answers, they can continue. [quote user="Corobori"] [quote user="sswanner1"] I don't like the idea of using an array, especially for a long test like you have. What happens if the page closes or something happens on the user side before the test is submitted
    Posted to Web Forms (Forum) by anught on 10/1/2007
  • Re: Using an array, collection or else ?

    Not sure what the BEST way is but whenever I see data rows in a form and hear the word pagination, I think GridView. You might get the results you need if you use an ObjectDataSource (with Custom Paging) and the GridView's EditItemTemplate. If the controls are generated dynamically then it's bound to be more difficult. So if the GridView works for you just wrap the grid on the left and the grid on the right in an AJAX UpdatePanel and place AutoPostback on each of the input items and it'll
    Posted to Web Forms (Forum) by anught on 10/1/2007
  • Re: Constructing dynamic charts in VWD 2005

    It's a SilverLight control. See http://www.silverlight.net
    Posted to Web Forms (Forum) by anught on 9/28/2007
  • Re: REtrieving Pictures from a Sql 2005 database and viewing them in a datalist control

    Don't give up. You are not just "displaying a picture". You are retrieving the bytes for the picture out of a database and serving them as a mime-type for the browser to read, and I'd imagine you might be resizing them and optimizing them and caching them. There are several ways to do what you are trying to do and so far you have only showed the code in the page that calls the image page, not any of the code in the "image page" itself. I'm not even sure if I saw you
    Posted to Web Forms (Forum) by anught on 9/27/2007
Page 1 of 15 (145 items) 1 2 3 4 5 Next > ... Last ยป