Text Box Value is null

I used javascript to put the external API to get the address into Textbox.value, and you can see the text in the design, but if you take the textbox.value, you can see the null in it. What did I miss?

-- javascript 
document.getElementById('str_PostCode').value = data.zonecode;
document.getElementById("str_Address").value = addr;

--blazor
<RadzenTextBox Style="width:100%;" id="str_PostCode" @ref="PostCode" Placeholder="우편번호" @bind-Value="str_PostCode"></RadzenTextBox>
<RadzenTextBox Style="width:100%;" id="str_Address" @ref="Address" Placeholder="도로명주소" @bind-Value="str_Address"></RadzenTextBox>

--c#
customerModel.PostCode = PostCode.Value;


image

This is not how you should use Blazor components. Use data-binding instead.

<RadzenTextBox @bind-Value="textBoxValue" />

How can i reuse that value after binding, I'm calling that binded Value but still getting null in it....

I don't understand much from this.

Have you checked the demo examples at Blazor TextBox Component | Free UI Components by Radzen
You can simply check the bound field value after the textbox is updated and tab focus moves onto the next field.

1 Like

I Got it, Thanks for the Reply,

issue Resolved...