As part of the initial workup on converting (or, for that matter, whether to convert) an existing ASP Classic application over to .NET, we are divining several questions that perhaps someone can offer some direction.
In our existing app, we have all of our data access and business logic code in a separate VB component that we can call from the page whenever needed. Just to ensure that it worked, I converted that component over to VB.NET and then compiled it to use within our testing environment and all works ok. Each page will call the component to return a dataset and then we use the dataset to populate the variables we need on the screen. Because of formatting issues, we did not originally think that a datagrid would be sufficient for our purposes. However, there have been some second thoughts on this issue and I am now looking for additional feedback.
Is there a significant difference between returning a dataset from the component and then manually setting the variable values on the page and just using a datagrid that will bind to the returned dataset? Corollary issues will include going back and updating values when the user needs to do so. Currently, we manually code the SQL string to run the update command independently in the component (values are passed back to the component via an array from the page); again, as opposed to using the binding functionality to perhaps make this somewhat easier. Additionally, the datasets being returned and edited are derived from complex SQL strings that impact several tables within a highly constrained database. This may or may not pose issues, but whereas I have grown more comfortable with the manual procedures previously developed, if there is another (simpler/better) method, I am not opposed to working with it.
Any feedback is greatly appreciated. If this needs further clarification, I can provide that as well. Thanks!
------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
In our existing app, we have all of our data access and business logic code in a separate VB component that we can call from the page whenever needed. Just to ensure that it worked, I converted that component over to VB.NET and then compiled it to use within our testing environment and all works ok. Each page will call the component to return a dataset and then we use the dataset to populate the variables we need on the screen. Because of formatting issues, we did not originally think that a datagrid would be sufficient for our purposes. However, there have been some second thoughts on this issue and I am now looking for additional feedback.
Is there a significant difference between returning a dataset from the component and then manually setting the variable values on the page and just using a datagrid that will bind to the returned dataset? Corollary issues will include going back and updating values when the user needs to do so. Currently, we manually code the SQL string to run the update command independently in the component (values are passed back to the component via an array from the page); again, as opposed to using the binding functionality to perhaps make this somewhat easier. Additionally, the datasets being returned and edited are derived from complex SQL strings that impact several tables within a highly constrained database. This may or may not pose issues, but whereas I have grown more comfortable with the manual procedures previously developed, if there is another (simpler/better) method, I am not opposed to working with it.
Any feedback is greatly appreciated. If this needs further clarification, I can provide that as well. Thanks!
------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous