473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

how to check columnspan in aspx page (not code behind)

I want to make a linkbutton column if the column span for that row is
4, if it isn't, make a boundcolumn. These columns are part of a
datagrid. I want to use these code below. In the If statement I want to
check to see if the ColumnSpan = 4, how can I do that? I need the check
the ColumnSpan of the current row, because sometime there is a header
row (spanned over 4 columns) that doen'st need a buttoncolumn

<asp:datagrid id="dgCustomers" runat="server"
AutoGenerateColumns="False" HeaderStyle-CssClass="header4">

<Columns>

<%if not ColumnSpan = 4 then%>
<asp:ButtonColumn DataTextField="Klant" HeaderText="Name"
ItemStyle-CssClass="normal"
ButtonType=LinkButton CommandName="PassSelectedClient"
</asp:ButtonColumn>

<%else%>
<asp:BoundColumn DataField="Klant" HeaderText="Name"
ItemStyle-CssClass="normal"
ItemStyle-Width="250px"></asp:BoundColumn>
<%end if%>
<asp:BoundColumn DataField="Klant" HeaderText="Name"
ItemStyle-CssClass="normal"
ItemStyle-Width="250px"></asp:BoundColumn>
<asp:BoundColumn DataField="Address"
HeaderText="Address" ItemStyle-CssClass="normal"
ItemStyle-Width="300px"></asp:BoundColumn>
</Columns>
</asp:datagrid>

Jan 2 '06 #1
0 1192

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: SStory | last post by:
Doing pages for contract..... If I make an ASPX file that does certain things, how simple would it be for a person who know nothing about it to modify the user interface without bothering the...
9
by: Ryan Ternier | last post by:
I just got moved to a project that has an inheritance structure sort of like this: MyWebPage.aspx inherits ---> MyWebPage.ASPX.VB inherits ----> Utility.VB inherits -----> DHTMLMenu.vb...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
4
by: GMartin | last post by:
Are there any significant stopping blocks from taking an ASPX Page someone designs in VB.NET, and redoing the Code behind page to use C#? Is the Code behind the only thing one would need to...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
3
by: Pierre | last post by:
Hello, In an aspx page (mypage.aspx) from a web projet, I would like to get the value of a variable of the projet that is declared as public in a module. The variable can be called from...
5
by: slowmotiongenius | last post by:
All- I have established an adodb recordset in my code-behind, and I need to pass it to the aspx file. I can't seem to figure out if there is a way to do this. I see you can pass a string over...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.