Web Forms :: Add New Admin Tab In Dotnet BlogEngine?
Jun 24, 2010how i can add new admin tab in BlogEngine?and refer to sample page
View 2 Replieshow i can add new admin tab in BlogEngine?and refer to sample page
View 2 RepliesI have two questions, could anybody please answer to those:1) Do I need to install Dotnet framework 2.0 if dotnet framework 3.5 is already installed on the same server?2) Also do I need to install "ASP.NET 2.0 AJAX Extensions 1.0" if higher version is installed on the same server?
View 8 RepliesI have an Admin folder which contains 4-5 aspx pages. I want to that only user with role="admin" can view those files. What settings i need in web.config?
View 1 RepliesA lot of people use syntaxhighlighter for pasting their code in asp.net website also in blogengine.net, I visit the website
[URL] but still confuse, how I can use.
I want to add blog into my existing ASP.Net MVS 2 application. dotnetblogeengine.net is an option to a blog into Web Forms application. Can it be added into MVC 2 applocation.
View 3 RepliesI have a Windows 2008 server and MVC 2.0 site is hosted under IIS 7.0 root directory. The site works fine. I want to use the BlogEngine.NET with my site. For example if my mite name is [URL] (which is the root of IIS) and the blog should be [URL]
Is this possible? Can I create a sub virtual directory within my root (where the MVC 2 app is hosted) and run the ASP.NET BlogEngine.Net in it?
I implement many themes in Blogengine.net 2.0 for many users and have lots of problems with it then i need to thing first that are it is really stable.
when i use Be.net 2.0 pagination in the stable version wrongly coded they never update them even someone reported them many time. means no one care about bad thing populated in Be.net 2.0 when i learn them their is too much blog but not as much as wordpress no problem but if you have a question their is no one answer you or answer you got from community going too late. this is not like a wordpress community then you question and get response quickly.
the first and 2nd is small issue no problem i have from that but a big problem is that functionality in blogengine.net not working well as in wordpress and in some other cms have every functionality well designed. i found many issue i reported from other when i implement theme from them like.
3.1 if someone write a post who are in future date , in draft , or published then sometime they show addpost page instead of editpost page. this make sometime user feel dirty because you know what they thing when they write a big post and found that all their craft goes left
3.2 Be.net have less functionality then any average other CMS no problem if it's less the issue that sometime you not found what's going wrong whenever their is a issue in the code you write or refactor existing pattern in blogengine.net
SO i want to know are Blogengine.net 2.0 really have stable version or they make them only for showing that they have really same thing as other.
I have a new blogengine site up and want to set up syntax highlighting. The problem is that I have a few files (javascript and css) that I need to add the the head of the page, but there is no one page or masterpage. where to write out these references so they will show up on all pages?
View 4 RepliesI uploded the blogengine on th web server.On every first load it give me error oops page not found (404).
after i refresh it it works fine.
I am getting blank page after deploying the blog engine on Main Production server.
Same application is running smooth on my local system
I like to clear the IE Pagesetup--> header and footer using Asp.net 1.1 , I have tried in 2.0 Dotnet it works fine it is not working in 1.1 and its urgent too this is the code i tried ...........
public void IESetupFooter()
My aspx page contains "OnRowDataBound="GridView1_RowDataBound"" call, which I'm trying to call when I move my mouseover a databound row. Thus changing the background colour of the row.
When I move my mouse over the row it seems to bypass the OnRowDataBound call and proceed directly to the "mouseover" function which proceeds to error as the "(row.style.background == row.basecolor)" is undefined.
This has previously worked under older versions of AJAX and DOTNET. I've upgraded to DOTNET v4 with appropriate AJAX dll's.
i want to crease an admin panel. but i do not use asp.net default membership system.
i know actions enable access can be determine by [Authorize] attribute. but my admin has 10-20 controller and about 100 action.
i do not want to signature all of actions by [Authorize] attribute.
all controller must be required login if user did not login.
I would like to know if is possible to use DotNet OpenID together with ASP.NET membership. Or other way or allow OpenId account in ASP.NET membership.
View 1 RepliesI am using layered architecture in dotnet (mostly I work on web projects). I am confuse what layers should I use ?
I have small idea that there should be the following layers.
user interface
customer types (custom entities)
business logic layer
data access layer
My purpose is sure quality of work and maximum re-usability of code.
some one suggested to add common types layer in it. Please guide me what should be layers ? and in each layer what part should go ?
can we make our own SSL or SSL macanism in SSL? Or please advice if there is any way that we can provide such security to web applicaiton without getting services from other companies ?
View 1 RepliesI am intend to create a web application and host it.But i want to develop something fresh in the internet world, buti feed the ideas are saturated for me though it is not.Any guys who have any idea can share with..[If u dont mind]Also refer me URL's that are already implemented with really good ideas.I tried but i was not creative enough to think something different :)
View 2 RepliesMultithreading in dotnet apps?
View 3 RepliesI found a great answer on SO describing how to set up custom user roles, and I've done the same in my project. So in my Login service I have:
public ActionResult Login() {
// password authentication stuff omitted here
var roles = GetRoles(user.Type); // returns a string e.g. "admin,user"
var authTicket = new FormsAuthenticationTicket(
1,
userName,
DateTime.Now,
DateTime.Now.AddMinutes(20), // expiry
false,
roles,
"/");
var cookie = new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(authTicket));
Response.Cookies.Add(cookie);
return new XmlResult(xmlDoc); // don't worry so much about this - returns XML as ActionResult
}
And in Global.asax.cs, I have (copied verbatim from the other answer):
protected void Application_AuthenticateRequest(Object sender, EventArgs e) {
var authCookie = Context.Request.Cookies[FormsAuthentication.FormsCookieName];
if (authCookie != null) {
var authTicket = FormsAuthentication.Decrypt(authCookie.Value);
var roles = authTicket.UserData.Split(new Char[] { ',' });
var userPrincipal = new GenericPrincipal(new GenericIdentity(authTicket.Name), roles);
Context.User = userPrincipal;
}
}
Then, in my ServicesController class, I have:
[Authorize(Roles = "admin")]
//[Authorize]
public ActionResult DoAdminStuff() {
...
}
I login as a user with the "admin" role, and that works. Then I call /services/doadminstuff - and I get access denied, even though when I put a breakpoint in Global.asax.cs, I can see that my roles do include "admin". If I comment out the first Authorize attribute (with roles) and just use a plain vanilla Authorize, then I can access the service.
I need to create chat application in asp.net.But I don't need to store chat messages in database. Only I retrieve user list from database. I have to create group chat also. I have to show list users but online user's image in green color offline user image in red color for differentiating people.
View 7 Repliesstring pdfpath = Server.MapPath("images");
string imagepath = Server.MapPath("Images");
using (Stream inputPdfStream = new FileStream(pdfpath + "\NLI_Filled_out.pdf", FileMode.Open, FileAccess.Read, FileShare.Read))
using (Stream inputImageStream = new FileStream(imagepath + "\sign2.gif", FileMode.Open, FileAccess.Read, FileShare.Read))
using (Stream outputPdfStream = new FileStream(pdfpath + "\NLI_Filled_output.pdf", FileMode.Create, FileAccess.Write, FileShare.None))
{
var reader = new PdfReader(inputPdfStream);
var stamper = new PdfStamper(reader, outputPdfStream);
var pdfContentByte = stamper.GetOverContent(3);
iTextSharp.text.Image image = iTextSharp.text.Image.GetInstance(inputImageStream);
image.ScalePercent(24f);
image.SetAbsolutePosition(100, 130);
pdfContentByte.AddImage(image);
stamper.Close();
}
I have the above code in 3.5 using linq..i want to convert it into dotnet 2.0..
can different versions of dotnet framework co-exist in a same machine ? will it have any impact while developing ? can we choose required framework within VS2005 IDE as and when needed?
View 7 Replies1. Can you explain me what is component based development ? What I am already doing is using layers (user interface, custom types, data access layer and busines logic layer). For example for filling a drop down list with countries what I do is getting data from DAL using custom types in my BLL and BLL return a list of countries to user interface. Now in my opinion it is a plug-able component that I can use anywhere. Should it be called a component ?
2. What is a component a method ? or class or a assambly ?
3. Can components be like that (methods and assemblies) or they are services to embed ?
4. Actually I never have used services, if component can be in both ways (services & classes and assemblies) than what approach is better, should component be made in form of assemblies or services ?
5. Without being so technical any general rules on making re-usable components ?
I had accidently moved a dll which sits in the BIN directory from my local machine to Production server. Later I realised that the same dll exists in the production server in it's GAC. Now I do not have ermissions to delete that dll from the bin directory on the production server. I am planning to use assemblybinding codebase and redirect attributes to make the application to search for the dll in the BIN directory instead of the in the GAC
I get the following error
The type 'myassembly' exists in both 'c:WINNTMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesdw82f12d83c45d61ceassemblydl3e45c2bc4�06e4169_8855cb01myassembly.DLL' and 'c:WINNTassemblyGAC_MSILmyassembly3.1.21.0__7780ffc6c71e90a4myassembly.dll
how I have use this assemblybinding attribute in Web.Config to point to the dll in the bin directory.
I'm looking at building an exhaustive function that returns a friendly name for the Users Operating System.
I think I have most of the Windows stuff down, but I'm not sure about Linux, OSX, and others.
Does anyone know where I can find an exhaustive list of HTTP_USER_AGENT's
'Gets the users operating system
Public Shared Function GetUserOS() As String
Dim strAgent As String = HttpContext.Current.Request.ServerVariables("HTTP_USER_AGENT")
'Windows OS's
If InStr(strAgent, "Windows NT 6.1") Then : Return "Windows 7"
ElseIf InStr(strAgent, "Windows NT 6.0") Then : Return "Windows Vista"
ElseIf InStr(strAgent, "Windows NT 5.2") Then : Return "Windows Server 2003"
ElseIf InStr(strAgent, "Windows NT 5.1") Then : Return "Windows XP"
ElseIf InStr(strAgent, "Windows NT 5.0") Then : Return "Windows 2000"
ElseIf InStr(strAgent, "Windows 98") Then : Return "Windows 98"
ElseIf InStr(strAgent, "Windows 95") Then : Return "Windows 95"
'Mac OS's
ElseIf InStr(strAgent, "Mac OS X") Then : Return "Mac OS X"
'Linux OS's
ElseIf InStr(strAgent, "Linux") Then : Return "Linux"
Else : Return "Unknown"
End If
End Function 'GetUserOS
I basically want to return better results for Mac OS and Linux OS's. It's better in my opinion to say OSX Snow Leopard or OSX Tiger rather than just Mac OS X.