Click here to Skip to main content
15,868,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionScrolling to a specific row in a DataGridView in a Web Form (not a Windows Form) using C# Pin
Steve Taylor (Glasgow)27-Nov-11 23:59
Steve Taylor (Glasgow)27-Nov-11 23:59 
AnswerRe: Scrolling to a specific row in a DataGridView in a Web Form (not a Windows Form) using C# Pin
StianSandberg28-Nov-11 2:39
StianSandberg28-Nov-11 2:39 
QuestionSyntax Question [SOLVED] Pin
Richard Andrew x6427-Nov-11 8:27
professionalRichard Andrew x6427-Nov-11 8:27 
AnswerRe: Syntax Question Pin
Richard Andrew x6427-Nov-11 10:07
professionalRichard Andrew x6427-Nov-11 10:07 
General2010 validation control Pin
dcof26-Nov-11 11:47
dcof26-Nov-11 11:47 
GeneralRe: 2010 validation control Pin
Not Active26-Nov-11 12:25
mentorNot Active26-Nov-11 12:25 
GeneralRe: 2010 validation control Pin
dcof27-Nov-11 13:15
dcof27-Nov-11 13:15 
QuestionEmbedded image in portable area not showing on deployment Pin
AumSingh25-Nov-11 6:05
professionalAumSingh25-Nov-11 6:05 
I am using MVC 2 on VS2010 and IIS 7. I created a portable area with some images embedded into it. I tried to create routing rule two ways at the time of portable area registeration. Following are the two ways I tried.

Method 1
C#
context.MapRoute("ResourceRoute", "login/resource/{resourceName}",
            new { controller = "EmbeddedResource", action = "Index" },
            new string[] { "MvcContrib.PortableAreas" });

            context.MapRoute(
                "login",
                "login/{controller}/{action}",
                new { controller = "login", action = "index" });
            
RegisterAreaEmbeddedResources();

In this case I tried to access the image using Url.Resource()

Method 2
C#
context.MapRoute(
        "login",
        "login/{controller}/{action}",
        new { controller = "login", action = "index" });
            
RegisterDefaultRoutes(context);
RegisterAreaEmbeddedResources();

In this case I tried to access the image using Url.Content()

Following are scenarios where things are working fine.

1. When I run the application on my local development server (Ctrl + F5).
2. When run application after publishing it on my localhost.
3. When I run the application on different development server (Ctrl + F5), say on my friend's box.

But it does not render image (right now I have only images as static resource. No CSS or JS) if I publish on someone else's system, say localhost on my friend's box. Everything else is working fine except for the image rendering.

I have tried all possible means to get it rendered in the situation it is failing but all in vain. I need some help here. Anyone please?

Thank you in advance!
AnswerRe: Embedded image in portable area not showing on deployment Pin
jkirkerx25-Nov-11 19:25
professionaljkirkerx25-Nov-11 19:25 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh25-Nov-11 22:07
professionalAumSingh25-Nov-11 22:07 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx26-Nov-11 6:48
professionaljkirkerx26-Nov-11 6:48 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh26-Nov-11 7:40
professionalAumSingh26-Nov-11 7:40 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx26-Nov-11 12:33
professionaljkirkerx26-Nov-11 12:33 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh26-Nov-11 17:13
professionalAumSingh26-Nov-11 17:13 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx26-Nov-11 19:35
professionaljkirkerx26-Nov-11 19:35 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh27-Nov-11 6:05
professionalAumSingh27-Nov-11 6:05 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx27-Nov-11 8:51
professionaljkirkerx27-Nov-11 8:51 
QuestionAJAX ENABLED WEBSITE IN VS 2010 Pin
Member 322226425-Nov-11 2:03
Member 322226425-Nov-11 2:03 
AnswerRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
Not Active25-Nov-11 3:15
mentorNot Active25-Nov-11 3:15 
AnswerRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
jkirkerx25-Nov-11 19:20
professionaljkirkerx25-Nov-11 19:20 
GeneralRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
Member 322226426-Nov-11 0:40
Member 322226426-Nov-11 0:40 
GeneralRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
jkirkerx26-Nov-11 7:16
professionaljkirkerx26-Nov-11 7:16 
GeneralRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
Member 322226428-Nov-11 0:05
Member 322226428-Nov-11 0:05 
QuestionWeb Service input validation in WSDL Pin
umairmoghal23-Nov-11 21:53
umairmoghal23-Nov-11 21:53 
AnswerRe: Web Service input validation in WSDL Pin
jkirkerx24-Nov-11 8:56
professionaljkirkerx24-Nov-11 8:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.