Duvida formulario extensão aspx
Preciso criar os codigos para executar o botaõ Enviar de um formulario Contato ja criado na pagina Default.aspx do meu trabalho. Tenho so campos nome, email, assunto e conteudo. O formulario já esta criado conforme os codigos abaixo. Qaul codigo devo usar para que o botão enviar funcione. Meu servidor de email fica em outra unidade portanto vou ter que fazer um insert na tabela deles para gerar o email. Já pesquisei de todas as formas mas não consigo. Tentei usar o requestquery mas não deu certo.
<!-- section -->
<section class="my-page" id="contact">
<div class="container">
<div class="row">
<div class="col-md-12 hidding animated" data-animated="bounceInUp">
<div class="title-page text-center">
<h2 style="font-size: 28px">Contato</h2>
<div>
<p style="width: 60px; height: 4px; text-align: center; margin-top: 25px; margin-left: auto; margin-right: auto; border-bottom: 4px solid #fa694e; border-radius: 10px">
</p>
</div>
</div>
<!-- end build -->
</div>
<!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
<div class="container">
<div class="row">
<div class="col-sm-8 col-md-8 hidding animated delay1" data-animated="bounceInUp">
<div class="my-form">
<div id="form-messages"></div>
<form class="form-horizontal" role="form" id="ajax-contact" method="post" action="mailer.php">
<div class="row">
<div class="col-sm-6 field">
<div class="form-group">
<div class="control">
<input type = "text" class="form-control" id="nome" name="nome" placeholder="Nome" minlength="2" required>
<div class="help-block"></div>
</div>
</div>
</div>
<div class="col-sm-6 field">
<div class="form-group">
<div class="control">
<input type="email" class="form-control" id="email" name="email" placeholder="E-mail" required>
<div class="help-block"></div>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12 field">
<div class="control">
<input type="text" class="form-control" id="assunto" name="assunto" placeholder="Assunto" required>
<div class="help-block"></div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12 field">
<div class="control">
<textarea class="form-control" rows="7" id="conteudo" name="conteudo" placeholder="Conteúdo" required></textarea>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<!-- <a href="/Views/Default" class="btn btn-primary btn-block">ENVIAR</a> -->
<button type="submit" class="btn btn-primary btn-block">ENVIAR</button>
<!-- section -->
<section class="my-page" id="contact">
<div class="container">
<div class="row">
<div class="col-md-12 hidding animated" data-animated="bounceInUp">
<div class="title-page text-center">
<h2 style="font-size: 28px">Contato</h2>
<div>
<p style="width: 60px; height: 4px; text-align: center; margin-top: 25px; margin-left: auto; margin-right: auto; border-bottom: 4px solid #fa694e; border-radius: 10px">
</p>
</div>
</div>
<!-- end build -->
</div>
<!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
<div class="container">
<div class="row">
<div class="col-sm-8 col-md-8 hidding animated delay1" data-animated="bounceInUp">
<div class="my-form">
<div id="form-messages"></div>
<form class="form-horizontal" role="form" id="ajax-contact" method="post" action="mailer.php">
<div class="row">
<div class="col-sm-6 field">
<div class="form-group">
<div class="control">
<input type = "text" class="form-control" id="nome" name="nome" placeholder="Nome" minlength="2" required>
<div class="help-block"></div>
</div>
</div>
</div>
<div class="col-sm-6 field">
<div class="form-group">
<div class="control">
<input type="email" class="form-control" id="email" name="email" placeholder="E-mail" required>
<div class="help-block"></div>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12 field">
<div class="control">
<input type="text" class="form-control" id="assunto" name="assunto" placeholder="Assunto" required>
<div class="help-block"></div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12 field">
<div class="control">
<textarea class="form-control" rows="7" id="conteudo" name="conteudo" placeholder="Conteúdo" required></textarea>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<!-- <a href="/Views/Default" class="btn btn-primary btn-block">ENVIAR</a> -->
<button type="submit" class="btn btn-primary btn-block">ENVIAR</button>
Adriane Lacerda
Curtidas 0