Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@birojnayak
Copy link
Collaborator

Port the ObjectDataSource control.

  1. Kept ObjectDataSource control with WebForm.SQLClient due to dependency on SQLCache.
  2. ObjectDataSource needs type to be figured out during runtime only, so got the BuildManager.GetType API and using the ITypeResolution interface from DI to re-use. To achieve this, had to define the GetType method inside DynamicControl class.

@birojnayak birojnayak force-pushed the ObjectDataSource branch 3 times, most recently from 604a034 to a172439 Compare April 6, 2025 22:30
}
}

if(type == null)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taylor, this would be expensive (while in old System.Web also it would take same time or less). But if there is a better way, do let me know.. we can take a follow-up task or incorporate in this one. Probably this is the most imp piece in this PR (where I am looking some guidance)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine for now. If we need to, we can cache it somehow so it's not necessary if we're doing the same lookup a lot

@birojnayak birojnayak requested a review from twsouthwick April 6, 2025 23:35
Copy link
Collaborator

@twsouthwick twsouthwick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove ajax.aspx? Other than that, LGTM

<PackageReference Include="System.CodeDom" Version="9.0.3" />
<PackageReference Include="Microsoft.AspNetCore.SystemWebAdapters" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.SystemWebAdapters.CoreServices" Version="2.0.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.3" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had removed this before - what's requiring it? I'm fine adding it back but it would be nice to decouple it if possible

@birojnayak
Copy link
Collaborator Author

Why did you remove ajax.aspx? Other than that, LGTM

put it back.. got confused why it was there ...

@birojnayak birojnayak merged commit 4966f86 into CoreWebForms:main Apr 30, 2025
8 checks passed
@birojnayak birojnayak deleted the ObjectDataSource branch May 8, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants