15,902,938 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mandip Grewal (Top 7 by date)
Mandip Grewal
27-May-14 7:51am
View
Please share the whole code of your repeater to let us understand the concept and suggest you appropriate way to get value of textbox..
Mandip Grewal
27-May-14 5:18am
View
Please check solution number 8 to retrieve second highest salary with one SELECT statement
Mandip Grewal
27-May-14 4:44am
View
If there are two employees who have highest salary then this query will fetch the highest salary of second employee... You have to use DENSE_RANK() function instead of ROW_NUMBER()..
Mandip Grewal
18-May-14 11:29am
View
As per this code, you wouldn't be able to get the value of HiddenField in page if it is freshly loaded (property of page Page.IsPostBack returns false). You can get the client date only when same page got postback either by button or any other event.
Mandip Grewal
17-May-14 6:20am
View
Please briefly explain your requirement.
Mandip Grewal
16-May-14 12:18pm
View
I'm not able to understand that what problem you are facing in this.. You can achieve what you want by add another controls with different ids. Please share more detail about your requirement.
Mandip Grewal
15-May-14 5:31am
View
For this, you have to write all three divs in "<itemtemplate>" only and make visible any one out of three div depending upon the row number. You can get the row number in <itemtemplate> with "<%# Container.ItemIndex + 1 %>". Please refer the demo provided below:
<asp:Repeater ID="repDemo" runat="server">
<itemtemplate>
<div style='background-color:green;display:<%#(Container.ItemIndex+1)%3==1?";":"none;"%>'><%#Eval("DisplayName") %></div>
<div style='background-color:orange;display:<%#(Container.ItemIndex+1)%3==2?";":"none;"%>'><%#Eval("DisplayName") %></div>
<div style='background-color:yellow;display:<%#(Container.ItemIndex+1)%3==0?";":"none;"%>'><%#Eval("DisplayName") %></div>
</itemtemplate>
</asp:Repeater>
Show More