If you are interested in remote working opportunities try following websites.
Regards,
Samitha
If you are interested in remote working opportunities try following websites.
Regards,
Samitha
There was a table storing employee pay details as varchar. There was a requirement to sort the data ascending/descending on the UI. But it would not sort as data type is varchar.
To resolve the issue I have implemented a workaround as follows and it worked well.
1. Clone the data table
2. change the desired column's data type
3. change the desired column's data type
4. Bind datatable to the data sourceSample code is as followsPublic Function GetDataTable(ByVal sortByExprerssion As String) As DataTable Dim dtBulkSalary As DataTable dtBulkSalary = bulkSalary.SelectByFilter() 'workaround to sort varchar If (Not IsNothing(dtBulkSalary)) Then Dim dtBulkSalaryCloned As DataTable = dtBulkSalary.Clone() dtBulkSalaryCloned.Columns("Yearly_Salary").DataType = Type.[GetType]("System.Decimal") dtBulkSalaryCloned.Columns("Normal_Rate").DataType = Type.[GetType]("System.Decimal") For Each bulkSalaryRow As DataRow In dtBulkSalary.Rows Dim drBulkSalaryCloned As DataRow = dtBulkSalaryCloned.NewRow drBulkSalaryCloned("BulkSalaryChange_ID") = bulkSalaryRow("BulkSalaryChange_ID") drBulkSalaryCloned("Yearly_Salary") = If(IsDBNull(bulkSalaryRow("Yearly_Salary")), 0.0D, CDec(DecryptValue(bulkSalaryRow("Yearly_Salary")))) drBulkSalaryCloned("Normal_Rate") = If(IsDBNull(bulkSalaryRow("Normal_Rate")), 0.00, CDec(DecryptValue(bulkSalaryRow("Normal_Rate")))) dtBulkSalaryCloned.AcceptChanges() Dim dvBulkSalary As DataView = dtBulkSalaryCloned.DefaultView dvBulkSalary.Sort = sortByExprerssion dtBulkSalary = dvBulkSalary.ToTable() End If Return dtBulkSalary End FunctionPlease note that data decrypted function is not listed here.Cheers,Samitha
When you are building entity classes with Scaffold-DbContext sometimes you might encounter the Build failed error.
We can avoid this error by making sure your project does not have compile time errors. That mean the project should build successfully.
Cheers
Samitha
When debugging the website in VS 2022 I got this strange issue, Following steps sorted the issue for me.
Cheers,
Samitha
We cab change our location in Chrome or Firefox using a VPN or manually, found following article usesful for that,
https://www.comparitech.com/blog/vpn-privacy/change-location-chrome-firefox-spoof/
Cheers
Samitha
"The type 'ASP.global_asax' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\timesheet\15a75c54\898b48b9\assembly\dl3\58b062b2\00ceda54_c98cc801\App_global.asax.DLL' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\timesheet\15a75c54\898b48b9\App_global.asax.q_h6dbfx.dll' c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\timesheet\15a75c54\898b48b9\App_Web_admin.master.fdf7a39c.zecazgwd.0.cs "
When further troubleshooting in found that problem occurred in a virtual application's bin folder. Inside bin-folder there were two files.
App_global.asax.dll
App_global.asax.compiled
Removing these resolves the error for me.
Cheers
Samitha