Hi All,
I'm new to Blog concepts.Is it possible to post the comments to website using the webservice instead of directly post the comments in website. Any help can welcome.
Hi All,
I'm new to Blog concepts.Is it possible to post the comments to website using the webservice instead of directly post the comments in website. Any help can welcome.
Short answer: yes — comments can be posted to an ASP.NET blog through a web service. As hinted, use the blog engine's API if it already exposes one; otherwise create a small REST endpoint that validates, sanitizes, and persists incoming comment DTOs (postId, author, email, content, parentId, etc.).
When building the endpoint, keep these practical points in mind:
A minimal controller flow looks like:
[HttpPost("api/comments")]
public async Task<IActionResult> PostComment([FromBody] CommentDto dto)
{
if (!ModelState.IsValid) return BadRequest(ModelState);
// sanitize, spam-check, persist, set moderation flag as needed
return CreatedAtAction(nameof(GetComment), new { id = saved.Id }, saved);
} Troubleshooting tips: check model-state and server logs if comments vanish; confirm CORS and authentication tokens; and test with a small client that posts JSON to the endpoint before wiring up UI. Ignore unrelated/spam replies such as .
Jump to Post— kvprajapati 1,826Hi All,
I'm new to Blog concepts.Is it possible to post the comments to website using the webservice instead of directly post the comments in website. Any help can welcome.
You have to use concern Blog API.
Hi All,
I'm new to Blog concepts.Is it possible to post the comments to website using the webservice instead of directly post the comments in website. Any help can welcome.
You have to use concern Blog API.
Read this article feel good, I learned a lot, <ahref="">louisvuitton</a>I feel good this site, I will come back later.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.