C# - Creating DotNetNuke Replacement For PortalModuleBase?
Dec 8, 2010
I'm creating a new DotNetNuke module and in the past I inherited from PortalModuleBase. I'm aware that there's a replacement for this now. Can someone tell me what it is? I've had a brief search for it but I haven't found what it is.
View 1 Replies
Similar Messages:
May 26, 2010
Is URL Routing is replacement for URL rewriting.? Or each of them have their own pros on cons?
View 7 Replies
Aug 18, 2010
I need to know is there any way to separate the classes automatically created by Entity framework. I can not use POCO template. because I have restriction to use framework 4.0 for time being.
I am having VS 2008 Framework 3.5
Do I have any service packs which gives me POCO.
View 1 Replies
Mar 16, 2011
If my understanding is correct, it is not possible to use the Datapager with the Accordion control. So, I am trying to find a way to replicate the functionality and wonder if anyone can recommend a method of doing it.
I am after a control/strategy that is 'pageable' where I can have a 'header' with general item information and with some means of displaying more detailed information, if required, without having to leave the current page.
View 2 Replies
Feb 17, 2011
I have this small piece of code
var idObjects = Spring.Context.Support.ContextRegistry.GetContext()
.GetObjectsOfType(typeof (ICustomInterfaceThatDoesSomething));
foreach (ICustomInterfaceThatDoesSomething icitds in idObjects.Values)
icitds.DoSomething();
Is there a way i can avoid this by having spring.net automatically inject the singletons to a property i declare, like an array of ICustomInterfaceThatDoesSomething?
The only reason i want something like this is because i want to kill the .dll dependency on the project and this is the single point of usage.
View 4 Replies
Feb 22, 2010
What is the best replacement for ServerXMLHTTP30 in .NET 3.5. Is HttpWebRequest good candidate?
I am in the process of creating an application that will get a XML stream as a response to a request.
View 1 Replies
Mar 14, 2011
Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template? (.NET 4.0)
View 1 Replies
Feb 23, 2011
I do need a working ASP.NET C# code to replace characters in a string.
My following code works fine but in case of input "a" it gives me an output as "678d", but in case of input "c" the output is correct as it is i.e. "8d"... Here it automatically replaces the rest values too. I can see the code is executing in a step by step process... This results me to get an overloaded output.
{
StringBuilder builder = new StringBuilder();
builder.Replace("a", "6b");
builder.Replace("b", "7c");
builder.Replace("c", "8d");
return builder.ToString();
}
Now, I do need to replace "a" as just "6b" and it should not load the rest values.
View 5 Replies
Dec 24, 2010
I am doing some url redirections in a project that I am currently working on. I am new to web development and was wondering what the best practise was to remove any illegal path characters, such as ' ? etc.I'm hoping I don't have to resort to manually replacing each character with their encoded urls.I have tried UrlEncode and HTMLEncode, but UrlEncode doesn't cater for the ? and HTMLEncode doesn't cater for 'E.G. If I was to use the following:
Dim name As String = "Dave's gone, why?"
Dim url As String = String.Format("~/books/{0}/{1}/default.aspx", bookID, name)
Response.Redirect(url)
I've tried wrapping url like this:Dim encodedUrl As String = Server.UrlEncode(url)AndDim encodedUrl As String = Server.HTMLEncode(url)
View 2 Replies
Jan 7, 2011
I want to prompt the user before allowing them to save a record. So let's assume I have the following button defined in the markup:
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click"></asp:Button>
To force a prompt with normal javascript, I could wire the OnClick event for my save button to be something like this (I could do this in Page_Load):
btnSave.Attributes.Add("onclick",
"return confirm('are you sure you want to save?');");
The confirm call will block until the user actually presses on of the Yes/No buttons, which is the behavior I want. If the user presses 'Yes', then my btnSave_OnClick method would be called.
For the jquery dialog that is the equivalent, I tried something like this (see below). But the problem is that unlike javascript confirm(), it's going to get all the way through this function (displayYesNoAlert) and then proceed into my btnSave_OnClick method on the C# side. I need a way to make it "block", until the user presses the Yes or No button, and then return true or false so the btnSave_OnClick will be called or not called depending on the user's answer.
Currently, I just gave up and went with javascript's confirm, I just wondered if there was a way to do it.
[code]...
View 2 Replies
Mar 16, 2010
I'm a new user of ASP.NET MVC and I'm trying to replicate the ListView control from WebForms in an AJAX-y manner. Take the following as an example:
[Code]....
The "ItemTemplate", "EditItemTemplate", and "InsertItemTemplate" replacements are implemented as Partial Views, so the view for this page looks something like this:
[Code]....
The edit/update flow is very simple. The user clicks the "edit" button, an AJAX request is made to get the "EditItemTemplate", and the contents of that row are replaced with the "EditItemTemplate". When the user clicks "Update" in the edit row, the form is submitted via AJAX and the resulting content replaces the "EditItemTemplate".
The part I'm not sure how to deal with is the InsertItemTemplate. When the user submits the insert form, I need two partial views to be returned: one to replace the InsertItemTemplate (clear the form or show any validation errors), and one to insert into the table as a new record (ItemTemplate). I'm not sure what to do about this...the only options I've come up with are:
Make 2 Ajax requests -- one to insert the item and get the ItemTemplate for the new item and another to get a clean InsertItemTemplate Make 1 Ajax request for JSON -- render the ItemTemplate and InsertItemTemplates into strings and then put them into a JSON object that can be analyzed client-side (ex: { itemtemplate: "<tr>...</tr>", insertitemtemplate: "<tr>...</tr>" }) Make 1 Ajax request for the ItemTemplate and then manually clear the InsertItemTemplate form client-side (removing any form entries and validation elements)
None of these options really seem that great to me...especially #1 (because of a second AJAX request) and #3 (because it keeps my solution from being easily reused on other "ListView replacements" due to the need to manually clear the form). #2 is somewhat acceptable but still kind of hacky because rendering partial views to strings and then sending them in JSON isn't easy to do and ends up being a bit of a hack.
View 5 Replies
Aug 18, 2010
Finding Replacement options for Membership?
View 5 Replies
Feb 9, 2010
Is there a way to effectively have two "browsers" on one page without using framesets?My wording may be a bit confusing there, so here is what I'm trying to achieve...Let's say I have a web page that has an asp:textbox and an asp:button. The user types any URL they want (let's usewww.asp.net as an example) into the text box and clicks the button.I then want to load that URL (www.asp.net) into a control, or something, on the page so that I can show that page's content (I do not want to load it into a separate page or replace the current page). I want to specify the placement and size of the control on my page. I also want to be able to access the page source of the content that's been loaded into the control from my code-behind.I know that "some" of this can be achieved using framesets but not all, and as I understand it, framesets are on the way out and I shouldn't use them anyway.
View 7 Replies
Jun 24, 2010
I am new to DotNetNuke configuration side.
I want to download dotnetnuke 5.4 and want to install on my machine.
Environment:
OS Version: Win Vista
.Net: VS.Net 2008
SQL Server 2005
View 1 Replies
Aug 20, 2010
I'm using DotNetNuke 4.8.x and want to utilize jQuery. Could anyone possibly suggest me on what is the best way to integrate jQuery into DNN? I won't be able to upgrade DNN version to 5 which has built-in support for jQuery.
View 1 Replies
Feb 25, 2010
Can anyone shed some light on why DotNetNuke comes configured with request validation and event validation disabled? They're both off at the web.config level for a default install which seems to be a regressive approach. Are there any sound reasons for this and what is the functional impact on DotNetNuke if they're turned back on?
Obviously appropriate input validation should be happening in code anyway but the native .NET framework behaviour is always a nice fallback.
View 2 Replies
Feb 22, 2010
We are in the process of implementing a CMS for our project which currently extensively uses asp.net master pages and css. Also the application is data-driven and controls like gridview and listview are used. After a little search we zeroed on two CMS dotnetnuke and umbraco. Now my question is:
Which one of the two CMS is best suited and easy to use?
Do they support integration of existing code and UI's
provide links for further reference.
View 5 Replies
Jun 25, 2010
I want to create a new module in DNN (VB) ... that;
1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module
I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.
I have the development environment already set up with;
1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully
If anyone knows a way I can build a module using the DNN Dynamic Module Template in VS 2008 and then strip off the DAL and all the unnecessary layers and extra controls until I have only a working view.ascx that just prints out "Hello World!" to the screen ...
View 1 Replies
Jan 14, 2011
I am getting started with DotNetNuke and when I try to use jQuery the same way I use it in any standard ASP.NET page it does not work. For example I am trying to use uploadify which uses jQuery and flash. I can't even get the cancel button to show in the control.
By now I understand there must be a workaround and it is different than simple asp.net
Here is the ascx code:
[code]....
View 2 Replies
Mar 19, 2010
I've Googled, Binged, and here at StackOverflow, looked through the related questions and searched, but I'm not finding what I'm looking for. I've also searched documentation on DNN.
What I'm looking for is any guidance (tutorials, blogs, step-by-step instructions for setting up a repository) etc from people who are experienced in using DotNetNuke with SVN.
We use SVN for all our source control, and have no problem with standard applications, because we pretty much built the repository and directory structure to work with our processes. This means when we do web sites, in Visual Studio, we do file based web sites, rather than setting them up in the local IIS. It just makes things easier for us.
However, with DNN, it appears that even if you get the source code, it is expecting to be set up in the local IIS, which means additional headaches for us.
For example, we are moving all of our source code off our local C drives, and onto a shared drive on a server. This is to enable backups in addition to our normal source control. (This was a management decision). So that means that we need to change the virtual web app when we make the move.
Has anyone come up with a good way to work around this? Can DNN be set up so that the developer web server in Visual Studio can be used, so that we can treat it just like any normal web app? Am I missing something obvious?
View 1 Replies
Jun 21, 2010
I'm trying to add Forum module to my Web Site , so I add dlls, components and modules and :
[Code]....
so how can add the forum from DNN to my page ? or how to fix this error
View 1 Replies
Feb 5, 2010
I've been tasked with looking into performance tuning my company's intranet server. It runs DotNetNuke which suffers from poor performance. It also runs a number of other web apps (mix of asp and asp.net).
Could anybody give me a brief list of common performance tweaks that can be made to IIS6?
View 1 Replies
Mar 29, 2011
In dotnetnuke, I have two sites located on different location. Now I want to point these two sites to the same database. Is it possible to point to same database.
I even tried pointing it from web.config, but thats not working. I don't want to work with child portals, because i have already created site on other location and all the source codes are under that, but when I create child Portal, it creates new portalnumber folder under portals, and it just has two folders in it, Users and Cache, I dont understand how to place codes, as DNN creates lots of folders while creating new site, which are missing here.
View 1 Replies
Nov 8, 2010
I want to create a module that can send a message to another module in different tab.I don't know the target tab Id but I know the target module name. Is there any way to do such a thing?Is Dot net nuke support messaging?
View 1 Replies
Mar 4, 2011
i installed dotnetnuke in my system, installation is completed successfully, now i want to change skin settings according to my requirement like changing colors,font,logs like that can u help me how can i do this in dotnetnuke.
View 1 Replies