Url Rewriting With Intelligencia Rule Not Working

Mar 17, 2011

Im using Intelligencia UrlRewriter for url rewriting. I have wrote a set of rules in the web.config file I have two sets pages, Static pages whose name is static but content is CMS based Dynamic pages (actually this is not simply a dynamic page its a category which have description and sub categories) Here both pages are being rewritten from the config file. For instance home page, about us page etc tis is being rewritten as

rewrite url="~/Home" to="~/Default.aspx"

The category page is being the same kind of url its being rewritten as

rewrite url="~/(.*)" to="~/GroupHome.aspx?Group=$1"

I have given the rules for the static pages first and then the category url but all the urls are being rewritten to grouphome, even if I have given the rule for home page, about us page etc before the category rule. I have tried even the ollowing still its directing to Group home,

<rewrite url="~/Home" to="~/Default.aspx"/>
<rewrite url="~/(.*)/" to="~/GroupHome.aspx?Group=$1"/>
<rewrite url="~/Home" to="~/Default.aspx"/>

How the rule can be rewritten to include both urls

View 1 Replies


Similar Messages:

Not Showing Image After URL Rewriting By Intelligencia

Dec 5, 2010

I am using Intelligencia for url rewirting. My problem is after url rewirting images and scripts lost becuase its urls changes.

<rewrite url="~/Pages/(.+).html" to="~/Default.aspx?PageId=$1"/>

if i remove pages from pattern it work correctly(like below)

<rewrite url="~/(.+).html" to="~/Default.aspx?PageId=$1"/>

View 2 Replies

Web Forms :: How To Prioritize URL Rewriting Rule

Oct 9, 2013

I want to use wild card after first slash("/")  in my url rewriting but i want other pages to redirect on particular page for e.g. if  i use this 

<rewrite url="~/(.+)" to="~/default.aspx" />

Then it will redirect all pages to to xyz.com/default.aspx   

But i want this will fire last if i use some rule before that if will fire to that page not use this url rewriting like in MVC but  i want it in through url rewriting e.g.

<rewrite url="~/submitform" to="~/submitform.aspx" />
<rewrite url="~/(.+)" to="~/default.aspx" />

in that case if user write xyz.com/submitform it will redirect to submitform.aspx  else redirect to default.aspx.

View 1 Replies

Web Forms :: URL Rewriting And Authorization Rule Conflict?

Oct 1, 2010

I am having some trouble when I use ASP .Net 4's URL Rewrite feature while Authorization rules configured.

Global.asax

[Code]....

{Root}Web.Config

[Code]....

{Root}RestrictedWeb.config

[Code]....

The problem I am facing is: When I try to visit [URL]- because of my dashboard rule in Global.asax, instead of being redirected to [URL] I am actually getting the content of [URL] when I try to visit [URL] I do get redirected to [URL] which is a good sign.

View 1 Replies

Configuration :: Intelligencia.UrlRewriter Not Working On Production Server IIS6

Apr 27, 2010

i am using Intelligencia.UrlRewriter on my website and it works fine on my development machine, i tryed to deploy on IIS6 and i get this error:

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.Please try the following: Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. Click the Back button to try another link. HTTP Error 404 - File or directory not found.

Internet Information Services (IIS)
Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages. this is the url that throws the error. [URL] this is the working url that is being rewriten to the above one. [URL]

View 2 Replies

Configuration :: Event Not Working Due To Canonical Rule?

Jul 14, 2010

I have create following rule on my local server to check canonical url

<rewrite>
<rules>
<rule name="Enforce canonical hostname" stopProcessing="true">
<match url="(.*)"/>

[Code]....

Its working but i have default.aspx page on which i have taken one link button and written event like this

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
Response.Write("Testing Canonical Issue")
End Sub

When i click that linkbutton nothing happens only page get refreshed.

Actually i dont want to display default.aspx page along with my website thats why i have written second rule.

I want domain name with no default.aspx page

if some body writes like this www.abc.com/default.aspx then it must be 301 redirect to www.abc.com

View 1 Replies

Web Forms :: Url Rewriting Not Working On Live Server In Asp.net But Locally Working Fine

Feb 23, 2010

Url rewriting not working on live server in asp.net but locally working fine. but locally it's not case sensitive.

View 1 Replies

Click Once Not Working With Url Rewriting?

Jul 29, 2010

i have made click once application .when i run it on staging server it gives then a error the than

Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter (i am using this for url rewriting) as i remove this its work fine.

View 2 Replies

Url Rewriting Not Working In Iis6?

Dec 16, 2010

can any one tell me why url rewriting not working in iis6?

View 1 Replies

JQuery Function Is Not Working After URL Rewriting

Mar 24, 2011

Refer to my this question: Page not redirecting properly, URL rewriting (Asp.NET)

Which is resolved except one thing.

Though I have put the code to eliminate post back for .jpg and other file extension, JQuery at the web page is not working.

<script type="text/javascript" src="JS/jquery.js"></script>

I have written it like the above. I have tried to change the path like

<script type="text/javascript" src="~/JS/jquery.js"></script>

View 2 Replies

Configuration :: Url Rewriting Is Not Working In Godaddy Server

Jan 22, 2010

I hosted my project on Godaddy server and they say that the settings required for Url rewriting was already there.But I am getting a blank page when trying to use virtual url to redirect to a aspx page.

<urlrewritingnet
rewriteOnlyVirtualUrls="true"
contextItemsPrefix="QueryString"
defaultPage="default.aspx"
defaultProvider="RegEx"
xmlns="http://www.urlrewriting.net/schemas/config/2006/07" >
<rewrites>
<add name="About-the-company" virtualUrl="^~/About-the-company"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="Default.aspx"
ignoreCase="true" />
<add name="contact-my-company" virtualUrl="^~/contact-my-company"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="contactus.aspx"
ignoreCase="true" />
</rewrites>
</urlrewritingnet>

This is my code in Test.aspx page

<div>
<li><a href="test.aspx">Home</a></li>
<li><a href="About-the-company">AboutUs</a></li>
<li><a href="contact-my-company">ContactUs</a>
</li>
</div>

View 3 Replies

ManagedFusion Url Rewriting Not Working On Godaddy 4th Generation Hosting?

Feb 4, 2011

I recently switched from Godaddy shared hosting to Godaddy 4th generation hosting or grid hosting.

As per my other question UrlRewriter.NET with .NET 4.0 and Godaddy not working I was unable to get UrlRewriter.NET to work.

So now I have tried ManagedFusion. It works locally but does not work on the Godaddy servers BUT the errors are different and I sense that this might actually work and I have done something wrong in the configuration.

So my web.config settings are (condensed version)

<configuration>
<configSections>
<section name="managedFusion.rewriter" type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup"/>

[Code]....

Now this works perfectly fine on my local machine (Visual Studio 2010) but when I upload it to Godaddy servers I get a 404 that says it can't find /Campaign/List.aspx.

And on top of this it also goes to SSL, which I don't want as the SSL cert on that account is for a different subdomain and hence throws an SSL error.

Is there something I am doing wrong? It seems this time the URL module is handling all requests and this looks like I have configured it incorrectly somehow.

Additional Information
Running IIS 7.0 - Integrated Pipeline
.NET 4.0 Godaddy
4th Generation Hosting

View 1 Replies

HttpHandlers / Modules :: Downloading File Not Working With URL Rewriting?

Mar 21, 2011

I have implemented URL rewritting in my application. I did it in Application_BeginRequest located in Global.asax. My url rewritting in working fine. Now in order to maintain rewritting during post back.

I have added code line this.Form.Action = Request.RawUrl; in page load event in order to maintain rewritten URL during post back. When I am adding below code on image button click to download file it doesn't work. It says "Internet explorer cannot display webpage". When I am removing line this.Form.Action = Request.RawUrl; from page load then downloading file will start working but URL rewritting will not work on postback.

FileInfo objFi = new FileInfo(Server.MapPath(filepath));
this.Form.Action = Request.RawUrl;
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + objFi.Name);
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.AddHeader("Content-Length", objFi.Length.ToString());
HttpContext.Current.Response.ContentType = "application/octet-stream";
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.WriteFile(objFi.FullName);
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.End();

View 2 Replies

HttpHandlers / Modules :: Regarding Url Rewriting Not Working On The Dedicated Virtual Server?

Jan 25, 2011

I want the rewrite url to work on the virtual dedicated server. so when someone enters the url without extension like http://megafastline.com/feedback , it shud display the contents of the page feedback.aspx

The code work perfectly fine in the localhost, but when i uploaded this on the godaddy dedicated virtual server and hit http://megafastline.com/feedback , i m getting

page cannot be found!

This is my code below

in webconfig file

<httpModules>
<add name="UrlRewrite" type="UrlRewrite" />
</httpModules>

and a class in app_code called UrlRewrite.cs;

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;

[Code]....

View 2 Replies

MVC :: How To Permanently Redirect Url From Old Routing Rule To New Routing Rule

Nov 30, 2010

Response.RedirectPermanent(Url); can redirect permanently to a url.

However, during my SEO process, I decided to change my routhing rule.

For example,

I change "/tag/{tag}-quotes" routing rule to "quoes-about/{tag}", but I don't want to lose all the traffic to old routing url.

What is the best way to handle this permanent redirection?

View 4 Replies

Web Forms :: URL Rewriting - Looking For Easiest Way To URL Rewriting

Apr 10, 2010

I am trying to implement URL rewriting technique in my Web application.I have found some articles on net 2 rewrite URL. But i m not able to understand. tell me any API or DLL which will take care of all url rewriting techniques in my Web applications.

I have heard something abt UrlRewriter.ddl . But i have not used it yet. provide me the easiest way to do that. If any sample application is there then it will be better ti understand

View 4 Replies

How To Use Intelligencia.UrlRewriter

Nov 19, 2010

I'm trying to use theIntelligencia.UrlRewriter that Scott Gu wrote about and another guy located ehere: [URL] Some info about my app: I have a master page with a menu populated via dataset. Users add pages to the site and store them in the database. One table for the page and another for the content. When the user selects a page in the menu control I redirect them to the default.aspx page which is a child of the masterpage. This works great.

Protected Sub Menu1_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu1.MenuItemClick
Response.Redirect("default.aspx?PageName=" + HttpUtility.UrlEncode(Menu1.SelectedItem.Text))
End Sub

On the Default.aspx page I get the page content with this:

Protected sub Page_Load(ByVal sender
As
Object,
ByVal e
As System.EventArgs)
Handles
Me.LoadIf
Not IsPostBack
Then
Try
If
Me.Request.QueryString("PageName") <>
Nothing
Then
divContent.InnerHtml = PageContent.Get_PageContentData(PageName)
GetControls(PageName)
Dim PageName
As
String = HttpUtility.UrlDecode(Request.QueryString("PageName"))Dim
PageContent As
New PagesElse
divContent.InnerHtml = PageContent.Get_PageContentData(
GetControls(
Dim PageContent
As
New Pages"Home")"Home")End
If
Catch ex
As ExceptionEnd
Try
End
If
End
Sub

EVERYTHING works with this except I'm left with a URL like this: [URL] I would like it to look like this:[URL] But only after I get the page content populate the page! How would I use the Intelligencia.UrlRewriter in this situation?

View 1 Replies

Intelligencia.UrlRewriter - Using Port Other Than 80?

Jan 20, 2011

Does anyone know if it is possible to configure Intelligencia.UrlRewriter to work when accessing a site via a port other than 80?[URL]

View 1 Replies

Web Forms :: Using Intelligencia.UrlRewrite In Code?

Jun 4, 2010

I'm using Intelligencia.UrlRewrite in my code, I'm creating an e-commerce website. On the localhost all works well. This is how it works on the localhost "http://localhost/eish2o/Reverse-Osmosis-with-booster-pump-p116/" When the add to cart button is pressed it changes to "http://localhost/eish2o/Product.aspx?ProductID=116". On the server it changes to, "http://localhost/eish2o/Reverse-Osmosis-with-booster-pump-p116/ProductID=116" and then gives an error The page cannot be found. It is all the same code.

View 5 Replies

Intelligencia.UrlRewriter - Session State

Aug 30, 2010

I have implemented a URL rewriting(extensionless) using Intelligencia.UrlRewriter, it works perfectly on my PC but on the server I am getting the following error Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration. this is my web.config file

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="rewriter" requirePermission="false"
type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
</appSettings>
<system.web>
<!--

Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.

-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
</compilation>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB"/>
<!--

The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user.

-->
<authentication mode="Forms">
<forms loginUrl="/Admin/Login.aspx" name="FormAuthentication"></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<!--

The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="admin/Error.aspx" />
<error statusCode="404" redirect="admin/Error.aspx" />
</customErrors>-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<httpHandlers>
<add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--

The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS.

-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule" />
</modules>
<handlers>
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727"><dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding></runtime>
<rewriter>
<rewrite url="~/([0-9]*)/.*" to="~/custompage.aspx?Id=$1" />
</rewriter>
</configuration>
this is the error's stack trace

[HttpException (0x80004005): Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.]

System.Web.UI.Page.get_Session() +2647836
System.Web.UI.UserControl.get_Session() +17
MmmarvellousWebSite.userControls.WebSite.VerticalMenu.Page_Load(Object sender, EventArgs e) in C:Documents and SettingsGiga GigaprMy DocumentsVisual Studio 2010ProjectsMmmarvellousWebSiteMmmarvellousWebSiteuserControlsWebSiteVerticalMenu.ascx.cs:10
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

View 2 Replies

Not Showing Images After Using Intelligencia URL Rewriter?

Nov 10, 2010

I am using the ajax slideshow which retrives an Image URL from my database table/ It works fine but as soon as I started using the Intelligencia.UrlRewriter, images are not showing. all my code is below.

Code Behind
private static DataTable tblData = new DataTable();
string sName = Request.QueryString["Id"];
<query string param is UserId>
string strSQL = "SELECT [ImageUrl],[FirstName], [LastName] FROM [Images] WHERE ([FootballerId] = @FootballerId)";
SqlConnection conn = new SqlConnection("Data Source=xxxxxxxxxxxxxxxxxx");
conn.Open();
SqlCommand comm = new SqlCommand(strSQL, conn);
comm.Parameters.Add("@FootballerId", SqlDbType.NVarChar).Value = sName;
SqlDataAdapter da = new SqlDataAdapter(comm);
tblData = new DataTable();
da.Fill(tblData);
conn.Close();
// set the initial image
if (tblData.Rows.Count > 0)
{
imgShowImage.ImageUrl = tblData.Rows[0]["ImageUrl"].ToString();
imageLabel1.Text = tblData.Rows[0]["FirstName"].ToString();
}
}
}
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[tblData.Rows.Count];
for (int i = 0; i < tblData.Rows.Count; i++)
{
DataRow dr = tblData.Rows[i];
slides[i] = new AjaxControlToolkit.Slide(
dr["ImageUrl"].ToString(),
dr["FirstName"].ToString(),
dr["LastName"].ToString());
}
return slides;
}
ASPX
<cc1:SlideShowExtender
ID="slideshowextend1"
TargetControlID="imgShowImage"
SlideShowServiceMethod="GetSlides"
AutoPlay="true"
ImageDescriptionLabelID="imageLabel1"
NextButtonID="nextButton"
PlayButtonText="Play"
StopButtonText="Stop"
PreviousButtonID="prevButton"
PlayButtonID="playButton"
Loop="true"
runat="server"
Enabled="True">
</cc1:SlideShowExtender>
<div
class="GridRight">
<asp:Image
ID="imgShowImage"
runat="server"
Height="300px"
ImageAlign="Middle"
/>
</div>
SQL Database Path
/Footballer/sandra//Horses.jpg
Web Config
<rewriter>
<rewrite url="~/Sandra" to="~/CMC/PublicProfile.aspx?Id=dff12c6b-e37c-4591-97ae-a65c27c1de1d"/>
</rewriter>
rewriter>
 
<

View 2 Replies

Intelligencia URL ReWriter Mapping With Regex

Mar 25, 2010

I am using the Intelligencia URL rewriter in my asp.net web application. I use the web.config mappings I'm trying to map the following url:

[URL] To: [URL]

obviously in the above example, xxx is replaced from the "productId" from the "friendly" url. In my web.config, I've got so far:

<rewrite url="~/contract-deals/([w-_]+)/_(.+).aspx" to="~/ProductInfo.aspx?productId=$1"/>

This isn't working however. I need the correct regex to use for my requirements (regex really isn't my strong point!!)

View 1 Replies

AJAX :: Slideshow Images Won't Display / Intelligencia URL Rewriter?

Nov 11, 2010

on another post i mentioned the problem but simplified it here! I am using ajax slideshow extender and getting images from my database
Datbase table file path example

/ ImageURL
/Members/matt//jeanette4.jpg
Code Behind
//here i open sql connection to database and retrieve images based on GUID of UserId which i add as sql parameter.//
// set the initial image
if (tblData.Rows.Count > 0)
{
imgShowImage.ImageUrl =tblData.Rows[0]["ImageUrl"].ToString();
imageLabel1.Text = tblData.Rows[0]["FirstName"].ToString();
}
}
}
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[tblData.Rows.Count];
for (int i = 0; i < tblData.Rows.Count; i++)
{
DataRow dr = tblData.Rows[i];
slides[i] = new AjaxControlToolkit.Slide(
dr["ImageUrl"].ToString(),
dr["FirstName"].ToString(),
dr["LastName"].ToString());
}
return slides;
}
ASPX
Page shows the image
<asp:Image ID="imgShowImage" runat="server"
Height="300px" ImageAlign="Middle" />

This all works fine/ but when i set up the web config with Intelligencia.UrlRewriter code the slideshow images do not appear but the page gets divirted correctly

<rewriter>
<rewrite url="~/Matt" to="~/MembersClub/PublicProfile.aspx?Id=a8742959-aa5e-4830-9fc1-94f1b3d0bc41"/>
</rewriter>

The images are stored in a file directory named "Members".

View 1 Replies

Configuration :: Intelligencia.UrlRewriter Doesn't Works On Hosting Server

Apr 8, 2010

I have made a Website in Vs2008 on XP.Did the Url rewriting for this website by using Intelligencia.UrlRewriter.dll.It works fine locally.in my webconfing i did it like this ->

<rewriter>
<rewrite url="~/MstDealer/(.+).aspx" to="~/MstDealer.aspx?nTableKey=$1"/> <rewriter>

View 9 Replies

Why Doesn't CSS Class Rule Get Used

Jan 28, 2012

I'm just trying to teach myself a bit of CSS and it's pretty straight forward but I am getting something odd.

I built a css file, tried out various rules, all good.

Now I edit the css file. Everything compiles ok but it's still using the rules as they were before I edited them. I've even removed some of them from the css file and they're still being used. I tried removing the reference to the css file and the rules all stop being used (as I'd expect) but when I add the reference back in and the old rules reappear but not the new ones.

I'm guessing there's some 'built' version of the css file and that's what's actually being used. But rebuilding the website isn't causing the built css to refresh itself so my edits aren't being picked up.

edit> forget it, I was hitting f5 not ctrl f5. Just a bit of cuture shock switching from desktop dev.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved