Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. arog123

    GridView - Editting divides numbers by 100

    Hi, In a grid view I have a bunch of numbers such as 0.5, 7, 10, 15, etc. etc. Problem is when I try to edit the row, the numbers get divided by 100. 7 = 0.07 10 = 0.1 15 = 0.15 and so on. Anyone know what's wrong? I am using masked edit validation in edit mode and the number formats there...
  2. arog123

    GridView.RowCommand not firing on first run of UserControl

    A webusercontrol has a slightly different cycle then a page. Maybe you can add the LoadData() to the prerender. Try adding it to Page_PreRenderComplete(object sender, EventArgs e). I cannot think of anything else that is preventing the event from firing unfortunately.
  3. arog123

    GridView.RowCommand not firing on first run of UserControl

    Looks like the webuser control doesn't have a LoadComplete EventHandler. Did you try the first solution with the boolean that you set to true in the event handler. Then check the bool in LoadComplete?
  4. arog123

    GridView.RowCommand not firing on first run of UserControl

    Does the RowCommand ever get fired when you click the button for the first time?
  5. arog123

    GridView.RowCommand not firing on first run of UserControl

    Or another solution would be in WebUserControl Page_LoadComplete do if (this.Visible) { LoadData(); }
  6. arog123

    GridView.RowCommand not firing on first run of UserControl

    No problem. Events are handled after PageLoad before PageLoadComplete. So, the WebUserControl's Event is handled before the gridview performs the RowCommand event. So it gets delayed. My solution isn't very clean and probably isn't the best one but try something like this. Wherever you do the...
  7. arog123

    GridView.RowCommand not firing on first run of UserControl

    WebUserControl wc = (WebUserControl)panel1.FindControl("WebUserControl" + (i + 1).ToString()); wc.Visible = true; wc.LoadData(); Where do you do that? is that in Page_Load or Page_LoadComplete? What is happening is that when the user clicks a button that does a postback. Causing...
  8. arog123

    GridView.RowCommand not firing on first run of UserControl

    Can you show the full code in GridView1_RowCommand. Also what are you trying to do exactly?
  9. arog123

    GridView.RowCommand not firing on first run of UserControl

    In the WebUserControl go to the gridview and check the rowcommand event. In there do gridview1.databind();
  10. arog123

    GridView.RowCommand not firing on first run of UserControl

    You have to bind the datasource to the gridview in the event handler again. Also, make sure you load the datasource in the page_loadcomplete method instead of page_load, or you will lose any edits as well.
  11. arog123

    AJAX - Multiple Statuses

    Hi, I have a web app that does some object generation in the backend and then saves the results to the DB. However, is it possible to enhance the updateprogress control so that it will show the different statuses. For example, if I click the Go button I want the following to happen: First...
  12. arog123

    Display image from input type=file

    So can I use AJAX and submit the file then on return display the image? Or is this not possible either?
  13. arog123

    Display image from input type=file

    Is it possible to do something like: 1) User selects a file in input type=file 2) I display the image All this happens before the image is sent to the server. Thanks
  14. arog123

    Upload file using Javascript

    I did some redesigning and figured I don't need to do it anymore. Thanks :) I have another question with input type=file, but I will ask in another thread.
  15. arog123

    Upload file using Javascript

    Is it possible (with javascript) to create an <input type=file> using an image? I essentially want to create an image that users can click, which will bring up a browse window and they can choose a file to upload. Thanks

Part and Inventory Search

Back
Top