Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

Problem with MapPageRoute..

$
0
0
Hi,
 
Why I am getting object reference not set to an instance of an object with the following MapPageRoute?
 
I guess it's because of {ADDRESS} at the beginning without a name like Page/{ADDRESS{ but how can I solve it. I already sent all the three lines at the end of the MapPageRoute but still having the same problem, keep in mind the problem occuers only in the PostComment.aspx
 

<pre lang="cs">routes.MapPageRoute(&quot;volow_member_channel_post&quot;, &quot;{ADDRESS}/{GUID}&quot;, &quot;~/Post.aspx&quot;);
routes.MapPageRoute(&quot;volow_channel_home&quot;, &quot;{ADDRESS}&quot;, &quot;~/ChannelHome.aspx&quot;);
routes.MapPageRoute(&quot;volow_member_post_comment&quot;, &quot;{ADDRESS}/Comment/{GUID}&quot;, &quot;~/PostComment.aspx&quot;);</pre>

 
Technology News @ www.JassimRahma.com

Viewing all articles
Browse latest Browse all 3938

Latest Images

Trending Articles



Latest Images

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