Search

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

Matching Posts

  • Re: Passing query string and forcing button click c#

    In the Page_Load event of the redirected page: if (!Page.IsPostBack()) { txtData.Text = Resquest.QueryString["id"].ToString(); LoadData(); }
    Posted to Web Forms (Forum) by gknierim on 11/12/2009
  • Re: How to fire validators ONLY on Submit?

    It does not work by setting CausesValidation to false on the textbox. You should change the validator to validate on server-side by setting the EnableClientScript to false on the validator. You do not need to set CausesValidation to false on the control itself either. See if that works.
    Posted to Web Forms (Forum) by gknierim on 10/21/2009
  • Re: Linking from web form to windows form

    You will need to install your windows program whereever you like - either on the client machine or on a network drive where your users can access it. Then, in your web page just do like you posted above specifying the full path: Process.Start("C:\MyProgramLocation\MyProgram.exe") If you use C:, it will be the users C: drive. OR...if the windows application is stored on a shared network drive letter, then you just use that path. HTH, Greg
    Posted to Web Forms (Forum) by gknierim on 10/21/2009
  • Re: C# Modulus Operator with Single data type

    That was the explanation I was looking for. So my solution is this: Convert.ToDecimal(txtNumHrs.Text) % .05m Thanks, Greg
    Posted to Getting Started (Forum) by gknierim on 2/9/2009
  • Re: C# Modulus Operator with Single data type

    Single, double...doesn't matter. Have you actually tried the code? It does not = 0. It returns the fractional portion (how I don't know). with txtNumHrs.text = 1.2 you get the following: ?(Convert.ToDouble(txtNumHrs.Text) % .05) 0.049999999999999892 ?(Convert.ToSingle(txtNumHrs.Text) % .05) 0.000000047683715753699119 Can anyone explain that?
    Posted to Getting Started (Forum) by gknierim on 2/9/2009
  • Re: How to ensure only one radiobutton is checked at a time?

    This is a known issue if you are using individual radiobuttons and not the radiobuttonlist. http://forums.asp.net/t/1128750.aspx
    Posted to Getting Started (Forum) by gknierim on 2/9/2009
  • Re: Button Click Event Capture Grdiview Value

    If your gridview will only have one row at any one time, why are you using a gridview? Why not just not use some labels and access the values that way. Alot of overhead for just one row IMO.
    Posted to Getting Started (Forum) by gknierim on 2/9/2009
  • C# Modulus Operator with Single data type

    I was wondering if there was a way to solve this issue. When I try to use the modulus operator with Single data types, the result should be 0 and I end up getting a result like 0.0000000425898. So, my question is how to do this and get the right answer? 1.2 % .05 = should equal 0 but doesn't. Thoughts or am I missing something simple? Thanks, Greg
    Posted to Getting Started (Forum) by gknierim on 2/9/2009
  • Re: Gridview Backcolor lost when inside UpdatePanel

    I was hoping not having to do that since the gridview maintains the data, just not the colors. I feel that this is a bug since the data is maintained in viewstate, why aren't the backcolors for each row maintained (and other attributes)? I know also that if you dynamically hide images for certain rows, the same thing happens and the images appear on postback - unless you rebind the grid. I guess my feeling is that the gridview should maintain everything about it on postback and not have to do
    Posted to ASP.NET AJAX UI (Forum) by gknierim on 10/20/2008
  • Gridview Backcolor lost when inside UpdatePanel

    I have a gridview inside an updatepanel that displays several entries for a time entry application. In the gridview, there are usually multiple entries for a single day and therefore I set the backcolor the same for all entries on a single day. (i.e. Mon has 3 entries that have a backcolor of white, Tues has 4 entries with a backcolor of gold). I am setting the backcolor for the row in the RowDataBound event. All of this works fine for the most part. The problem I am having is that the backcolor
    Posted to ASP.NET AJAX UI (Forum) by gknierim on 10/20/2008
Page 1 of 32 (316 items) 1 2 3 4 5 Next > ... Last »