Search

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

Matching Posts

  • How to add blank rows to a Gridview?

    Here is my problem. I have a paged Gridview bound to a SQLDataSource. Each page of the gridview shows 10 items. So let's say I have 11 items. On page 1 of the gridview, the gridview is 10 rows high. When I click on page 2 however, only 1 more records exists, so the page is only 1 row high. This looks bad, and everything on the page moves up to the now very short gridview. What I'd like to do is add 9 more blank rows so that the gridview stays the same height. I found that I can get the total
    Posted to Data Presentation Controls (Forum) by toddhd on 2/25/2009
  • New user question - inline code neccessary?

    I've been developing in ASP.NET since it came out in beta (9 years now?) but I just started looking into MVC today. I've watched some of the videos and downloaded some code, but I keep seeing one recurring theme. Inline code. Stuff like this (taken from Kigg): < div class ="timestamp"> <% if (story.IsPublished) %> <% {%> <% = "published " %> < span class ="time"> <% = story.PublishedAgo %> </ span > ago, <% }%>
    Posted to ASP.NET MVC (Forum) by toddhd on 12/24/2008
  • Re: How to keep client-side onclick javascript from firing if event validation fails?

    I was able to solve this. I set the CausesValidation on the button to false, then did this: .btnSubmit.Attributes.Add( "onclick" , "Page_ClientValidate('MyValidationGroupName'); if(Page_IsValid) DoSomething()");
    Posted to Web Forms (Forum) by toddhd on 3/7/2008
  • Re: How to keep client-side onclick javascript from firing if event validation fails?

    I am using a LinkButton. There is no onclick event other than then one I added. Instead, it uses and href that consists of a complicated WebForm_ DoPostBackWithOptions statement.
    Posted to Web Forms (Forum) by toddhd on 3/7/2008
  • How to keep client-side onclick javascript from firing if event validation fails?

    My problem is simple, but I'm having trouble figuring out the work-around. Essentially, I have a form with a submit button. In the code-behind, I add some javascript to the submit button, and I want that javascript to fire when they click the button, but NOT fire if form validation failed. i.e. btnSubmit.Attributes.Add("onclick", "DoSomething()"); So the problem with the code above is that it will still call DoSomething() even if the page doesn't validate. *** For purposes
    Posted to Web Forms (Forum) by toddhd on 3/7/2008
  • Re: Error validating Masked Edit Control

    No, I was unable to resolve it, and just dropped the validator in favor of the standard ASP.NET validator. I downloaded the latest version of the library. And I'm using VS 2008 targeting ASP.NET 3.5, so I made sure to download that version, etc. I think the mask's and validators are really so miopically targeted at money and date values that things like SSN and Zip Code are not considered. For example, when using a mask of 99999-9999 for a zip code, and entering a 5 digit number, I was left
    Posted to ASP.NET AJAX Control Toolkit (Forum) by toddhd on 2/11/2008
  • Error validating Masked Edit Control

    I am trying to validate a masked textbox that holds an SSN, but when I enter a valid SNN, it fails. What am I doing wrong? < asp : TextBox ID ="txtSSN" runat ="server" Text =' <%#Eval("Insured.SSN") %> ' /> < cc1 : MaskedEditExtender TargetControlID ="txtSSN" Mask ="999-99-9999" MessageValidatorTip ="true" ID ="meeSSN" runat ="server" OnFocusCssClass ="MaskedEditFocus" OnInvalidCssClass
    Posted to ASP.NET AJAX Control Toolkit (Forum) by toddhd on 2/6/2008
  • Need advice - Gridview and putting controls in the footer

    I have a GridView control that is inside of a an Ajax ModalPopupExtender control. This is for an Insurance application. The main page shows a list of Producers and the popup allows you to add/edit/delete the Agencies that Producer is associated with. It's pretty basic. The popup used to consist of a the GridView, and the controls to add a new Agency to the Gridview, as well as the OK and Close buttons for the popup, were also there. This was fine, but sometimes the layout didn't look so great
    Posted to Data Presentation Controls (Forum) by toddhd on 12/18/2007
  • Re: ModalPopup not updating - can I force it?

    I can certainly give it a try. However I want the Popup to be "globally accessible" (so to speak) across the website, so the master page makes the most sense. Is there anything about a master page that lies outside the normal bounds of ASP.NET?
    Posted to ASP.NET AJAX Control Toolkit (Forum) by toddhd on 10/26/2007
  • ModalPopup not updating - can I force it?

    Here is the situation as best as I can explain it. We wanted a way to popup error messages, and decided to use the ModalPopupExtender (MPE) to do that. So I put an MPE and associated Panel on the MasterPage. In our business utility library, we have a function called Message(string). Message() saves the message to Session["message"] , then it creates a reference to the MPE on the Masterpage and calls the Show() function. So far, so good. The screen goes modal and the Panel shows up. The
    Posted to ASP.NET AJAX Control Toolkit (Forum) by toddhd on 10/26/2007
Page 1 of 53 (527 items) 1 2 3 4 5 Next > ... Last »