|
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")="" %>"="" 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")="" %>"="" 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)="" )="" %>"="">
<contentstemplate>
No URL Given
]]>
| |
href="../home.aspx">Home |
href="../about.aspx">About | Tutorials
|
href="../downloads">Downloads |
href="../resources.aspx">Resources |
href="../guestbook">Guestbook |
href="../news.aspx">News |
href="../contact.aspx">Contact
|
|
]]>
]]>
]]>
<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")="" <>="" nothing),="" request.form("city"),="" "")="" %>"="" type="WChar">
<parameter name="@Comments" value="<%# IIf((Request.Form(" comments")="" <>="" nothing),="" request.form("comments"),="" "")="" %>"="" type="WChar">
<parameter name="@Country" value="<%# IIf((Request.Form(" country")="" <>="" nothing),="" request.form("country"),="" "")="" %>"="" type="WChar">
<parameter name="@Email" value="<%# IIf((Request.Form(" email")="" <>="" nothing),="" request.form("email"),="" "")="" %>"="" type="WChar">
<parameter name="@FirstName" value="<%# IIf((Request.Form(" firstname")="" <>="" nothing),="" request.form("firstname"),="" "")="" %>"="" type="WChar">
<parameter name="@LastName" value="<%# IIf((Request.Form(" lastname")="" <>="" nothing),="" request.form("lastname"),="" "")="" %>"="" type="WChar">
<parameter name="@State" value="<%# IIf((Request.Form(" state")="" <>="" nothing),="" request.form("state"),="" "")="" %>"="" type="WChar">
<parameter name="@Website" value="<%# IIf((Request.Form(" website")="" <>="" nothing),="" request.form("website"),="" "")="" %>"="" 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") & " <" & Request.Form("Email") & ">"
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 <admin@newmanzone.com>"
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 %>
href="../home.asp">Home |
href="../about.asp">About | Tutorials
|
href="../downloads">Downloads |
href="../resources.asp">Resources |
href="../guestbook">Guestbook |
href="../news.asp">News |
href="../contact.asp">Contact
|
|
abiola
|
|
|
|
|
well the error message tells you where the eror is: on line 2. And line 2 is where the DreamweaverCtrls library (dll) is referenced - so I can only assume that you haven't referenced and/or copied it into your application's bin/ folder. I further assume that this dll has either been built earlier in the book, or came with it on a CD, or is downloadable off the book's website.
|
|
|
|
|
Hi,
I am new to ASP.NET and I would like to know how to solve the following situation:
I have my default.aspx written in C# which is through the user can navigate to Books.aspx and access a list of books and their authors. In default.aspx I included a search button to enable the user to search the books by author and title. Now, I don't know the code to write to let the user click on the search button navigate to Books.aspx and be directed to a speicif location. This means if the user enters in the text area Mark knox and the title history he should see Books.aspx and the cursor should move to the specific location.
I don't want the user to just be able to navigate to the top of Books.aspx because there will be thousands of books with the author name and their title. The user would be exhausted before finding a Book.
Please help me, I am new to ASP.NET and I need this as soon as possible.
Thank you
|
|
|
|
|
Apart from the fact that no-one can be of much help wihtout knowing how books.aspx is produced, it ounds to me like you're trying to run before you can walk.
The key to solving complex problems is to break them down into smaller ones.
and, btw, a subject line like "urgent help needed" is not going to win you any friends.. You've already alienated yourself from half this site by posting this quesiton in the lounge.. Just as in life, so in this site and so in programming: take the time to start at the beginning and read the primers before jumping in at the deep end.
|
|
|
|
|
lili112 wrote: This means if the user enters in the text area Mark knox and the title history he should see Books.aspx and the cursor should move to the specific location.
I would have thought what you really need to do is filter your list of books, particularly if there are going to be thousands of books as the page will take an eternity to load.
lili112 wrote: there will be thousands of books with the author name
You must have some very prolific authors if some of them haev written thousands of books
Bob
Ashfield Consultants Ltd
|
|
|
|
|
ok, let us suppose that i reduce the number of books and they become hundred. I still want to know how to load Books.aspx and point to a specific location depending on the choice of the user.
Thanks
|
|
|
|
|
You use anchor tags, but its poor design
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Ok, anchors may work but I do not know how would i implement them here, could you show me an example. Since you mentioned that this would be a poor design so what else do you suggest.
Your help is appriciated
Lili
|
|
|
|
|
You basically need to create an anchor for each position on the page you need to jump to and wite a little bit of javascript to do just that. There are plenty of examples to be found on google, just search for anchor text.
As I said earlier, it would be much better to filter the results so that only the relevant data is shown. While working with a few records the page load time is not significant, but if you had say 2 million records then it would ake forever to display the page.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Three forums including The Lounge.
Blog link to be reinstated at a later date.
|
|
|
|
|
Some people just don't get it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Don't use words like urgent in your subject line or post. It is very rude.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi guys
I have a gridview which uses onrowclick.
When a row is clicked an event is fired.
Is there a way to disable the row click on one of the columns?
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
hi,
For disabling row click on one of the columns ,you can give an if condition on onrowclick event as below
If (e.ColumnIndex = 0) then
else
End if
In the else case you can write the code for that event.
Hope this will help you
|
|
|
|
|
Hi!
I have a menu in my master page file. I was checking to see if selected menu item was going to be assigned to Label's text property (which is inside a content file). However it seems that the procedure is not functioning somehow. If you enlighten me about the problem, I would really appreciate it.
Thanks.
<br />
admin.master.vb<br />
-------------------------------------------------------------------------------------------------------<br />
Public Partial Class admin<br />
Inherits System.Web.UI.MasterPage<br />
<br />
Public SelectedMenu As String = Nothing<br />
<br />
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
<br />
End Sub<br />
<br />
Private Sub Menu1_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu1.MenuItemClick<br />
<br />
'when I click one item, the menu should be invisible but it doesn't work<br />
<br />
Menu1.Visible = False<br />
SelectedMenu = Me.Menu1.SelectedItem.Text <br />
End Sub<br />
End Class<br />
<br />
'The label is inside a content file<br />
<br />
Label1.text =<%=SelectedMenu%><br />
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Can anyone give any idea for this
I am using a fileupload control in my application.
I am saving the file path in the database.
when I am editing the content of the database,
I need to get the file path from the database into the fileupload control box.
what is the property to get the file path from the database and show it in the file upload control?
|
|
|
|
|
hi sowmya,
Fileupload control is readonly,
we can not assign value to it.
use a label to display the path.
Regards
|
|
|
|
|
hi sowmya,
tis not possible to populate the filepath directly in the fileupload control.Instead u can show it in a textbox with a browse button nearby.
T.Balaji
|
|
|
|
|
since its readonly its not psble..u czn either display it in textbox or label
T.Balaji
|
|
|
|
|
Currently i m working on project in which i have to use inheritance in javascript
my requirement is i want to update field of classA from classB by creating new instance of ClaassA in ClassB
suppose i m in classsA ,then i have to move classB where i m updating classA field by making instance of claassA in ClassB . when i m back in ClassA fiels which i updated still not updated . so how i will be abe to do this
Raghvendra
|
|
|
|
|
I'm developing an application where I need to display large floor plan images in an area smaller than the image itself, so I'm looking for a control that would handle this for me.
I imagine it being just like google maps except I can load my own image into the control instead of using a real map. I found a few .NET image zoom controls but none of them can handle the push-pin type functionality - I'd need to be able to plot several points on the floor plan with labels or mouse over popups.
Does anyone know of a 3rd party control that can do this?
|
|
|
|
|
Hie all
I have developed a website and i want to access the pages from frmMain where users login, I have set the page frmMain as the start page but i can still type the page name like:
http://localhost:2942/Website/frmAddUsers.aspx and access it, Does anyone know how to stop this.
|
|
|
|
|
you need to implement Authentication in your web site so that user won't able to see any page without logged in
Is that you want ?
Search for Windows authentication
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
I want users to view pages after logging into the application, like in yahoo u have to submit your credentials before viewing your emails, even if u know the link to your inbox.
|
|
|
|
|
|