Dylan
Dylan

Reputation: 1118

Databinder.Eval not showing all data

My markup: <%#DataBinder.Eval(Container.DataItem, "summary")%>

Running that to view the data from summary which was retrieved on a web form. When you get the email with the data, it shows everything, but if you view the submitted form on the webpage it cuts it off.

Any idea how I can get it to show the full information. Thank you.

Ps. Its in a ascx file.

Upvotes: 1

Views: 360

Answers (1)

Shadow Wizard
Shadow Wizard

Reputation: 66388

That's because you are probably missing quotes around the value in your input. You need something like this in the form:

<input type="hidden" name="summary" value="<%#DataBinder.Eval(Container.DataItem, "summary")%>" />

Without quotes, the value will be indeed cut on the first space.

Upvotes: 1

Related Questions