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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreDispay image from the Image type image from the databaseDispay image from the Image type image from the database
Previous
 
Next
New Post
9/18/2009 12:41 AM
 

I added the a token as you mentioned.But it is not working.Can you tell mehow can I add a token exactly.Please help me to solve me this.I am in a trouble with my application development.Please reply to this.

tnx.

 
New Post
9/18/2009 8:03 AM
 

Hi Prasad,

If you can't find the WebControls project is probably because you HAVE NOT followed my advices from this post to install the Store with sources. I can't help if you dont do what is required.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
9/21/2009 2:28 AM
 

Hello Gilles,

I have done it like in your installation post and I found what you are mentioning.Now it is ok.But still my problem is remaining. I want to grab my image file from the database.Not from a folder.I have mention this in 2 parts.

1) Anyway First I try to show a label in the product detail view like this.Added a string to the \desktopmodules\Store\App_LocalResources\ProductDetail.ascx.Host.resx file like this.

test.Text    testing my self   

Then added my code to the \desktopmodules\Store\ProductDetails.ascx.cs file like this.

private Control processToken(string tokenName)
        {

.
.

;

.                  

case "IMAGEDB":
                    Label lbltest = new Label();
                    lbltest.Text = Localization.GetString("test.Text", this.LocalResourceFile);
                    lbltest.CssClass = "StoreCategoryName";
                    return lbltest;

 

Then I added this [IMAGEDB] token to the template.

Output is the IMAGEDB .Not my test string. Please show me what is the issue with this of mine.

2) As I told you I want to show my Image as a token.This is my working code in another normal ASP.NET C# application.Can you help me to add this in to the switch-case statement.

private void Page_Load(object sender, System.EventArgs e)
        {
            //get the image id from the url
            string ImageId = Request.QueryString["img"];

            //build our query statement
            string sqlText = "SELECT img_data, img_contenttype FROM Image WHERE img_pk = " + ImageId;

            SqlConnection connection = new SqlConnection(ConfigurationSettings.AppSettings["DSN"].ToString());
            SqlCommand command = new SqlCommand(sqlText, connection);

            //open the database and get a datareader
            connection.Open();
            SqlDataReader dr = command.ExecuteReader();
            if (dr.Read()) //yup we found our image
            {
                Response.ContentType = dr["img_contenttype"].ToString();
                Response.BinaryWrite((byte[])dr["img_data"]);
            }
            connection.Close();

        }

Please give me the solution for this.Thank you very much for your support.Waiting for your reply.

 
New Post
9/22/2009 7:22 AM
 

Hi Prasad,

Did you compiled the solution after you apply your change? Verify if the DotNetNuke.Modules.Store.*.dll has been updated in the bin folder of your web site. Tell me the file name of the template you use.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
9/23/2009 8:45 AM
 

I did not know about the WAP model and I followed this method to do it.

http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2196/Setup-a-VS-project-to-create-or-modify-a-DNN-module-the-Store-team-method.aspx

But I do not know how it can do it for Store module. Normally I rebuild the solution after a change. should I do more than that ? How can find weather it has updated the .dll files.

I try to change the productdetails.aspx.cs file and productdetail.htm template.

Please advice me.I am really tired with this now.

tnx.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreDispay image from the Image type image from the databaseDispay image from the Image type image from the database


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