I'm trying to creating a Singleton class like below where MyRepository lies in separate DAL project. It's causing me a circular reference problem because GetMySingleTon() method returns MySingleTon class and needs its access. Same way I need MyRepository access in constructor of MySingleTon class.
public class MySingleTon
{
static…
I'm going to start a new project which is going to be small initially but may grow to big over the years. I'm strongly convinced that I'm going to use ASP.NET MVC with jQuery for UI. I want to go for MySQL as database for some reasons but worried on few things.
I've a good years of experience working on SQL Server databases and on one…
I'm fetching some settings out of the database based on a value passed from a query string. Out of these settings, a few will be used in master page, few on my Page and few in my user control (say login control which is a web user control).
I've an entity class MySetting for it and there is a method in my data access layer which…
I want to be able to do logging in every catch block. Something like this.
catch (Exception exception)
{
Logger.Write(exception);
}
and then the settings in the configuration will pick up the Message and StackTrace property etc using customer listener.
I would like to use Enterprise Library Logging Application Block. I'm…
How do I achieve this:-
When user types character like 'abcd' and then '>'(an invalid character for my application), I want to set the text back to 'abcd'. Better if we can cancel the input itself as we do in winforms application. This should happen when user is typing and not on a click of button.
I want this to be…
I have to tables ProdBiscuit As tb and StockData As sd , I have to get the sum of the quantity in StockData (quantite) with the condition of if (sd.status0 AND sd.prodid = tb.id AND sd.matcuisine = 3)
Here is my sql query
SELECT tb.id, tb.nom, tb.proddate, tb.qty, tb.stockrecno
FROM ProdBiscuit AS tb
JOIN
…
Is there any good solution for ajax enabled Grid with pageing and sorting which only brings the required data from database? I mean it should only bring the data from the database which is to be displayed on the particular page number of the grid.
I looked at this. It looks good. But I just thought if anyone has…
3 weeks of traveling through Asia and Australia - nearly 500 customers and partners in 8 workshops in Tokyo, Seoul, Beijing, Shenzhen, Singapore, Melbourne, Perth and Manila. Great people in all places, many interesting discussions, several new reference prospects for Oracle Database 11g Release 2 - YOU should…
I see some application that uses the settings bundle for their app. Example: http://knol.google.com/k/usman-ismail/iphone-sdk-application-preferences#. I was wondering how to do that without it appearing at the user main settings. I see some application managed to do that. Is there any tutorial around?
Recent Tips and News on Java, Java EE 6, GlassFish & more :
• Fixing remote GlassFish server errors on NetBeans (Igor Cardoso)
• FacesMessage Enhancements (PrimeFaces)
• How to create and look up thread pool resource in GlassFish (javahowto)
• Jersey 1.12 is released (Jakub Podlesak)
• VisualVM…
As I promised in my last post, I feel the need to give you a rundown on all the technical content I am looking forward to checking out at Tech Ed this year. We shall start with the content I know I'll be able to see. This would be some demo stations in the Technical Learning Center. I will DEFINITELY be…
Have an old toy Fisher-Price record player your kids aren’t exactly enamored with? Now, thanks to the miracle of 3D printing, you can create new records for it. Courtesy of Fred Murphy, this Instructables tutorial will guide you through the process of taking music and encoding it in a 3D printer file…
I am not sure how right it is to ask this question, but still here it goes.
I have a full 2D environment, with sprites going around as landscape, characters, etc
And to make it more state-of-art looking, i want to implement a motion blur effect, similar to modern FPS's (i.e. crysis) blur when moving…
I have a twitter account linked to my wordpress site so that each tweet becomes a new post. I was wondering why my SEO was hurting and when I looked at the source I was seeing stuff like this:
Los Conchita & # 8 2 1 7 ; s on Prince has V & # 8 2 3 0 ;
That is what the source lists as the…
If you’re a fan of Katamari Damacy, a quirky and fun Japanese puzzle game made popular on the PlayStation, you’ll love this Javas script hack that turns your browser pane and its contents into a giant HTML-collecting game of Katamari Damacy.
Katamari Damacy, for the unfamiliar, is a addictive…
Here is the table data with the column name as Ships.
+--------------+
Ships |
+--------------+
Duke of north |
---------------+
Prince of Wales|
---------------+
Baltic |
---------------+
In the Outcomes table, transform names of the ships containing more than one space,…
Here is the table data with the column name as Ships.
+--------------+
Ships |
+--------------+
Duke of north |
---------------+
Prince of Wales|
---------------+
Baltic |
---------------+
Replace all characters between the first and the last spaces (excluding these…
hi,
i have an requirment where i have a datagrid on mouse over of that row i need to display.
lets day that datagrid has column name, age, company name. now all these things should be shown in a modal pop up.
on mouse over of a row.
does any one know how to solve the issue. looking…
hi,
how to remove the extra column that comes default in datagrid silverlight 4.0
is there any good links to designing(css) data grid in silverlight 4.0
thanks in advance.
prince
i have an string like this format in my case i need to extract only the characters from string
case
1)12AB
2)SD12
3)1WE4
output
1)AB
2)SD
3)WE
i need to extract only the characters
i am using this expresion in the dervied column in SSIS package
SUBSTRING(MediaIDCode,1,2)
but…