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...
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.
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?
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...
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...
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.
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...
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
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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.