I Have two Buttons in my ASP.NET page.
<asp:Button ID="UpLoadFile" runat="server" Text="File Selection" CssClass="FileSelection" OnClientClick="fireFileClick()"/>
<asp:FileUpload ID="UpLoadButton" runat="server" cssclass="FakeButton" OnChange="UpLoadBtn"/>
One is a regular Button and the other is a `FileUpload` Button. That is used in order to gain the ability to change the name of the Button I use.
Of course I have and a `script` in order to fire the `click` event in `FileUpload` Button:
function fireFileClick() {
var objfile = Object;
objfile = document.getElementById("");
objfile.click();
} }
That script works just fine, triggers the `FileUpload` Button and gives the ability to select my willing file to upLoad.
Now here comes the time in order to act the `FileUpload` Button and that is made by caching the `OnChange` event. And this action is made it perfect.
As you can see in my previous refer I send this event action to a
Public Shared procedure:
Public Shared Sub UpLoadBtn(sender As Object, e As EventArgs)
Here an Error is thrown:
Unhandled exception at line 115, column 119 in http:
0x800a1391 - JavaScript runtime error: 'UpLoadBtn' is undefined
In this error I've seeing that
/Pages/Production.aspx
some times is
/Account/UsersHandler.aspx
Which is the last page from where I come to the `Production` page.
But that doesn't matter so much, because even if it is the right one the error throws it.
What I have tried:
I search allot around this issue but I haven't found anything related to this.
May be Unlucky OK.
Is there some one to assist me on this?