2016-06-29 11 views
0

ASP.NET検証がサーバー上で動作しないのはなぜですか?asp検証がサーバー上で動作していない

これは、aspxページで私の検証..です

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
    class="form-control" ControlToValidate="txttitle" ErrorMessage="*" 
    ForeColor="Red" ValidationGroup="lmn"></asp:RequiredFieldValidator>` 

<div class="form-group"> 
    <label for="fileupldimg">Image</label> 
    <asp:FileUpload ID="fileupldimg" runat="server" /> 
</div> 

ボタン:

<asp:Button ID="bannerbtn" runat="server" Text="Submit" 
    OnClick="bannerbtn_Click" ValidationGroup="lmn"/> 

この検証は、ローカルホストに取り組んでいるが、サーバーを使用するときに我々は、エラーを取得:

Server Error in '/' Application.

Could not find a part of the path'G:*********\IMG'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'G:*********\IMG\'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

+0

を「提出」です** ASP.NET ** - ないVBAドリブン「ASP古典的」 - まだサーバーで動作していないタグ –

+0

を変更しました...任意の提案をお願いします –

+0

あなたのアプリケーションでg:\ ..... \ imgへの参照はどこですか?あなたのコード例でそれを見ないでください。 – Esko

答えて

0

はHTMLの検証を変更します(HTMLの検証):必須= "必須" <asp:TextBox ID="txttitle" runat="server" required="required" class="form-control"></asp:TextBox> ボタンで:

タイプ=

関連する問題