1

I have mvc actionLink like this

@Html.ActionLink("Delete", "Delete", 
   new { id = item.Id }, 
   new { onclick = "return confirm('Are you sure you wish to delete this article?');" })

Now, I want to put @Localized.AreYouSure string inside return confirm section. How can I do this.

1 Answer 1

3

I guess this is what you want/mean:

@Html.ActionLink("Delete", "Delete",
   new { id = item.Id },
   new { onclick = "return confirm('" + Localized.AreYouSure + "');" })
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.