Click here to Skip to main content
15,917,862 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
<asp:ImageButton ID="btnSplit" runat="server" ImageUrl="~/App_Themes/EmployeeLayout1/Images/document_splitter.gif"
                                                                                    OnClick="btnSplit_Click" OnClientClick="javascript:SetActiveTab('" + TabContainer1.ClientID + "',0)"/>


when running the application following Error occures

The server tag is not well formed.

Correct the code if any one known abt this
Posted

Try something like-
XML
<asp:imagebutton id="btnSplit" runat="server" imageurl="~/App_Themes/EmployeeLayout1/Images/document_splitter.gif" OnClick="btnSplit_Click" OnClientClick="javascript:SetActiveTab('<%# TabContainer1.ClientID %>
',0)"/>
 
Share this answer
 
v3
Comments
Toniyo Jackson 19-Jul-11 6:43am    
This will not work. See my answer :)
rajjosh 19-Jul-11 6:47am    
i trying this code it working but when running application this(',0)"/> ) part will remain on my Screen .
Ankur\m/ 19-Jul-11 6:57am    
I edited the formatting issues with the code.
Prerak Patel 19-Jul-11 7:05am    
Thanks Ankur
rajjosh 19-Jul-11 7:01am    
thanks it's working now.
Try this.
<asp:ImageButton ID="btnSplit" runat="server" ImageUrl="~/App_Themes/EmployeeLayout1/Images/document_splitter.gif" OnClick="btnSplit_Click" OnClientClick="javascript:SetActiveTab(TabContainer1.id,0)"/>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900