Hi, Thank you so much for your reply. I tried your coding but it can't work. "Label is a type and cannot be used as an expression" I have converted the button into a template field. I have placed the codings in the button click event: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Best Regards, Aaron
AaronNeo
Posts
-
Getting value of a label after clicking on delete button in Gridvew -
Getting value of a label after clicking on delete button in GridvewHi all, I would like to get the value of a label from the same row after clicking the delete button. I converted the delete button into a template field and tried the following code Dim a As String = "" a = CType(GridView1.FindControl("label1"), Label).Text It gives me an error saying that object reference not found, and use the NEW keyword to declare a new object instance. I tried declaring NEW on string but gives me an error. What should I do? Best Regards, Aaron Neo
-
Accessing my ASP pages from other PCHi, I have copied my files into inetpub/wwwroot and enable websharing. I then entered the address http://localhost/bh/index.aspx but the page still cannot be displayed out. Do I need to specify any port such as locahost:8080 ?? I can't seemed to get it working... *headache.
-
Accessing my ASP pages from other PCHI, Thank you for your reply but I have tried that...It can't work..And how do I open a port on other pc? I installed Visual Studio on my pc and thats why a port is opened for me. If I do not install Visual Studio, what am I suppose to do?
-
Accessing my ASP pages from other PCHi Guys, I had finished developing my asp pages and I would like to put it on a common pc so that the rest of the users can access these pages. I am using ASP.net 2005 with dotnet framwork 2. May I know what configuration do I need to do on the pc that my asp pages resides? Thank you so much in advance for the help :) Regards, Aaron Neo
-
how to make invisible comboBox visible in GridViewThanks alot...i misses out the column name thats why i encounter the error..You are of a wonderful help, Sherin. May I ask you, how do i resize the textbox column in editing mode? I heard from my friends that it was fixed? How do I make it shorter in width? I got alot to learn from you...wonder if u have any email address or msn if you dun mind? :P anyway, Thank you so much for your help. I really appreciate it.. Regards, Aaron Neo
-
how to make invisible comboBox visible in GridViewHI, Thank you so much for your wonderful reply. I still can't get it to work..The user changes the category from the category Combobox and I need it to update the selected category to the database. The rest of the fields in the editing mode are textboxes, so there are no problem with updating them. The bind command doesn't work as it says categoryName can't be found? Without the bind and inputing @categoryname doesn't reflect the selected comboxItem...I tried controlParameter under the updateParameter but it doesn't work as well...I am so lost....
-
How to update value of combobox in editItem modeHi guys, Thanks for the help previously for helping me to display combobox in editItem mode. I have a followup question, which is how do i update my database if the user had changed the value there? And how do i set the combobox to show the retreive value from the database ? Thank you everyone....;) AaronNeo
-
how to make invisible comboBox visible in GridViewThank you so much for your help. I am quite new to asp.net so i may be asking some silly questions. Can I ask you another question? When I enter editing mode, how do i set the value of the combobox to the record in my database. If the user changes it, how do get the value of the combobox and update it back to the database ?
-
how to make invisible comboBox visible in GridViewHi Everyone, I would like to know how am I able to access the templateField I created in my GridView, which I set it to invisible initially, to make it visible when user click on the EDIT button and subsequently update into the database for the selected value.