Peter Chan
asked on
Problem to delete record
Hi,
Further to this
https://www.experts-exchange.com/questions/29042667/Add-button.html?anchor=a42220705¬ificationFollowed=192653361&anchorAnswerId=42220705#a42220705
I adjust the column name in Javascript but the problem persists (I cannot delete the record), after re-deployment.
Further to this
https://www.experts-exchange.com/questions/29042667/Add-button.html?anchor=a42220705¬ificationFollowed=192653361&anchorAnswerId=42220705#a42220705
I adjust the column name in Javascript but the problem persists (I cannot delete the record), after re-deployment.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
above, I put
but you added
you should use
var houseIdToDelete= $(this).data("house-id");
or
var houseIdToDelete= $(this).atrb("data-house-i d");
not
var houseIdToDelete= $(this).attrb("house-id");
var houseIdToDelete= $(this).data("house-id");
but you added
var houseIdToDelete = $(this).attr("house-id");
you should use
var houseIdToDelete= $(this).data("house-id");
or
var houseIdToDelete= $(this).atrb("data-house-i
not
var houseIdToDelete= $(this).attrb("house-id");
i did not get what you are asking for
for reference, site is
http://my-friend.co/Test_rec4/Default.aspx?userid=mc23
for reference, site is
http://my-friend.co/Test_rec4/Default.aspx?userid=mc23
ASKER
Sorry, is it correct to get value of one Label field using this line below?
while lb_site_lang is the Label field name.
var site_lang = document.getElementById("lb_site_lang");
while lb_site_lang is the Label field name.
I dont see such element on the page...
also this is wrong
it is in a js file and I dont think lb_site_lang.ClientId will be available... it will fail this way...
also this is wrong
var site_lang = document.getElementById("<%= lb_site_lang.ClientID %>").innerHTML;
>>> ClientID > ClientIdvar site_lang = document.getElementById("<%= lb_site_lang.ClientId %>").innerHTML;
it is in a js file and I dont think lb_site_lang.ClientId will be available... it will fail this way...
ASKER
I have these
success: function (response) {
//var site_lang = document.getElementById("lb_site_lang");
var site_lang = document.getElementById("<%= lb_site_lang.ClientID %>").innerHTML;
var html = "";
...
<asp:Label ID="lb_site_lang"
Visible="false"
Style="display: none"
Font-Names="Times New Roman"
Font-Size="11pt"
Font-Bold="true"
ForeColor="DarkBlue"
ClientIDMode="Static"
runat="server" />
but there is now a problem on the page to show the list, after this adjustment
1. there is no such element on the page
2. you cannot use <%= ... %> on a js file
2. you cannot use <%= ... %> on a js file
again, original question is resolved...
and you keep adding new things and get new issues...
each time you should open a new question...
and you keep adding new things and get new issues...
each time you should open a new question...
ASKER
Thanks.
I raise this
https://www.experts-exchange.com/questions/29045538/Way-to-get-value-of-Label.html
I raise this
https://www.experts-exchange.com/questions/29045538/Way-to-get-value-of-Label.html
ASKER