<asp:FileUpload ID="f_file" runat="server" /> <asp:TextBox ID="f_text" runat="server"></asp:TextBox>
onclientclick
function setPath() { var objReg = new RegExp(/([^\/\\]+)$/); var strName = objReg.exec(document.getelementById("f_file").value); document.getelementById("f_text").value = strName[0]; }
$(function() { $("#button1").click(function() { $("#tb1").val($("#fs1").val()); return false; }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)