Search

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

Matching Posts

  • Re: Auto Increment to Label Control

    I just realized something easier you could do. Just put a hyperlink to the 2nd page on the 1st and then in the 2nd page's Load event check the IsPostBack property. If it is false then you know you need to create a new record and assign it's ID to the label. Much simpler than doing it in the 1st page and then redirecting. It would be like this: protected void Page_Load(object sender, EventArgs e) { if (this.IsPostBack == false) { // Insert record here and set the text of the label } }
    Posted to Web Forms (Forum) by DotNetAdvisor on 11/6/2008
  • Re: adding "required field" to <asp:label> control

    How about this: <asp:Label ID="ID" runat="server" AssociatedControlID="firstName">First Nam: <span class="required">(required field)</span></asp:Label>
    Posted to Getting Started (Forum) by DotNetAdvisor on 11/5/2008
  • Re: Auto Increment to Label Control

    I think you would be better off just inserting the data from the 2nd page rather than doing an insert and an update. But if you want to stick with this then once you insert the record pass the ID through the querystring in your redirect.
    Posted to Web Forms (Forum) by DotNetAdvisor on 11/5/2008
  • Re: custom control not remembering values

    You're welcome. Can you mark this thread answered so I don't keep coming back to it? Thanks!
    Posted to Custom Server Controls (Forum) by DotNetAdvisor on 11/4/2008
  • Re: digit formatting

    ToString("n3") should do that for you.
    Posted to C# (Forum) by DotNetAdvisor on 11/3/2008
  • Re: Retrieve Data from 25 related tables. Please help

    I don't believe there is a limit to how many tables you can join but keep in mind the more you do the lower the performance will be. I have worked on databases for almost 10 years and I cannot remember a time when I've had to join 10 or more tables in a query. I've gotten close though. I imagine that if that many tables need to be joined that perhaps the schema wasn't designed as optimally as it could have been.
  • Re: digit formatting

    Another option is like this: int num = 10000000; string numString = num.ToString("n0"); The zero indicates how many decimal places you want displayed.
    Posted to C# (Forum) by DotNetAdvisor on 11/3/2008
  • Re: custom control not remembering values

    You need to store the value in viewstate so it gets persisted across postbacks. Change your property to this: public string Value { get { return ViewState["imgVal"] as string; } set { ViewState["imgVal"] = value; } } You can eliminate the imgVal variable when you do it like this.
    Posted to Custom Server Controls (Forum) by DotNetAdvisor on 11/3/2008
  • Re: Server side validation affecting client side validation

    [quote user="daviessi"] I'd be interested to find out if anyone has a solution to this. I have a similar problem. My page has some textboxes, radio buttons, etc that are enabled and disabled by javascript depending on what the user clicks on. For example on a page that allows users to change their contact details (residential, postal, email, phone): By default when the page loads, the fields for the user's address are disabled (by javascript invoked onload). If they click on the
    Posted to Web Forms (Forum) by DotNetAdvisor on 10/23/2008
  • Re: Repeater Child Control ID inconsistent

    What I was thinking was you could build a string array in the ItemDataBound event and use that array to create a javascript array of the dropdowns. Then you can iterate through that array in your javascript function. Here's some sample code: Private dropDowns As New System.Collections.Generic.List(Of String) Protected Sub MyItemControl_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) Me.dropDowns.Add(e.Item.FindControl("cboSort").ClientID) End Sub Protected Sub
Page 1 of 87 (868 items) 1 2 3 4 5 Next > ... Last ยป