Search

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

Matching Posts

  • Re: GridView Postback adds IDs to TD and TR Elements

    Thanks for the response. I was (fortunately) able to find a solution to this problem. First, the issue was that .NET was generating invalid HTML. After looking deeper I noticed that it added a 2nd ID attribute to the TABLE tag. Adding IDs to the TR and TD elements is bad enough, but a 2nd ID on a TABLE element is just plain invalid. The way I got around the problem was to change my ASP.NET code. I added the EnableViewState="False" attribute to the GridView, and rewrote the way the code
    Posted to Data Presentation Controls (Forum) by csi95 on 4/9/2009
  • GridView Postback adds IDs to TD and TR Elements

    Has anyone else noticed this? I have a Gridview on a page. On the ititial load of the page, the HTML is generated as I would expect. For example: <table class="RenewalTable" cellspacing="0" border="0" id="ctl00_ApartmentPlaceHolder_gridRenewal" style="border-collapse:collapse;"> < caption > Renewal information for a given date range </ caption >< thead > < tr > < th scope= "col" >Apt</ th >< th
    Posted to Data Presentation Controls (Forum) by csi95 on 4/8/2009
    Filed under: PostBack, gridview
  • Re: Getting column Schema from SqlDataSource

    Hi Samu, Thanks for the response. Maybe I didn't make myself clear, however. I'm trying to find the field length in the schema for the table. For example, varchar(50). I don't need to know the length of any given item within that field. Thanks.
    Posted to Data Presentation Controls (Forum) by csi95 on 1/20/2009
  • Re: Validate Bound Field in GridView

    [quote user="Nemesis116"] I'm sorry I didn't read to whole your code in depth, but the "it will show ctrl100 as the ID" can be solved by referering to the ClientID of the control, not the ID. The ClientID is the rendered ID. Hope it helps. [/quote] Thanks for the reply. I'm afraid it's not that easy though. None of the ID fields are populated when I look at them in the RowCommand event. The ID, UniqueID and ClientID are all Nothing. Those IDs must get assigned
    Posted to Data Presentation Controls (Forum) by csi95 on 1/18/2009
  • Validate Bound Field in GridView

    Is there any way to validate a Bound Field in a GridView? Yes, I know it can be done with a TemplateField, but that's not possible in my situation. I will not know how many columns are returned from the SqlDataSource, so I cannot use a Template Field. I'm trying to add the validator programattically, but I can't seem to get the ID for the Bound Control. It keeps coming up as Nothing. Here's the code: Protected Sub gridSettings_RowDataBound( ByVal sender As Object , ByVal e As System
    Posted to Data Presentation Controls (Forum) by csi95 on 1/17/2009
    Filed under: validate, BoundField, GridView
  • Getting column Schema from SqlDataSource

    Hi Everyone, I've got a GridView that's fed by an SqlDataSource, and it needs to allow edits and deletes. For reasons I won't get into, I won't always know what the fields are that get shown in the GridView. So, I'm using the AutoGenerateColumns = True option. The problem is that the input fields the GridView creates don't have a maxlength attribute. That's a huge problem. So, I'm trying to figure out the length of each fields is from the SqlDataSource. With that I
    Posted to Data Presentation Controls (Forum) by csi95 on 1/15/2009
    Filed under: schema, sqldatasourcrce, gridview
  • Re: Setting a DropDownList Value from a Button's Click Event

    [quote user="ralph.varjabedian"] When you said you are using SqlDataSource, I assumed that you are not doing the binding yourself. Again I did an example with nothing in my code behind page except the one line of code that sets the SelectedValue. [/quote] That works for me too -- if the value I set actually exists in the dropdownlist. If the value does not exist (something I can't verify until the DDL is databound), then I get the error. Anyway, doing the databind of the DDL before
    Posted to Web Forms (Forum) by csi95 on 11/12/2008
  • Re: Setting a DropDownList Value from a Button's Click Event

    [quote user="shandyhidayat"] In which event do you bind the DropDownList Control ? [/quote] I'm not doing a bind myself, which I believe is the cause of the problems. I'm using an SqlDataReader which does the work for me. Here's the .aspx code: < asp:DropDownList ID= "ddlMyList" runat= "server" DataSourceID= "MySource" DataTextField= "Label" DataValueField= "Code" AppendDataBoundItems= "true" /> < asp:SqlDataSource
    Posted to Web Forms (Forum) by csi95 on 11/11/2008
  • Re: about drop down list

    You are a bit vague on what you need to do, but setting the value of a DropDownList is trivial: ddlMonth.SelectedValue = 11 ddlDay.SelectedValue = 12 ddlYear.SelectedValue = 2008
    Posted to Web Forms (Forum) by csi95 on 11/11/2008
  • Re: Date and Time validation in javascript

    Take a look at the ASP.NET AJAX Toolkit. It has a control that you can add to your ASPX page called a ValidatorCalloutExtender. This will have the client side JavaScript perform the same validations as your server side validator. Add a CompareValidator to the textbox that holds the date. Set the Operator="DataTypeCheck" Set the Type="Date" Point the ValidatorCalloutExtender to the CompareValidator That should get you what you want -- assuming you want to ensure that you've
    Posted to Web Forms (Forum) by csi95 on 11/11/2008
Page 1 of 25 (241 items) 1 2 3 4 5 Next > ... Last »