How to use ashx to call a row in databasehttp://forums.asp.net/t/1027150.aspx/1?How+to+use+ashx+to+call+a+row+in+databaseMon, 18 Sep 2006 07:13:44 -040010271501401983http://forums.asp.net/p/1027150/1401983.aspx/1?How+to+use+ashx+to+call+a+row+in+databaseHow to use ashx to call a row in database <p>Ok...I don't even know if this works so sorry if this is not even possible since it looks like everything is about image calling in database...and everything i read is in vb</p> <p>First off..finally figured out the right section to put this is as I read about it is a httphandler...</p> <p>&nbsp;Ok..so I have created 2 tables that use inner join based on primary key</p> <p>First table contains mostly text and links to images about item</p> <p>second contains links only with about 30 rows per column which houses music links to wma files</p> <p>page comes out on a query string..</p> <p>basically a aspx&nbsp;page contains a list&nbsp;of all artists</p> <p>then like on artist gives you art.aspx=1 which is call to create a dynamic page for all the stuff in database</p> <p>&nbsp;That was simple enough and for me..that is a mircle since I just started reading on asp.net about 2 weeks ago</p> <p>&nbsp;So&nbsp;I looked at some starter kits about ashx but i can't get the idea of how to use it..it's not as easy as looking how a database is called so i'm asking for help again..and thanks for anyone to help</p> <p>&nbsp;I have a setup of table2 of all links for wma in a folder as stated above which plays in a wmp embedded on aspx page and by onclick javascrpt to change media played in wmp for wma..</p> <p>Everything was good and cool and I thought ok..I don't need to really hide the url or anything like that..but then I started looking in logs and noticed alot of people hotlinking, downloading songs with going to webpage and even saw on someones site selling my friends music as a a registered distrubutor which they are not after I noticed that url having alot of links to our music...so we took down the site until we can fix this and since we poor we trying to do it ourselve</p> <p>what do i want...I want to be able to call the link in database by calling it through a ashx page since i saw it does the same with the personal starter kit for images or have all the links in the ashx page and have it retried through that way...but I can't make heads or tails of how to do it for a link instead of an image..I look at a ashx page it is just confusing....</p> <p>&nbsp;all the information on websites either say it easy and show two lines of code whihc for me means nothing or how to dynamiclly show images from database which even looks completely different from teh starter kit..i saw this thread <a href="/thread/1124299.aspx">http://forums.asp.net/thread/1124299.aspx</a>&nbsp;but does not give details or examples on how to...by the way..everything i made for this site i learned through this forum so i'm sure this thread is somewhere but i just can't find it..</p> <p>so generic detailed examples would be of great help..o I use table adapters...I don't know if that is harder to use or not...</p> <p>ok thanks for helping or reading</p> 2006-09-18T07:13:44-04:00