# Generating strange code

**URL:** <https://forum.radzen.com/t/generating-strange-code/5588>\
**Category:** Blazor Server\
**Created:** [November 11, 2020, 4:40pm UTC](https://forum.radzen.com/t/generating-strange-code/5588 "2020-11-11T16:40:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rija](https://forum.radzen.com/letter_avatar_proxy/v4/letter/r/7bcc69/32.png) [@Rija](https://forum.radzen.com/u/Rija)\
**Post date:** [November 11, 2020, 4:40pm UTC](https://forum.radzen.com/t/generating-strange-code/5588/1 "2020-11-11T16:40:47Z")

</div>

Generating a page made something like this inserted everywhere : int.Parse($"{}"), int.Parse($"{}")

---

<div class="post-metadata">

**Author:** ![svrebelo001](https://forum.radzen.com/user_avatar/forum.radzen.com/svrebelo001/32/4796_2.png) [@svrebelo001](https://forum.radzen.com/u/svrebelo001)\
**Post date:** [November 11, 2020, 4:48pm UTC](https://forum.radzen.com/t/generating-strange-code/5588/2 "2020-11-11T16:48:30Z")

</div>

Hey @Rija, I've also experienced it. There's many workarounds to fix the generation.

You can simply go to the designer, select the Radzen DataGrid and make a small change and you'll see that the parameters will be removed. Will be without any params -\> ()

You can also simply remove directly using a IDE (VS Code, VS, Notepad ++, etc...)

Cheers

---

<div class="post-metadata">

**Author:** ![Rija](https://forum.radzen.com/letter_avatar_proxy/v4/letter/r/7bcc69/32.png) [@Rija](https://forum.radzen.com/u/Rija)\
**Post date:** [November 11, 2020, 5:16pm UTC](https://forum.radzen.com/t/generating-strange-code/5588/3 "2020-11-11T17:16:19Z")

</div>

Thank you !  
Seems edit and add page are not also generated but exist in designer. I made them to appear in navigation andthey were magically generated.

---

<div class="post-metadata">

**Author:** ![svrebelo001](https://forum.radzen.com/user_avatar/forum.radzen.com/svrebelo001/32/4796_2.png) [@svrebelo001](https://forum.radzen.com/u/svrebelo001)\
**Post date:** [November 11, 2020, 5:27pm UTC](https://forum.radzen.com/t/generating-strange-code/5588/4 "2020-11-11T17:27:43Z")

</div>

You're welcome.

Always make sure when you generate Pages from your datasource, your db tables have a primary key defined
