Question: Since migrating to a new Mac a few weeks ago, I have happily set up MAMP and MAMP Pro on my new machine, migrated my local website folders and at some point I must have pointed my databases to the right location to get the majority of my local websites working.

The problem came when I tried to run one of my local web applications and got an internal server error (it couldn't find the database).

I do have a backup of all my database folders from my old Mac (with all the .frm, .myd, .myi) files but I can no longer seem to find the correct location for the new databases.

I am currently using MAMP Pro and in the /appsolute/MAMPPRO folder there are no databases and yet most of my database-dependent sites are running without issue.

I guess my question is, "How can I find where localhost is searching for/ saving databases to so that I can re-add my old database folders?"

If anyone has any clue to this, would be much appreciated.

Answer: 
Try to use + operator inside <%# ...%> like this:

```
onclick='<%# showme(" + Eval("ID") + ")"%>'>

```

There is no need to use javascript.
works super

```
<asp:GridView runat="server" ID="grdAdvTravel">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="javascript:EditAdvanceTravelFee( '<%#Eval("fee_catg_srno")%>','<%#Eval("trvl_amt")%>','<%#Eval("pay_date")%>','<%#Eval("fee_name")%>','<%#Eval("status")%>' )" class="btn btn-primary">EDIT</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

```