Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.02 questions in one!2 questions in one!
Previous
 
Next
New Post
4/14/2006 8:01 PM
 

Hi :)

Yes you've guessed it.. another new just started so lost junior developer :D

Its so fun working with modules.. and i am developing one right now.. and had a problem if you (with many many thanks) would help me solving!

1- I have an (Item) page -tab if u like-.. that has two child pages (Books.. and Records)<< they represent the Item's type

These are their links:

http://127.0.0.1/LG/Items/Books/tabid/60/Default.aspx

http://127.0.0.1/LG/Items/Records/tabid/61/Default.aspx

 What i want to do.. is get the Item's type as a query string...! So i can determin what page is the client viewing... then i'd do other things accordingly..

Should i get the full URL path and try to figure how to extract the words from it?

Or request.query string? althoutgh i dont think it'll work! cause i cant put ( ?Type= )  in the page's name

2- Say I have a database of books, Whats the easiest way to enable Admin to upload a book's pic in the Database?  Do you recommend that i store file names of pics in the Database? or the pic itself..? I am using Deatils View.. and i am enabeling the Admin to Add,Delete, and Update records.. thus their pics as well!!

any advice would be so great..:)

Thank you so much in advance..

 

 

 
New Post
4/16/2006 10:48 AM
 

1.)  With the example Url you gave:

http://127.0.0.1/LG/Items/Records/tabid/61/Default.aspx

if you use Request.Querystring("Items")  this will return "Records".  That should give you the type you are looking for.

2.)  It is not recommended that you store the image in the database.  You will have better performance and it will keep you database from becoming bloated.  I would recommend creating a sub folder under the dnn file system  for your module to store images.  It will be the easiest to maintain. 

 

Hope this helps.


 
New Post
4/24/2006 1:48 AM
 

dnnspired thank you very much for responding and sorry for the late reply..

actually the ( request.querystring("Items") ) didnt work for me.. when i used it i noticed that it returrned the TapId No. (see link contains tabid).. so what i ended up doing was:

get the RawURL of current page and then serach in it for the word (books).. and then do actions accordingly :)

but thank u for ur respond :))

as for DB yes.. its true.. better store names of image files instead << trying to do that with URL DNN control (posted another q about that ;)

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.02 questions in one!2 questions in one!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out