Ir para conteúdo
Fórum Script Brasil
  • 0

ASP.NET no Dreamweaver!


Vagner Nunes

Pergunta

2 respostass a esta questão

Posts Recomendados

  • 0

Sim, ASP.NET é uma das linguagens que o DW trabalha.

Insert, delete e update são padrões:

Insert - Insert>>>Data Objects>>>Insert Record>>>Form wizard

Update - Update>>>Data Objects>>>Update Record>>>Form wizard

Delete - Insert>>>Data Objects>>>Delete Record

Upload basta você procurar no google uma função em ASP.NET que faça upload

Link para o comentário
Compartilhar em outros sites

  • 0

Prezado,

Estou tentando trabalhor com o Dreamweaver e ASP.NET, mas não consigo.

Crio a página até aí beleza, roda direitinho, mas quando vou fazer uma conexão e utilizo as funções INSERT a página apresenta erro.

Todas as páginas aparece com o erro abaixo:

Server Error in '/' Application.

--------------------------------------------------------------------------------

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: File or assembly name DreamweaverCtrls, or one of its dependencies, was not found.

Source Error:

Line 1: <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>

Line 2:

Line 3: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %><MM:Insert

Line 4: runat="server"

Line 5: CommandText='<%# "INSERT INTO cadastros (bairro, email, endereco, estado, nome, telefone) VALUES (?, ?, ?, ?, ?, ?)" %>'

Source File: c:\inetpub\wwwroot\aspx\administracao\incluir.aspx Line: 3

Assembly Load Trace: The following information can be helpful to determine why the assembly 'DreamweaverCtrls' could not be loaded.

=== Pre-bind state information ===

LOG: DisplayName = DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a

(Fully-specified)

LOG: Appbase = file:///c:/inetpub/wwwroot

LOG: Initial PrivatePath = bin

Calling assembly : (Unknown).

===

LOG: Publisher policy file is not found.

LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.

LOG: Post-policy reference: DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls.DLL.

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls/DreamweaverCtrls.DLL.

LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls.DLL.

LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls/DreamweaverCtrls.DLL.

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls.EXE.

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls/DreamweaverCtrls.EXE.

LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls.EXE.

LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls/DreamweaverCtrls.EXE.

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Segue codigo da página:

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>

<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %><MM:Insert
runat="server"
CommandText='<%# "INSERT INTO cadastros (bairro, email, endereco, estado, nome, telefone) VALUES (?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_Conexao") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_Conexao") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
SuccessURL='<%# "sucesso.aspx" %>'
Debug="true"
><Parameters>
  <Parameter Name="@bairro" Value='<%# IIf((Request.Form("bairro") <> Nothing), Request.Form("bairro"), "") %>' Type="WChar" />  
  <Parameter Name="@email" Value='<%# IIf((Request.Form("email") <> Nothing), Request.Form("email"), "") %>' Type="WChar" />  
  <Parameter Name="@endereco" Value='<%# IIf((Request.Form("endereco") <> Nothing), Request.Form("endereco"), "") %>' Type="WChar" />  
  <Parameter Name="@estado" Value='<%# IIf((Request.Form("estado") <> Nothing), Request.Form("estado"), "") %>' Type="WChar" />  
  <Parameter Name="@nome" Value='<%# IIf((Request.Form("nome") <> Nothing), Request.Form("nome"), "") %>' Type="WChar" />  
  <Parameter Name="@telefone" Value='<%# IIf((Request.Form("telefone") <> Nothing), Request.Form("telefone"), "") %>' Type="WChar" />  
</Parameters>
</MM:Insert>
<MM:PageBind runat="server" PostBackBind="true" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table width="800" border="0" align="center">
  <tr>
    <td><form runat='server' id="form1" name='form1' enctype="multipart/form-data" method='POST' action="">
        <label></label>
        <p>&nbsp;</p>
        <table width="776" border="0">
          <tr>
            <td width="141">Nome:
              <label></label></td>
            <td width="625"><input name="nome" type="text" id="nome" size="60" /></td>
          </tr>
          <tr>
            <td>E-mail: </td>
            <td><input name="email" type="text" id="email" size="50" /></td>
          </tr>
          <tr>
            <td>Telefone:</td>
            <td><input name="telefone" type="text" id="telefone" /></td>
          </tr>
          <tr>
            <td>Endere&ccedil;o:</td>
            <td><textarea name="endereco" cols="40" rows="5" id="endereco"></textarea></td>
          </tr>
          <tr>
            <td>Bairro:</td>
            <td><input name="bairro" type="text" id="bairro" /></td>
          </tr>
          <tr>
            <td>Estado: </td>
            <td><select name="estado" id="estado">
              <option value="" selected="selected">Estado</option>
              <option value="AC">AC</option>
              <option value="AL">AL</option>
              <option value="AM">AM</option>
              <option value="BA">BA</option>
              <option value="CE">CE</option>
              <option value="DF">DF</option>
              <option value="ES">ES</option>
              <option value="GO">GO</option>
              <option value="MA">MA</option>
              <option value="MG">MG</option>
              <option value="MS">MS</option>
              <option value="MT">MT</option>
              <option value="PA">PA</option>
              <option value="PB">PB</option>
              <option value="PE">PE</option>
              <option value="PI">PI</option>
              <option value="PR">PR</option>
              <option value="RJ">RJ</option>
              <option value="RN">RN</option>
              <option value="RO">RO</option>
              <option value="RR">RR</option>
              <option value="RS">RS</option>
              <option value="SC">SC</option>
              <option value="SP">SP</option>
              <option value="TO">TO</option>
            </select></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" name="Submit" value="Incluir" /></td>
          </tr>
        </table>
        <p><br />
        <br />
        <label></label>
        </p>
        <input type="hidden" name="MM_insert" value="form1">
    </form></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,5k
×
×
  • Criar Novo...