Associate
- Joined
- 27 Jan 2005
- Posts
- 1,397
- Location
- S. Yorks
First of all I am a newb with C# and if its even possible I am an even more newb with web programming.
Anyway I have written a c# app that connects to a backend SQL database, the app has three combo boxes, first one influences the second, first and second influence the third.
The user then enters a quantity and weight for a given type and then when the weight text box is left the system does a series of calcultaions before populating a datagrid with the results.
I now need to convert this to a web app, so using c# have created a new project, created the main form and all was going well until I went to try to add an onleave event to the textboxes. After much searching have found the onblur command but when I use this I get the following error message:
Microsoft JScript runtime error: 'calcPallets' is undefined
Now I presume I need to include some javascript to call the calPallets function which is in the wepage? How do I do this?
Other question is there a slicker way to populate the combo boxes / dropdown list boxes as I hate the flickering of the screen, presumably as it is waiting for the server to send the data back to the form?
One final question I am bemused by all of this, is there a better way of building a data driven website, or at least one that looks slicker?
Matt
Anyway I have written a c# app that connects to a backend SQL database, the app has three combo boxes, first one influences the second, first and second influence the third.
The user then enters a quantity and weight for a given type and then when the weight text box is left the system does a series of calcultaions before populating a datagrid with the results.
I now need to convert this to a web app, so using c# have created a new project, created the main form and all was going well until I went to try to add an onleave event to the textboxes. After much searching have found the onblur command but when I use this I get the following error message:
Microsoft JScript runtime error: 'calcPallets' is undefined
Now I presume I need to include some javascript to call the calPallets function which is in the wepage? How do I do this?
Other question is there a slicker way to populate the combo boxes / dropdown list boxes as I hate the flickering of the screen, presumably as it is waiting for the server to send the data back to the form?
One final question I am bemused by all of this, is there a better way of building a data driven website, or at least one that looks slicker?
Matt