locked
"Insert" does not work RRS feed

  • Question

  • User-838393793 posted

    OS = Windows Server 2003 SP2;  VS 2008 V. 9.0.30729.1 ST; .NET Framework 3.5 SP1

    Browsers IE8 beta and Firefox 3 on Vista x64

    The website contains a number of ListView controls.  All of them have the following problem: when one clicks on Insert the Status Bar shows a Javascript text, then nothing happens.

    Similarly  with Delete and Edit.

    Thank you very much for your help,

    Dinu

     

     

    Tuesday, October 7, 2008 4:01 PM

Answers

  • User-330204900 posted

    Is this DD? If so the you need to set EnablePartialRendering  to false: 

    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false"/>

    This will now let you see the main error: 

    Hope this helps [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 7, 2008 5:03 PM
  • User-330204900 posted

    You just edit the Site.master page and change the line mentioned above to false.

    [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 7, 2008 5:34 PM
  • User-330204900 posted

    I get now another message, due to the fact that I am not asked to enter my credentials:

    Hi Dinu,  Think you will need to either enter your credentials in the connection string or implement impersonation in the web.config.

    Hope this helps [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 8, 2008 10:00 AM

All replies

  • User-330204900 posted

    Is this DD? If so the you need to set EnablePartialRendering  to false: 

    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false"/>

    This will now let you see the main error: 

    Hope this helps [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 7, 2008 5:03 PM
  • User-838393793 posted

     Thank you very much.

    Yes it is DD.  Where should I insert the tag?

    Tuesday, October 7, 2008 5:14 PM
  • User-330204900 posted

    You just edit the Site.master page and change the line mentioned above to false.

    [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 7, 2008 5:34 PM
  • User-838393793 posted

    Thank you very much Steve, it worked.

    I get now another message, due to the fact that I am not asked to enter my credentials:

     The UPDATE permission was denied on the object 'MyTable', database 'MyDB', schema 'dbo'.

    What is missing this time?

    Thanks again,

    Dinu

     

    Wednesday, October 8, 2008 3:16 AM
  • User-1005219520 posted

    Hi Dinu,

    That sounds like a DB (back end) error and nothing to do directly with Dynamic Data. Does the connection string you used give you permission to update the table?

    Wednesday, October 8, 2008 9:50 AM
  • User-330204900 posted

    I get now another message, due to the fact that I am not asked to enter my credentials:

    Hi Dinu,  Think you will need to either enter your credentials in the connection string or implement impersonation in the web.config.

    Hope this helps [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 8, 2008 10:00 AM
  • User-838393793 posted

     Thanks Steve.

    I entered the credentials in the connection string. 

    Result:

    • It still does not work when accessing over internet
    • It works on LocalHost, which is acceptable with this application

    Thanks again,

    Dinu

    Sunday, October 12, 2008 4:37 AM
  • User-330204900 posted

    Hi Dinu, Are you getting an error via the internet? You may need to change the error reporting in web.config:

     

    <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
       <error statusCode="403" redirect="NoAccess.htm" />
       <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    

     

    Note the Off

    Hope this helps [:D]

    Sunday, October 12, 2008 9:30 AM
  • User-838393793 posted

     Thanks Steve.

    Those lines are already in web.config.

    Sunday, October 12, 2008 11:56 AM
  • User-330204900 posted

    Are you getting an error from the internet then? If so could you post please. [:D]

    Sunday, October 12, 2008 12:24 PM