vb.net - Clickable Link Not appearing on page from generated anchor tag -
i have .js code generates following anchor tag:
<a name="link_274_4" id="link_274" onserverclick="downloadinspection_click" runat="server">2017-09-10</a>
i cut , paste out of dom explorer of ie.
that link not clickable on page displaying.
here vb.net want run:
sub downloadinspection_click(byval sender object, byval e eventargs) dim button button = directcast(sender, button) dim pk integer = cint(button.id.replace("link_", "")) dim filenameprefix string = cstr(pk) dim preapprovaldir = "c:\\data" dim di new directoryinfo(preapprovaldir) dim fiarr fileinfo() = di.getfiles() dim fri fileinfo each fri in fiarr if fri.name.startswith(filenameprefix) exit end if next fri response.clear() response.addheader("content-disposition", "attachment; filename=" + fri.name) response.contenttype = "application/octet-stream" response.addheader("content-length", fri.length) response.writefile(fri.fullname) response.end() end sub
i have expected vb need handles
clause, post not have it: running code behind routine <a href
the anchor tags generated in table not know code handles clause.
Comments
Post a Comment