Click here to Skip to main content
15,168,235 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 9:48
Membersamflex4-Dec-17 9:48 
GeneralRe: How to disable gridview by checkbox? Pin
jkirkerx4-Dec-17 11:11
professionaljkirkerx4-Dec-17 11:11 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 11:32
Membersamflex4-Dec-17 11:32 
QuestionHow can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 8:31
MemberDavid Mujica28-Nov-17 8:31 
AnswerRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
Richard Deeming28-Nov-17 9:36
mveRichard Deeming28-Nov-17 9:36 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 9:39
MemberDavid Mujica28-Nov-17 9:39 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
Richard Deeming28-Nov-17 9:48
mveRichard Deeming28-Nov-17 9:48 
QuestionIIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Mou_kol23-Nov-17 1:53
MemberMou_kol23-Nov-17 1:53 
i have developed a web site with asp.net webform. i hosted the site my pc local iis. when i browser the site the url appear in my browser address bar looks like http://localhost:8800/gb/default.aspx

now my default.aspx page has many hyperlinks and those links look likes

http://localhost:53741/
http://localhost:53741/About.aspx
http://localhost:53741/Contact.aspx

now i want to attach country code taken from browser address bar url with all the links in default.aspx page. so after attaching the new url will be looking like

http://localhost:53741/gb
http://localhost:53741/gb/About.aspx
http://localhost:53741/gb/Contact.aspx
so i test a outbound rule to attach country code with all the links in my default.aspx page.

my outbound rule look like....a screen shot attached.

screen shot 1

enter image description here[^]

screen shot 2

enter image description here
[^]

screen shot 3

enter image description here[^]

after implementing my outbound rule when i am browsing my site then getting error due to outbound rule. i am weak in iis rewrite rule. may some where i made mistake but could not figure out my mistake. so please some one help me to fix this issue.

again i am telling what i am trying to do. when i am browsing my site then my address bar url look like http://localhost:8800/gb/default.aspx in this url there is a country code that is gb.

the country code i need to take from there with outbound rule and attach that country code with all the hyperlinks in default.aspx page. so my all hyperlinks in default.aspx page will be looking like below example.

http://localhost:53741/gb
http://localhost:53741/gb/About.aspx
http://localhost:53741/gb/Contact.aspx
this iis rewrite rule i tried

XML
<outboundRules>
    <rule name="add outbound rule" preCondition="Ishtml" enabled="true" stopProcessing="true">
        <match filterByTags="A" pattern="([a-z]{2}/(.*))" negate="true" />
        <action type="Rewrite" value="gb/{R:2}" />
    </rule>
    <preConditions>
        <preCondition name="Ishtml">
            <add input="{RESPONSE_CONTENT_TYPE}" pattern="text/html" />
        </preCondition>
    </preConditions>
</outboundRules>


after applying the above rule i am getting error and error as follows

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The content in the application file is not valid.
if still my objective not clear to anyone then please ask me. if anyone understand what i am trying to do then please help me to achieve my goal. thanks
Rant[REPOST] IIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Richard Deeming23-Nov-17 2:01
mveRichard Deeming23-Nov-17 2:01 
QuestionLooking for MCSD Web Applications sample test Q/A Pin
Mou_kol22-Nov-17 23:12
MemberMou_kol22-Nov-17 23:12 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
Richard MacCutchan22-Nov-17 23:55
mveRichard MacCutchan22-Nov-17 23:55 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
F-ES Sitecore23-Nov-17 2:18
mveF-ES Sitecore23-Nov-17 2:18 
QuestionProblem with wrap text in a column in gridview and reportviewer Pin
Member 1351227419-Nov-17 15:33
MemberMember 1351227419-Nov-17 15:33 
AnswerRe: Problem with wrap text in a column in gridview and reportviewer Pin
Richard MacCutchan19-Nov-17 22:54
mveRichard MacCutchan19-Nov-17 22:54 
QuestionDataTable in .Net Core looks plain Pin
sn_lorun19-Nov-17 15:21
Membersn_lorun19-Nov-17 15:21 
AnswerRe: DataTable in .Net Core looks plain Pin
Richard Deeming20-Nov-17 3:14
mveRichard Deeming20-Nov-17 3:14 
GeneralRe: DataTable in .Net Core looks plain Pin
sn_lorun20-Nov-17 17:03
Membersn_lorun20-Nov-17 17:03 
QuestionHow to add country code or culture in url Pin
Mou_kol17-Nov-17 10:31
MemberMou_kol17-Nov-17 10:31 
QuestionLightbox questions based on a decision tree showed and updated in background Pin
Member 800771316-Nov-17 4:07
MemberMember 800771316-Nov-17 4:07 
AnswerRe: Lightbox questions based on a decision tree showed and updated in background Pin
Richard MacCutchan16-Nov-17 4:17
mveRichard MacCutchan16-Nov-17 4:17 
GeneralRe: Lightbox questions based on a decision tree showed and updated in background Pin
Member 800771316-Nov-17 4:55
MemberMember 800771316-Nov-17 4:55 
QuestionWebBrowser Control Pin
Michael Clinton8-Nov-17 8:15
MemberMichael Clinton8-Nov-17 8:15 
AnswerRe: WebBrowser Control Pin
jkirkerx8-Nov-17 10:24
professionaljkirkerx8-Nov-17 10:24 
AnswerRe: WebBrowser Control Pin
Richard Deeming9-Nov-17 2:41
mveRichard Deeming9-Nov-17 2:41 
QuestionCode tag Pin
Otekpo Emmanuel5-Nov-17 13:05
MemberOtekpo Emmanuel5-Nov-17 13:05 

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.