 |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
 | This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

March 7th, 2008, 06:21 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You could do that; however, I think you're better off specifying an explicit applicationName on all providers. Take a look at the BugBase application (chapter 12) to see a complete web.config example.
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|

March 7th, 2008, 06:48 AM
|
|
Authorized User
|
|
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok i have made it working now. When i am logged i can see the NEW ENTRY and EDIT ENTRY btn/link.
Well there is still the an odd part in the address www.domain.com/DOMAIN/Default.aspx but i can live with that.
The only problem that still makes me feel bad is that FCKEditor doesn't work. You can entry only the title of the new entry and not the body.
In the config file i have this which was set by default
<add key="FCKeditor:UserFilesPath" value="/Blog/UserFiles"/>
Maybe i should change the path to something else?
Please advice. I am almost there.
Thanks Imar
http://www.entertainmentresidence.com/Index.htm
|
|

March 7th, 2008, 07:34 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
That folder (and key) is to determine the location of uploaded files, not for the actual editor.
Check out the HTML in the page; how does the code for the editor look? Is it referring to a path that exists on your server?
You may also want to take a look at the official FCKEditor site: http://www.fckeditor.net/
HtH,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|

March 7th, 2008, 07:46 AM
|
|
Authorized User
|
|
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Code:
<FCKeditorV2:FCKeditor ID="txtBody" runat="server" Height="300px" BasePath="~/FCKeditor/" ToolbarSet="WroxBlog" ToolbarCanCollapse="true" Width="500px"></FCKeditorV2:FCKeditor>
Actually it doesn't work only in FF. In IE works just fine. Weird.
Ok it would be nice if you can help with the extra/undesired/needless part in the address. You know www.domain.com/DOMAIN/Default.aspx.
Altrough it works fine i think it should be fixed anyway.
Thanks a lot Imar. For all the help and for the time.
http://www.entertainmentresidence.com/Index.htm
|
|

March 7th, 2008, 11:05 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Regarding Firefox: that is a known issue. Please check the FCK web site and get the latest stable version to resolve this issue.
I don't know why you get /Domain in the address. You'll need to supply more information. How is IIS set up, what is your folder structure? What does GoDaddy have to say about this? Do you see any redirect code?
The Blog is easily pluggable in other sites and as such doesn't do and redirects itself. It should come from something else.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|

March 7th, 2008, 11:59 AM
|
|
Authorized User
|
|
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You were right about the firefox. :)
As per URL issue; well the IIS. Hmm there is nothing special about the settings. All other websites works just fine. I have about 5 other website on the same shared hosting plan and nothing like this ever happened.
Actually what i've noticed is that it happens only when i click some of the links inside the BlogEntriesFilter.ascx control.
Code:
<asp:HyperLink ID="hyperCategory" runat="server" NavigateUrl='<%#GetNavigateUrl(Eval("Id")) %>' Text='<%#Eval("Description") & " (" & Eval("NumberOfBlogEntries") & ")" %>' />
so i was wondering what the GetNavigateUrl function returns actually?
As for the redirect; no i do not see any redirect code or maybe i am missing something anyway. Just please be aware that i have not changed anything in the code itself. Just the articles content.
Thanks for any further help.
http://www.entertainmentresidence.com/Index.htm
|
|

March 7th, 2008, 12:49 PM
|
|
Authorized User
|
|
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This is the function but, i couldnt find anything that seems like possible error causer.
Code:
Public Function GetNavigateUrl(ByVal categoryId As Object) As String
Dim myCategoryId As Integer = Convert.ToInt32(categoryId)
Dim queryString As String = Server.UrlDecode(Request.QueryString.ToString())
If Request.QueryString.Count > 0 Then
' There is an existing QueryString
If Request.QueryString.Get("categoryId") IsNot Nothing Then
queryString = queryString.Replace("categoryId=" & Request.QueryString.Get("categoryId"), "categoryId=" & categoryId.ToString())
Else
queryString &= "&categoryId=" & categoryId.ToString()
End If
If Request.QueryString.Get("startDate") IsNot Nothing Then
queryString = queryString.Replace("&startDate=" & Request.QueryString.Get("startDate"), "")
queryString = queryString.Replace("startDate=" & Request.QueryString.Get("startDate"), "")
End If
If Request.QueryString.Get("endDate") IsNot Nothing Then
queryString = queryString.Replace("&endDate=" & Request.QueryString.Get("endDate"), "")
queryString = queryString.Replace("endDate=" & Request.QueryString.Get("endDate"), "")
End If
Else
queryString = String.Format("categoryId={0}", categoryId.ToString())
End If
Return Request.CurrentExecutionFilePath & "?" & queryString
End Function
what is more strange is that it happens when you click the Login LINK as well. and it is not related to the function above. :(
I am afraid that this odd DOMAIN text is commin from the aspnet_Applications table where i have two rows:
/
/DOMAIN
Thanks
http://www.entertainmentresidence.com/Index.htm
|
|

March 7th, 2008, 01:26 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It shouldn't have anything to do with that.
I think the reverse is true; because of the domain issue, you got the extra application in the database.
Is the word DOMAIN just an example, or is it the actual text? What happens when you scan the source files for this text?
Did you set the applicationName to / as I suggested earlier?
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|

March 7th, 2008, 02:31 PM
|
|
Authorized User
|
|
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If i remove the another application from the table and from the other related tables then i cannot see the NEW ENTRY and EDIT ENTRY button and link.
Really confusing situation.
However that's the issue. As soon as i removed the /DOMAIN from the applications table the address started to appear correctly.
Any suggestion. maybe i should reconstruct the database from scratch. Then just to add the extra stored procedures and the views ?
Thanks
http://www.entertainmentresidence.com/Index.htm
|
|

March 7th, 2008, 04:14 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
No need to delete stuff. Just set applicationName to / as I suggested earlier and use the code in the post I linked to to recreate / reassign the necessary user(s) and roles.
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|
 |