Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

replace error

$
0
0

Hi in sample.aspx, I have the below code,

I want to replace blank with "-" and replace with / to "-"

  <% dim sp as string%>
  <% sp = Replace(Eval("Name"), " ", "-")%>
   <% sp = Replace(sp, "/", "-")%>

       <a href='/store/<%=sp %>/<%# Eval("Id") %>'>  

Error is on the aove statement the erors says BC30451: 'sp' is not declared. It may be inaccessible due to its protection level.

Thanks


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>