User control creation problem

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/29/2016 8:35:48 AM
Gravatar
Total Posts 28

User control creation problem

Hi

I am attempting to create my first User Control. I have created an .aspx file (with the code in a script block on the page) to make sure I get the logic right. The code includes a button that calls a function to export a gridview to a csv file. This builds and runs OK. I have installed the HelloMojoUserContol sample and that also runs OK.

However if I copy and paste the code and markup from the .aspx file into the Hello World sample I get a problem. The page builds OK, will display OK on a mojo page but the function doesn't fire, so I get no output.

There are no errors logged in the system log, there are no errors in the browser. The only error I can find is that debug reports:  "A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll" Google searches haven't offered any solutions that make any sense. 

Any suggestions as to where to go next would gratefully received!

Andy

 

 

 

 

1/30/2016 5:53:05 AM
Gravatar
Total Posts 28

Re: User control creation problem

Ok I've discovered the problem. It is a clash with an update panel as described here:

http://stackoverflow.com/questions/19645651/why-wont-response-write-export-a-csv-file-to-the-browser

 

Regards

Andy

 

You must sign in to post in the forums. This thread is closed to new posts.