Skip to main content
deleted 2 characters in body
Source Link

I'm beginner in web development. I'm stuck in passing dynamic value to another page when it was clicked. The only thing I need is to get clicked hyperlink's value in another page. Please help me with this.

First page:

`@for@for (int j = 0; j < listOfUrls.Count; j++)
{
    <a style="background: #fff url(@listOfUrls[j]) no-repeat center;"
       href="nextPage" 
       onclick="@*Pass clicked listOfUrls[j]*@" ></a>
}`

Next page:

<p>@*Here I need to get the clicked value of hyperlink from previous page*@</p>

I'm beginner in web development. I'm stuck in passing dynamic value to another page when it was clicked. The only thing I need is to get clicked hyperlink's value in another page. Please help me with this.

First page:

`@for (int j = 0; j < listOfUrls.Count; j++)
{
    <a style="background: #fff url(@listOfUrls[j]) no-repeat center;"
       href="nextPage" 
       onclick="@*Pass clicked listOfUrls[j]*@" ></a>
}`

Next page:

<p>@*Here I need to get the clicked value of hyperlink from previous page*@</p>

I'm beginner in web development. I'm stuck in passing dynamic value to another page when it was clicked. The only thing I need is to get clicked hyperlink's value in another page. Please help me with this.

First page:

@for (int j = 0; j < listOfUrls.Count; j++)
{
    <a style="background: #fff url(@listOfUrls[j]) no-repeat center;"
       href="nextPage" 
       onclick="@*Pass clicked listOfUrls[j]*@" ></a>
}

Next page:

<p>@*Here I need to get the clicked value of hyperlink from previous page*@</p>

Source Link

How to pass dynamically created hyperlink's css value to another page

I'm beginner in web development. I'm stuck in passing dynamic value to another page when it was clicked. The only thing I need is to get clicked hyperlink's value in another page. Please help me with this.

First page:

`@for (int j = 0; j < listOfUrls.Count; j++)
{
    <a style="background: #fff url(@listOfUrls[j]) no-repeat center;"
       href="nextPage" 
       onclick="@*Pass clicked listOfUrls[j]*@" ></a>
}`

Next page:

<p>@*Here I need to get the clicked value of hyperlink from previous page*@</p>