By clicking the IMAGE Button Textbox should displayDeepak Ratan11yAsked May 3, 2015, 10:10 PM EDT5 answersShareLinkedInXCopy linkSaveHi, Using ASP.Net i had created a ImageButton inside the GridView by clicking the Imagebutton the textbox should display under the ImageButton
By clicking the IMAGE Button Textbox should displayDeepak Ratan11yAsked May 3, 2015, 10:10 PM EDT5 answersShareLinkedInXCopy linkSaveHi, Using ASP.Net i had created a ImageButton inside the GridView by clicking the Imagebutton the textbox should display under the ImageButton
Joginder BangerRank #360 · 7K reputation11y agoPosted May 3, 2015, 11:19 PM EDT0why are you not use jquery, you can do it with the help of jquery. It is best for performance based.0
Vincent Maverick DuranoRank #238 · 10.3K reputation11y agoPosted May 4, 2015, 1:01 AM EDT0Add a TextBox within ItemTemplate along with your ImageButton like: ImageUrl="~/Image/edit.png" OnClick="ImageButton1_Click" /> Then you can do like this to show the TextBox:protected void ImageButton1_Click(object sender, EventArgs e){ ImageButton b = (ImageButton)sender; GridViewRow row = (GridViewRow)b.NamingContainer; if (row != null){ TextBox tb = (TextBox)row.FindControl("TextBox1"); tb.Visible = true; }}0Deepak Ratan175 reputation11y agoPosted May 4, 2015, 3:13 AM EDT0Hi Vincent Maverick Durano, Its not working0Vincent Maverick DuranoRank #238 · 10.3K reputation11y agoPosted May 4, 2015, 5:49 AM EDT0What's not working? Are you getting error? What have you tried? Please be more specific so we can help you easily. Posting the relevant code here would be helpful.0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Deepak Ratan175 reputation11y agoPosted May 4, 2015, 3:13 AM EDT0Hi Vincent Maverick Durano, Its not working0
Vincent Maverick DuranoRank #238 · 10.3K reputation11y agoPosted May 4, 2015, 5:49 AM EDT0What's not working? Are you getting error? What have you tried? Please be more specific so we can help you easily. Posting the relevant code here would be helpful.0
Joginder BangerRank #360 · 7K reputationPosted May 3, 2015, 11:19 PM EDT
Deepak Ratan175 reputationPosted May 3, 2015, 11:40 PM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 4, 2015, 1:01 AM EDT
Then you can do like this to show the TextBox:
Deepak Ratan175 reputationPosted May 4, 2015, 3:13 AM EDT
Its not working
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 4, 2015, 5:49 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts