Solved

Click event for  <asp:DynamicHyperLink runat="server" Action="Edit" Text="Edit"  />

Posted on 2011-03-16
2
731 Views
Last Modified: 2012-05-11
I need to update a Session variale with the time at the moment of clicking on this  asp:DynamicHyperLink

 <asp:DynamicHyperLink runat="server" Action="Edit" Text="Edit"  />

How do I do that?

newbieweb
0
Comment
Question by:newbieweb
2 Comments
 
LVL 8

Accepted Solution

by:
Anurag Agarwal earned 500 total points
ID: 35150068
newbieweb use link button instead of hyperlink to change session value on the click as link button provides you with onclick event that can be executed on server side which u require to change the session values

in aspx page
<asp:LinkButton id="LinkButton1" Text="Click Me" OnClick="LinkButton_Click" runat="server"/>

in .cs page (for finding this just double click the link button )
 
void LinkButton_Click(Object sender, EventArgs e)
      {
        Session["Login"] = "ADMIN";
// some thing like this ..................
      }

0
 

Author Closing Comment

by:newbieweb
ID: 35152003
Thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question