carry value through navigateurl
-
Well, I have a table with many rows and the records in each row is depending on the data in the Database. Each data is represented as hyperlink. Therefore, i create each hyperlink programmatically: Dim lbltime As New HyperLink lbltime.NavigateUrl = "MyBookingViewAll.aspx" When click on the link, instead of transfering to another page, I need to know the value of the row of information clicked. eg hyperlink text--> 09:00-10:00 when i click on this link, i should see the details of this record on another web form. Is this posible?
-
Well, I have a table with many rows and the records in each row is depending on the data in the Database. Each data is represented as hyperlink. Therefore, i create each hyperlink programmatically: Dim lbltime As New HyperLink lbltime.NavigateUrl = "MyBookingViewAll.aspx" When click on the link, instead of transfering to another page, I need to know the value of the row of information clicked. eg hyperlink text--> 09:00-10:00 when i click on this link, i should see the details of this record on another web form. Is this posible?
You should use LinkButton instead of HyperLink and use its Click event to handle you jobs. You can store them in a database or in a file in your server and view them from another page. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein
-
You should use LinkButton instead of HyperLink and use its Click event to handle you jobs. You can store them in a database or in a file in your server and view them from another page. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein
-
You should use LinkButton instead of HyperLink and use its Click event to handle you jobs. You can store them in a database or in a file in your server and view them from another page. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein
-
terjk wrote: But I'm expected to use hyperlink. What to do? Why you have to use that? It doesn't have the required events. And
LinkButton
has it. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein -
terjk wrote: But I'm expected to use hyperlink. What to do? Why you have to use that? It doesn't have the required events. And
LinkButton
has it. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein -
That means i got to add handler to each link button when i create them, right?Since i'm not using the controls but programmtically create them. dim lbtn as new linkbutton addhandler...
-
Yes. You have add each handler programmically. C# syntax:
myLinkbtn.Click += new EventHandler(Button_Click);
Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein
-
terjk wrote: .net syntax? I think I've told you before, .net syntax is meaningless. Look into MSDN to find out equivalent syntax for VB.NET or other CPains maybe tell you. In MSDN you can look for different events for controls and see how it add it with VB.NET syntax. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein