Click here to Skip to main content
15,913,112 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Developing on Vista (IIS7) and deploying on Server 2003 (IIS6) Pin
NeverHeardOfMe15-Sep-08 7:44
NeverHeardOfMe15-Sep-08 7:44 
QuestionPrinting in Asp.net 2.0 Pin
IamAmit15-Sep-08 6:01
IamAmit15-Sep-08 6:01 
QuestionGridview / datasource interaction Pin
DanB198315-Sep-08 5:59
DanB198315-Sep-08 5:59 
AnswerRe: Gridview / datasource interaction Pin
N a v a n e e t h15-Sep-08 16:31
N a v a n e e t h15-Sep-08 16:31 
GeneralRe: Gridview / datasource interaction Pin
DanB198315-Sep-08 22:48
DanB198315-Sep-08 22:48 
QuestionPublishing compiled website fails for some folders Pin
Colin Angus Mackay15-Sep-08 5:52
Colin Angus Mackay15-Sep-08 5:52 
QuestionForm Authentication problems Pin
omlac15-Sep-08 4:25
omlac15-Sep-08 4:25 
Questioni have this big bug on asp.net guest book ,pls help me out Pin
busteronline15-Sep-08 4:04
busteronline15-Sep-08 4:04 
hello there, pls am a newbie to asp.net, Sometimes ago i bought a book "The joy of dreamweaver" by paul newmann,a great book that taught me asp and php. he however supplied the asp.net code version of every project,recently i tried using the codes for asp.net guest book and it tthrew the followin errors,pls what can i do,or have i not done,kindly hep me as his bog at www.newmanzone.com/forum is currently under attack,thanks very much
abiola

it gave the following errors



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" %>
Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
Line 3: <mm:dataset id="rsGuestbook" runat="Server" isstoredprocedure="false" connectionstring="<%# System.Configuration.ConfigurationSettings.AppSettings(" mm_connection_string_newmanzone")="" %&gt;"="" databasetype="<%# System.Configuration.ConfigurationSettings.AppSettings(" mm_connection_databasetype_newmanzone")="" xmlns:mm="#unknown">
Line 4: CommandText='<%# "SELECT * FROM Guestbook WHERE Active <>0 ORDER BY PostDate DESC" %>'


Source File: c:\inetpub\wwwroot\guestbook\TMPx9u06nqd0.aspx Line: 2

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.0.3705\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\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.0.3705/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/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.0.3705/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/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.


the codes are as follows
for sign in

]]>
]]>
<mm:dataset id="rsGuestbook" runat="Server" isstoredprocedure="false" connectionstring="<%# System.Configuration.ConfigurationSettings.AppSettings(" mm_connection_string_newmanzone")="" %&gt;"="" databasetype="<%# System.Configuration.ConfigurationSettings.AppSettings(" mm_connection_databasetype_newmanzone")="">
CommandText='<%# "SELECT * FROM Guestbook WHERE Active <>0 ORDER BY PostDate DESC" %>'
Debug="true"
>
<mm:pagebind runat="server" postbackbind="true">



<title>Newman Zone - View Guestbook






























 Sign
Guestbook



ASP:Repeater runat="server" DataSource='<%# rsGuestbook.DefaultView %>'>
<itemtemplate>





<%# DateTime.Parse(rsGuestbook.FieldValue("PostDate", Container)).ToString("D") %> <%# rsGuestbook.FieldValue("City", Container) %>
,
<%# rsGuestbook.FieldValue("State", Container) %>
(
<%# rsGuestbook.FieldValue("Country", Container) %>
)


<%# Replace((rsGuestbook.FieldValue("Comments", Container)),vbNewLine,"
") %>

<%# rsGuestbook.FieldValue("FirstName", Container) %>
<%# rsGuestbook.FieldValue("LastName", Container) %>

<mm:if runat="server" expression="<%# (rsGuestbook.FieldValue(" website",container)="" )="" %&gt;"="">
<contentstemplate>
No URL Given


]]>
 







 












]]>
]]>
]]>
<mm:insert>
runat="server"
CommandText='<%# "INSERT INTO Guestbook (City, Comments, Country, Email, FirstName, LastName, State, Website) VALUES (?, ?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_newmanzone") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_newmanzone") %>'
Expression='<%# Request.Form("MM_insert") = "previewGuestbook" %>'
CreateDataSet="false"
Debug="true"
>
<parameters>
<parameter name="@City" value="<%# IIf((Request.Form(" city")="" &lt;&gt;="" nothing),="" request.form("city"),="" "")="" %&gt;"="" type="WChar">
<parameter name="@Comments" value="<%# IIf((Request.Form(" comments")="" &lt;&gt;="" nothing),="" request.form("comments"),="" "")="" %&gt;"="" type="WChar">
<parameter name="@Country" value="<%# IIf((Request.Form(" country")="" &lt;&gt;="" nothing),="" request.form("country"),="" "")="" %&gt;"="" type="WChar">
<parameter name="@Email" value="<%# IIf((Request.Form(" email")="" &lt;&gt;="" nothing),="" request.form("email"),="" "")="" %&gt;"="" type="WChar">
<parameter name="@FirstName" value="<%# IIf((Request.Form(" firstname")="" &lt;&gt;="" nothing),="" request.form("firstname"),="" "")="" %&gt;"="" type="WChar">
<parameter name="@LastName" value="<%# IIf((Request.Form(" lastname")="" &lt;&gt;="" nothing),="" request.form("lastname"),="" "")="" %&gt;"="" type="WChar">
<parameter name="@State" value="<%# IIf((Request.Form(" state")="" &lt;&gt;="" nothing),="" request.form("state"),="" "")="" %&gt;"="" type="WChar">
<parameter name="@Website" value="<%# IIf((Request.Form(" website")="" &lt;&gt;="" nothing),="" request.form("website"),="" "")="" %&gt;"="" type="WChar">


<mm:pagebind runat="server" postbackbind="true">



<title>Newman Zone - View Guestbook



Sub SendEmail(obj As Object, e As EventArgs)

'**** Send Email to guestbook owner ****
Dim mail As New MailMessage
Dim i As Integer
Dim FieldName As String
Dim FieldValue As String

mail.From = Request.Form("FirstName") & " " & Request.Form("LastName") & " &lt;" & Request.Form("Email") & "&gt;"
mail.To = "paul@bravenewwurld.com"
mail.Subject = "New Guestbook Entry!"
mail.Body = "Your guestbook was signed by " & vbNewLine & _
Request.Form("Email") & " on " & DateTime.Now & ":" & vbNewLine & vbNewLine
For i = 1 To Request.Form.Count - 1
FieldName = Request.Form.GetKey(i)
FieldValue = Request.Form(i)
mail.Body = mail.Body & _
FieldName & ": " & FieldValue & vbNewLine
Next

'mail.BodyFormat = MailFormat.Html
mail.Priority = MailPriority.High

SmtpMail.Send(mail)

'****Send email to guestbook signer****
Dim mail2 As New MailMessage
mail2.From = "Newman Zone &lt;admin@newmanzone.com&gt;"
mail2.To = Request.Form("Email")
mail2.Subject = "Thanks for signing!"
mail2.Body = "Thank you, " & Trim(Request.Form("FirstName")) & ", for signing my guestbook."

SmtpMail.Send(mail2)

End Sub































<% If (Request.Form("Mode") = "") Then %>

















First Name: <asp:textbox id="FirstName" runat="server" xmlns:asp="#unknown">
Last Name: <asp:textbox id="LastName" runat="server" xmlns:asp="#unknown">
City: <asp:textbox id="City" runat="server" xmlns:asp="#unknown">
State: <asp:textbox id="State" runat="server" xmlns:asp="#unknown">
Country: <asp:textbox id="Country" runat="server" xmlns:asp="#unknown">
Email: <asp:textbox id="Email" runat="server" xmlns:asp="#unknown">
Web site: <asp:textbox id="Website" runat="server" xmlns:asp="#unknown">
Comments

<asp:textbox id="Comments" runat="server" textmode="Multiline" columns="35" rows="6" xmlns:asp="#unknown">



<asp:button type="submit" text="Preview" runat="server" class="button" onmouseover="this.className='buttonover'" onmouseout="this.className='button'" xmlns:asp="#unknown">









]]>



Below is a preview of your guestbook entry. Click Sign to submit
it.







]]> ]]>, <%= Trim(Request.Form("State")) %> (<%= Trim(Request.Form("Country")) %>)


") %>]]>
]]> <%= Trim(Request.Form("LastName")) %> ]]>
<asp:button id="Sign" type="submit" runat="server" text="Sign" class="button" onmouseover="this.className='buttonover'" onmouseout="this.className='button'" onclick="SendEmail" xmlns:asp="#unknown">











<% Else %>




Thank you, <%= Trim(Request.Form("FirstName")) %>, for signing the guestbook.


View Guestbook



<% End If %>


 








abiola

AnswerRe: i have this big bug on asp.net guest book ,pls help me out Pin
NeverHeardOfMe15-Sep-08 4:35
NeverHeardOfMe15-Sep-08 4:35 
QuestionUrgent help needed Pin
lili11215-Sep-08 3:45
lili11215-Sep-08 3:45 
AnswerRe: Urgent help needed Pin
NeverHeardOfMe15-Sep-08 4:00
NeverHeardOfMe15-Sep-08 4:00 
AnswerRe: Urgent help needed Pin
Ashfield15-Sep-08 4:22
Ashfield15-Sep-08 4:22 
QuestionRe: Urgent help needed Pin
lili11215-Sep-08 4:46
lili11215-Sep-08 4:46 
AnswerRe: Urgent help needed Pin
Ashfield15-Sep-08 8:47
Ashfield15-Sep-08 8:47 
GeneralRe: Urgent help needed Pin
lili11215-Sep-08 22:07
lili11215-Sep-08 22:07 
GeneralRe: Urgent help needed Pin
Ashfield16-Sep-08 8:51
Ashfield16-Sep-08 8:51 
AnswerCP Ignore Pin
leckey15-Sep-08 7:53
leckey15-Sep-08 7:53 
GeneralRe: CP Ignore Pin
Paul Conrad15-Sep-08 9:59
professionalPaul Conrad15-Sep-08 9:59 
AnswerRe: Urgent help needed Pin
Paul Conrad15-Sep-08 9:57
professionalPaul Conrad15-Sep-08 9:57 
Questiononrowclick of gridview Pin
eyeseetee15-Sep-08 3:34
eyeseetee15-Sep-08 3:34 
AnswerRe: onrowclick of gridview Pin
chandralekha15-Sep-08 20:47
chandralekha15-Sep-08 20:47 
QuestionHow can retrieve the selected menu item? Pin
JUNEYT15-Sep-08 2:17
JUNEYT15-Sep-08 2:17 
QuestionFile Upload Pin
sowmya k15-Sep-08 1:55
sowmya k15-Sep-08 1:55 
AnswerRe: File Upload Pin
surender93915-Sep-08 2:35
surender93915-Sep-08 2:35 
AnswerRe: File Upload Pin
balaji.t15-Sep-08 2:38
balaji.t15-Sep-08 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.