Quick Question on Error Message
Last Post 09/06/2014 11:33 AM by Joseph Craig. 8 Replies.
Author Messages
Chip
Nuke Active Member
Nuke Active Member
Posts:29


--
08/18/2014 11:06 AM  
Hello,

I have a quick question about an error message I am getting on my DNN 7.x site that is running DataSprings Dynamic Registration 5.0. If you try to register with an incomplete form, in addition to my error messages I set up with each field another error message appears in a yellow box that says "Your registration is not complete, please review the field validation and check and verify your username."

I want to at least modify, if not delete, this entire message. I saw from an old post that in a previous version of DNN I could go to Languages in Admin then select Language Editor. Then I can find "invalidform.txt" and either modify or delete the message.

I tried going to Languages Editor in my DNN and could not find this entry. There were a ton of other options. Would someone tell me exactly where I would go to find and modify this error message in the latest DNN? Thanks!!
Joseph Craig
DNN MVP
Posts:11667


--
08/19/2014 9:17 PM  
Probably the quickest answer will come from Data Springs. My experience has been that they are pretty good about answering questions.

If it's a Data Springs error message, it will be in a .resx file in the module's directory in Desktop Modules. You should be able to open/edit it using the Language Editor. You may also be able to turn it off completely using a configuration setting in the module.

Joe Craig, Patapsco Research Group
Complete DNN Support
arash samandar
Nuke Newbie
Nuke Newbie
Posts:7


--
09/05/2014 10:06 AM  
hi , i have a question that i need answer to very quickly , sorry to post here . please help
i'm developing a module , i have used a asp:fileupload , i'm getting pictures actually , and i save them as varbinary , from here everything works , my question is when i want to see that images that have stored on my database , i go and use and ASHX file . that has a Ihttphandler .
i also have an I KNOW MY MASSAGE IS A LITTLE MESSY , BUT PLEASE GIVE ME A NOTE , THANK YOU SOO MUCH GUYS , I'M STUCK
arash samandar
Nuke Newbie
Nuke Newbie
Posts:7


--
09/05/2014 10:11 AM  
i managed to get it work on local environment of dnn , but on server !! no image is shown ?
i did not use dataprovider and an stored procedure to get the image , ( because i can't access my abstract functions that i defined and i cant use those files , so i just got the connection string from dataprovider.instance().ConnectionString . and used it to get the data . in local it is successful , you know i am new in dnn module development , and i really don't know how to work with ashx files , but i managed to make it work and everything works great in local .

sorry to bother you . or sorry if my massage is unclear or not relevent to this disscution
Joseph Craig
DNN MVP
Posts:11667


--
09/05/2014 1:50 PM  
I need some additional details, and I'd also suggest that you try asking this question in the Developer forums at DNNSoftware.com. You'll find more developers there.

For starters, though, which version of DNN are you using? Also, are you storing the images in the database? How? Are you using the DNN folder provider for this, or your own?

Joe Craig, Patapsco Research Group
Complete DNN Support
arash samandar
Nuke Newbie
Nuke Newbie
Posts:7


--
09/05/2014 5:28 PM  
thank you for your answer mr joseph , i use versian 6.2 the same versian as local versian that works , i store my image in binary format in ms sql database , storing image is ok . for both local and website , the problem is i can't find any good method , if you tell me how to store and retrieve images when developing a module , maybe i don't need at all to use ashx files , the reason i sue ashx file is , because i store image as binary ( that's what they want from me to be stored as binary in an ms sql server ) . in local i do that very good , and then in solution explorer of visual studio 2010 i go and add item of time web handler ( ashx ) . two type of files come , one handler.ashx and handler.ashx.cs . namespace is simply ( Resume )>>this is the name of my project . ( so i don't add any dotnetnuke.modules.Resume ) . because that is not needed i think so . then in the handler.ashx file i have this code to read data ( notice it works in local ) :
public void ProcessRequest(HttpContext context)
        {
SqlConnection conn = new SqlConnection (DotNetNuke.Data.DataProvider.Instance().ConnectionString);

                SqlCommand selcmd = new SqlCommand("select data from FaavanResume1_pic where pid=" + context.Request.QueryString["imgID"], conn);

                conn.Open();

                rdr = selcmd.ExecuteReader();
            

            


            while (rdr.Read())

                {

                    context.Response.ContentType = "image/jpg";

                    context.Response.BinaryWrite((byte[])rdr["data"]);

                }

            rdr.Close();

            conn.Close();

        } 


and in the view.ascx i have this asp:image that sends the imgID :
<asp:Image ID="imgPreview" runat="server" ImageUrl="AHandler.ashx?imgID=2" />
( of course i change the number after = sign to get different images ( i just want to make it simple here ) . so here is how i read images .
i don't know why ? why ? it does not work in online website but works in local .
one more thing ( i am not so familier how to use an ashx , but however i managed to use it and it worked on local ) .
HERE MAYBE IS IMPORTANT : IMPORTANT : when i build my project and get my install package , i noticed that the file Ahandler.ashx is not between files , while Ahandler.ashx.cs is . so i put Ahandler.ashx manually in the source package ( of install package i get when i compile ) . and then i install it in website . but when image is uploaded . no image is shown ( the address for my image in both local and online website is =>> http://www.favangroup.com/DesktopModules/FaavanResume1/AHandler.ashx?imgID=6 ( this url for example was for website and exactly the same though the first is local and they differ in the beggining . but the end from \DesktopModule........ is the same . so why in online website the image is not shown and when i right click and press view image . in address bar i see a good url that i saw in my local machin . but no image and an error appears wich tells to turn on error details .
arash samandar
Nuke Newbie
Nuke Newbie
Posts:7


--
09/05/2014 5:34 PM  
Sorry i Know my massage was long , { do you know another or better way , to get images that are stored as binary in ms sql database and show them ? whith out using ashx file ? or do you know a place i learn how to use this kind of files in my module ? ( i'm a biginner actually ) . ( i know the images are stored , but i do not know why they cant be shown in a live website , but they are good in my local machin . both versions are the same in local and live . if you know what is wrong with my manner . or is there a better way . please let me know . I know I should post this question in another forum maybe . but please help me . :\
arash samandar
Nuke Newbie
Nuke Newbie
Posts:7


--
09/06/2014 10:56 AM  
his joseph , why don't you answer me any more ? is there a problem with my question ? do you know anywhere i could go and look , how to retrieve binary images from a ms sql database ( and show it in dnn 6.2 ) ? could you tell me what are ashx files and how to use them better ? could you even tell me where exactly i should ask such of this question , ( and no i i am not using dnn folder provider ) . I just used very simple codes of asp . plus a bunch of dnn codes ( a little of dnn codes )
Joseph Craig
DNN MVP
Posts:11667


--
09/06/2014 11:33 AM  
Arash,

I thought I had answered your questions. I got behing a little this week, but tried to catch up yesterday.

Why can you use the DNN standard file manager, and the DNN methods to store and utilize images?

Joe Craig, Patapsco Research Group
Complete DNN Support


---