Grapes-R-Fun wrote:
why don't you put your pic up?
Are you flirting with me?
Grapes-R-Fun wrote:
why don't you put your pic up?
Are you flirting with me?
Your profile!
Grapes-R-Fun wrote:
are u flirting with me?
I wasnt until i saw your pic on your profile!:->
Grapes-R-Fun wrote:
Now, what does Mate I Loves Ya! mean??
Ive no idea. Its a work around i use on my Girlfriend for most situations Babe, i love you!
Likewise i dont understand women or what they want. lol!! :confused::laugh:
Mate I Loves Ya! That works perfectly!!! Thanks a lot. But perhaps you can tell me 1 thing? Why does it only work when passing the Controls Data to a variable and then onto the static label control, yet it doesnt work when i miss out the middle man and try getting the data from the dynamic label and adding it straight to the static label? Thanks again. I appreciate your time!
Thanks Nila, Ill give it a try today, and ill let you know how it goes! ;-)
Grapes-R-Fun wrote:
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?
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 Label lbl = GridView1.FindControl(Label1); _yourVariable = lbl.text;
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 :zzz::->:omg: Thanks!!!!!!!
Hi SHOWMESSAGEBOX is a method for displaying a pop-up. I use it just to confirm the action of the button click has occurred. This has nothing to do with the error / problem im getting.
How did you solve this, as i also need to work this way. Thanks
Maybe im wrong but i really dont see how this is possible. Converting an image to a thumb is a whole different process to converting a dynamic webpage into an image.
Hi, that kind of question is not likely to be answered by any one im afraid. Asking someone how to create a whole website is a little foolish to say the least. It would suggest you are either a little lazy / impatient or do not know enough about .Net to be tackling the project in the first place. However, as i dont want to sound too patronising i will say the following: A forum is simply a series of pages which allow you to add data to a database, and then retrieve it and display it in a given format.
Hi, Im having problems getting the value from a column in my GridView. I Have tried all of the following methods and a few others but none return the value and most just give Object not found errors. protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) {//test message ShowMessageBox("CHANGING"); //Label temp=null; //temp.Text = (GridView1.FindControl(Label1.Text)).ToString(); //Label11.Text = GridView1.FindControl(Label1.Text).ToString(); //Label11.Text = GridView1.SelectedDataKey.Value.ToString(); //Label11.Text = GridView1.UniqueID.ToString(); //Label11.Text = GridView1.SelectedDataKey.Values.ToString(); //Label11.Text=GridView1.DataKeys.ToString(); //Label11.Text=GridView1.SelectedRow.Cells[0].Text; }
Any help would be great. Im wondering if the problem is anything to do with the fact im using a masterpage for the template of the actual page im working on???? Or is it coz im not doing it the corect way for ASP.Net 2.0 ???? Thank
I am using a GridView to display info from a DB as is normal. But i am wanting to edit data in seperate form on same page. So i need to capture the value of the DataKeyNames field for later use. How is possible to collect DataKeyNames value so can use elsewhere to populate this other form? Help Please. Thank yous!
Thanks you, I am greatful for your answer. Your idea to remove is very good. I will do this. Is simple but overlooked way! ;-)) But also was trying to learn proper way not just a workaround. I have one question finally. If use wizards to create DataView how do access / call columns of dataview to make invisible / hidden?
Ok, maybe you not understand problem i try to describe. I display the data / informations in GridView via SqlDataSource. But one column must be hidden so not show this data. But if column is hidden then cannot update database because the hidden field column is not added to update statement, and my database say this field must not be empty, so DB wont accept update. Problem is not because of DataKey but because data is missing when try to add to database. So how to make data collected from hidden column to SqlDataSource Update statement? Thank, helps is appreciated much.
This problem is with GRIDVIEW not DataView sorry!
Hello, I am using the wizard to make the SqlDataSource and Gridview. When i make update all is working fine when all columns are visible. But when i hide 1 or more of the column, i get error because it not find the data in this column. So cannot add this data to database. Any help how to do? -- modified at 10:52 Wednesday 22nd November, 2006
Is posssible to set ValidationControl disabled. So make condition statement like if(some condition) { Control.Enabled=false; } else { control.Enabled=true; }
Please your help, I using Vs.Net 2005 and the ASP.Net 2.0. My problem be with the GRIDview and the SQLDataSource. My Dataview work as planned and can update / delete perfect when all columns are visible in the GRIDView. However big problem is made when i make one of columns to Invisible. This column data is not found and so database update not work and cause error. Anyone can help me please. Most greatfull marconi! -- modified at 10:51 Wednesday 22nd November, 2006
Yes, I do like this SqlConnection6.ConnectionString = "connstring goes here"; string sql = "update string goes here"; SqlCommand cmd = new SqlCommand(sql, SqlConnection6); SqlConnection6.Open(); cmd.ExecuteNonQuery(); SqlConnection6.Close();
So how from this must i get number of rows please?