Click here to Skip to main content
15,911,030 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to use asp.net page on web Pin
ednrgc28-Nov-06 8:50
ednrgc28-Nov-06 8:50 
GeneralRe: how to use asp.net page on web Pin
trannguyen8628-Nov-06 14:29
trannguyen8628-Nov-06 14:29 
GeneralRe: how to use asp.net page on web Pin
ednrgc28-Nov-06 8:51
ednrgc28-Nov-06 8:51 
QuestionGetting column data from GridView on page using MasterPage Pin
marconi Flangepants28-Nov-06 4:03
marconi Flangepants28-Nov-06 4:03 
AnswerRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun28-Nov-06 9:47
Grapes-R-Fun28-Nov-06 9:47 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants28-Nov-06 10:44
marconi Flangepants28-Nov-06 10:44 
AnswerRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun28-Nov-06 15:14
Grapes-R-Fun28-Nov-06 15:14 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants29-Nov-06 9:24
marconi Flangepants29-Nov-06 9:24 
<blockquote class="FQ"><div class="FQA">Grapes-R-Fun wrote:</div>Do this: create a control at runtime to match your Gridview's templated control

Label lbl = GridView1.FindControl(Label1);
_yourVariable = lbl.text;

Also I would imagine you gotta do this for the Label1 control appearing on EACH row... do you know how to do that?</blockquote>

Nila, dont worry i didnt take the comment as bad.

Let me re-iterate what im trying to do, just to clarify we are thinking along the same lines.

Ok, i have a gridview displaying data, when i click the select button on a given row i need to get the value of the data (unique_id) displayed in the first column. This column is also the DataKey for the gridview.

So how can i get this info? Ive tried all sorts but to no avail. What would you suggest and how would you implement it? Sorry if this seems like im asking you to tell me how to do it all, but ive tried that many ways that should work and dont, that i really would appreciate it if you could explain in as much detail as possible.

I dont know if this makes any difference but i am using MasterPage for the template of the page. I read somewhere that you have to drill right down to the control if using MasterPages. Is this true, and does it apply in this instance?

If what you said above is still true <code>Label lbl = GridView1.FindControl(Label1);
_yourVariable = lbl.text;</code>

Then how would you implement this? At present ive tried both SelectedIndexChanged / SelectedIndexChanging, but without success. I get the error that the Object Referenced does not exist. This happenes no matter if i try indexing the column or the Label1 control used to display the info in the required column.

So again, id be really greatful if you could tell me how you would approach it, in all its horrible detail Sleepy | :zzz: :->OMG | :OMG:

Thanks!!!!!!!
GeneralRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun29-Nov-06 10:24
Grapes-R-Fun29-Nov-06 10:24 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants30-Nov-06 2:42
marconi Flangepants30-Nov-06 2:42 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants1-Dec-06 0:49
marconi Flangepants1-Dec-06 0:49 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun1-Dec-06 7:22
Grapes-R-Fun1-Dec-06 7:22 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants1-Dec-06 7:27
marconi Flangepants1-Dec-06 7:27 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun1-Dec-06 7:51
Grapes-R-Fun1-Dec-06 7:51 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants1-Dec-06 9:14
marconi Flangepants1-Dec-06 9:14 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun1-Dec-06 9:18
Grapes-R-Fun1-Dec-06 9:18 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants1-Dec-06 9:26
marconi Flangepants1-Dec-06 9:26 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun1-Dec-06 9:31
Grapes-R-Fun1-Dec-06 9:31 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
marconi Flangepants1-Dec-06 10:07
marconi Flangepants1-Dec-06 10:07 
GeneralRe: Getting column data from GridView on page using MasterPage Pin
Grapes-R-Fun1-Dec-06 10:13
Grapes-R-Fun1-Dec-06 10:13 
QuestionLarge aspnet_wp.exe process Pin
tadhg8828-Nov-06 4:01
tadhg8828-Nov-06 4:01 
AnswerRe: Large aspnet_wp.exe process Pin
seee sharp28-Nov-06 7:33
seee sharp28-Nov-06 7:33 
GeneralRe: Large aspnet_wp.exe process Pin
tadhg8829-Nov-06 3:37
tadhg8829-Nov-06 3:37 
AnswerRe: Large aspnet_wp.exe process Pin
GaryWoodfine 28-Nov-06 9:14
professionalGaryWoodfine 28-Nov-06 9:14 
GeneralRe: Large aspnet_wp.exe process Pin
tadhg8829-Nov-06 3:35
tadhg8829-Nov-06 3:35 

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.