---
title: "ImageButton CommandName"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/119752-imagebutton-commandname"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Arne"
published: "2005-01-10T14:46:06.000Z"
updated: "2005-01-10T14:46:06.000Z"
replies: 0
views: 262
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/119752-imagebutton-commandname"
---

# ImageButton CommandName

## #1 — Arne, 2005-01-10T14:46Z

Varför får jag inget värde från min asp:ImageButton om CommandName ser ut så här?

asp:ImageButton id="pelle" CommandName='\<%=minsträng%\>'
(minsträng har ett id)

Gör jag så här får jag värdet 22
asp:ImageButton id="pelle" CommandName="22"

anledningen är att jag vill skicka olika värden från min button....

Permalänk: https://www.webforum.nu/p/119752

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/119752-imagebutton-commandname
