Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  2 questions in one!
Previous Previous
 
Next Next
New Post 4/14/2006 5:01 PM
User is offline yet alive
4 posts
10th Ranked


2 questions in one! 

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 7:48 AM
User is offline Dave Dyer
69 posts
www.DNNSpired.com
10th Ranked






Re: 2 questions in one! 

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/23/2006 10:48 PM
User is offline yet alive
4 posts
10th Ranked


Re: 2 questions in one! 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  2 questions in one!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP