Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAsp.net Screen Resolution and Flash Query String Pin
oskardiazdeleon26-Jun-06 15:15
oskardiazdeleon26-Jun-06 15:15 
QuestionHow to highlight today's date row in datagrid when page loaded? Pin
Dhruvil26-Jun-06 10:55
Dhruvil26-Jun-06 10:55 
AnswerRe: How to highlight today's date row in datagrid when page loaded? Pin
Sushant Duggal27-Jun-06 0:00
Sushant Duggal27-Jun-06 0:00 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Dhruvil27-Jun-06 5:35
Dhruvil27-Jun-06 5:35 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Sushant Duggal27-Jun-06 7:01
Sushant Duggal27-Jun-06 7:01 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Dhruvil27-Jun-06 9:51
Dhruvil27-Jun-06 9:51 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Sushant Duggal27-Jun-06 10:54
Sushant Duggal27-Jun-06 10:54 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Dhruvil28-Jun-06 7:03
Dhruvil28-Jun-06 7:03 
Hi Sushant,
Thank you very much for help.
along with your code, i am adding this two lines. if i dont have today's date or future dates in my datagrid it will highlight the latest past date in datagrid.
else if(DateTime.Compare(DateTime.Today, dt) == +1)
e.Item.BackColor = Color.red;

But, this makes backcolor red for all past dates rows instead of just a single latest past date.(I have at present, no future dates or today's date)

I want to highlight only latest past date in datagrid.
Any help??? that's really urgent.

and, adition to that, it should pass the value for that row as default to the client side javascript function when page load (this should be same for future date, today's date or latest past date).i am trying with 'onload' function, but it's not working.

Presently i m passing values on 'onclick' event, as below:

e.Item.Attributes.Add("onclick","ShowDetail('"+
DataBinder.Eval(e.Item.DataItem,"TOPIC_DATE")+"');");

any thing you can suggest, it will be very much helpful for me.

Thanks you very much again.

NIKI



GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Sushant Duggal28-Jun-06 7:41
Sushant Duggal28-Jun-06 7:41 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Dhruvil28-Jun-06 8:36
Dhruvil28-Jun-06 8:36 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Sushant Duggal28-Jun-06 8:43
Sushant Duggal28-Jun-06 8:43 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Dhruvil28-Jun-06 9:27
Dhruvil28-Jun-06 9:27 
GeneralRe: How to highlight today's date row in datagrid when page loaded? Pin
Sushant Duggal28-Jun-06 18:02
Sushant Duggal28-Jun-06 18:02 
AnswerRe: How to highlight today's date row in datagrid when page loaded? Pin
Guffa28-Jun-06 10:05
Guffa28-Jun-06 10:05 
Question"No row at position 0" error while adding new line to datagrid Pin
leckey26-Jun-06 10:54
leckey26-Jun-06 10:54 
AnswerRe: "No row at position 0" error while adding new line to datagrid Pin
Edbert P26-Jun-06 15:57
Edbert P26-Jun-06 15:57 
QuestionText Box values modified with Javascript in ASP.NET Page Pin
tsramkumar26-Jun-06 10:39
tsramkumar26-Jun-06 10:39 
AnswerRe: Text Box values modified with Javascript in ASP.NET Page Pin
Tirthadip26-Jun-06 19:31
Tirthadip26-Jun-06 19:31 
QuestionSiteMap and breadcrumb problem Pin
eggsovereasy26-Jun-06 10:28
eggsovereasy26-Jun-06 10:28 
AnswerRe: SiteMap and breadcrumb problem Pin
minhpc_bk26-Jun-06 16:50
minhpc_bk26-Jun-06 16:50 
GeneralRe: SiteMap and breadcrumb problem [modified] Pin
eggsovereasy27-Jun-06 5:59
eggsovereasy27-Jun-06 5:59 
GeneralRe: SiteMap and breadcrumb problem Pin
minhpc_bk27-Jun-06 18:07
minhpc_bk27-Jun-06 18:07 
QuestionDataGrid - Custom query? Pin
ActOfJon26-Jun-06 10:27
ActOfJon26-Jun-06 10:27 
Questionpurpose <input type="hidden" part in asp_guest Pin
khasiguy26-Jun-06 10:01
khasiguy26-Jun-06 10:01 
AnswerRe: purpose <input type="hidden" part in asp_guest Pin
Tirthadip26-Jun-06 19:38
Tirthadip26-Jun-06 19:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.