Click here to Skip to main content
16,004,924 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhierarichal datagrid Pin
Sankar Komma 16-Jun-06 20:00
Sankar Komma 16-Jun-06 20:00 
AnswerRe: hierarichal datagrid Pin
kirthikirthi17-Jun-06 7:57
kirthikirthi17-Jun-06 7:57 
QuestionQuery about SQLDatasource in ASP.Net 2.0 Pin
ChennaiBabu16-Jun-06 19:32
ChennaiBabu16-Jun-06 19:32 
AnswerRe: Query about SQLDatasource in ASP.Net 2.0 Pin
minhpc_bk17-Jun-06 20:56
minhpc_bk17-Jun-06 20:56 
Questiontreevie in asp.net 1.1 Pin
constantinejones16-Jun-06 19:19
constantinejones16-Jun-06 19:19 
AnswerRe: treevie in asp.net 1.1 Pin
minhpc_bk17-Jun-06 20:55
minhpc_bk17-Jun-06 20:55 
QuestionDataGrid onclick-javascript problem [modified] Pin
Dhruvil16-Jun-06 9:31
Dhruvil16-Jun-06 9:31 
AnswerRe: DataGrid onclick-javascript problem Pin
Mircea Grelus16-Jun-06 15:35
Mircea Grelus16-Jun-06 15:35 
First you should display all the six columns in the datagrid and hide the columns that you don't want to be visible using e.Item.Attributes.Add("display", "none") in datagrid_ItemCreated event. This will ensure that the specific columns will be present in the aspx page, but not visible to the user. You need them to be present in order to be able to show them without a postback.

Then, add a control to the webpage where you will display the hidden columns when the user clicks on an item.
When the user clicks on an item call a javascript function that will read the values from the specific hidden columns and display them in the control.

Your code above for clicking on an item in the datagrid is not correct. Adding an attribute to the datagrid will result in calling the javascript function when the user clicks on the datagrid, and not an specific item in it. You need to add an attribute to each item in the datagrid. See this article[^] as an example on how to create javascript events for items in a datagrid.


regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
QuestionSave File on desktop Pin
kirthikirthi16-Jun-06 6:55
kirthikirthi16-Jun-06 6:55 
AnswerRe: Save File on desktop Pin
Mircea Grelus16-Jun-06 15:39
Mircea Grelus16-Jun-06 15:39 
GeneralRe: Save File on desktop Pin
kirthikirthi17-Jun-06 5:21
kirthikirthi17-Jun-06 5:21 
Questionhow to show the dialogbox with the ASP.NET Pin
KSCsoft16-Jun-06 6:09
KSCsoft16-Jun-06 6:09 
AnswerRe: how to show the dialogbox with the ASP.NET Pin
Sebastien Lachance16-Jun-06 8:03
Sebastien Lachance16-Jun-06 8:03 
QuestionImage Size Problem after Watermarking Pin
wEb GuRu...16-Jun-06 6:08
wEb GuRu...16-Jun-06 6:08 
QuestionRequesting from Server IP???? Pin
wEb GuRu...16-Jun-06 5:47
wEb GuRu...16-Jun-06 5:47 
AnswerRe: Requesting from Server IP???? Pin
Guffa16-Jun-06 10:48
Guffa16-Jun-06 10:48 
GeneralRe: Requesting from Server IP???? Pin
wEb GuRu...19-Jun-06 0:49
wEb GuRu...19-Jun-06 0:49 
QuestionIndexing question Pin
leckey16-Jun-06 5:24
leckey16-Jun-06 5:24 
AnswerRe: Indexing question Pin
minhpc_bk17-Jun-06 20:53
minhpc_bk17-Jun-06 20:53 
QuestionHow to calculate lastvisit time? Pin
pitturamakrishna16-Jun-06 5:05
pitturamakrishna16-Jun-06 5:05 
AnswerRe: How to calculate lastvisit time? Pin
wEb GuRu...16-Jun-06 5:51
wEb GuRu...16-Jun-06 5:51 
AnswerRe: How to calculate lastvisit time? Pin
Mircea Grelus16-Jun-06 15:52
Mircea Grelus16-Jun-06 15:52 
AnswerRe: How to calculate lastvisit time? Pin
minhpc_bk17-Jun-06 20:52
minhpc_bk17-Jun-06 20:52 
QuestionObjectDataSource in a label Pin
xps.tsunami16-Jun-06 5:04
xps.tsunami16-Jun-06 5:04 
AnswerRe: ObjectDataSource in a label Pin
Mircea Grelus16-Jun-06 15:56
Mircea Grelus16-Jun-06 15:56 

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.