Click here to Skip to main content
       

.NET Framework

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: framework 2.0 and win98protectorPete O'Hanlon4 Dec '12 - 2:11 
C, C++, VB, .NET (pre SP1) or one of many other languages.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: framework 2.0 and win98memberEddy Vluggen4 Dec '12 - 2:56 
caradri wrote:
what people use to programm at 98?

Dunno, I do not know people who still support the platform. It's unreliable (pre-NT) and no new security-updates are provided by Microsoft.
 
Why Win98? Wouldn't Ubuntu with Mono be a better choice? Means you could use anything in .NET 4.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

Questionjquery.datePicker not workingmemberxnaLearner3 Dec '12 - 6:27 
Hey guys,
Im fairly new to this so please bear with...
I'm using the tutorial @ http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html
to allow the user to select dates from a calendar
 
however I can't seem to get it working could someone please advise if I am going about this the wrong way...
 
'jquery.datePicker.js & datePicker.css' can be downloaded at near the top of the page on...
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html
 
1)copy the code in the '•jquery.datePicker.js ' inside my <script> tags in my view
2) copy the datePicker.css code into my css file
3) paste the following into the top of my view page:
<!-- jQuery -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
 
<!-- required plugins -->
<script type="text/javascript" src="scripts/date.js"></script>
<!--[if IE]><script type="text/javascript" src="scripts/jquery.bgiframe.js"></script><![endif]-->
 
<!-- jquery.datePicker.js -->
<script type="text/javascript" src="scripts/jquery.datePicker.js"></script>
 

This does not work...iv tried doing the first demo and replacting the .js data inside my <script>tags wit $(function()
{
    $('.date-pick').datePicker();
});
 
and then adding the following to .css
 
/* located in demo.css and creates a little calendar icon
 * instead of a text link for "Choose date"
 */
a.dp-choose-date {
    float: left;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 5px 3px 0;
    display: block;
    text-indent: -2000px;
    overflow: hidden;
    background: url(calendar.png) no-repeat;
}
a.dp-choose-date.dp-disabled {
    background-position: 0 -20px;
    cursor: default;
}
/* makes the input field shorter once the date picker code
 * has run (to allow space for the calendar icon
 */
input.dp-applied {
    width: 140px;
    float: left;
}
 

could someone please tell me what I am doing wrong?
 
Thanks
J

AnswerRe: jquery.datePicker not working [modified]protectorPete O'Hanlon3 Dec '12 - 6:38 
You do realise that this is the .NET forum and not the JavaScript forum don't you?

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier


modified 3 Dec '12 - 13:24.

QuestionOOPS concepts in c#member95003940022 Dec '12 - 17:09 
I want to allow the class to create only one object instance.
I want to make visible the class ouside the assembly but restrict to only one assembly.
What needs to do?
Please suggest me.
AnswerRe: OOPS concepts in c#mvpRichard MacCutchan2 Dec '12 - 21:43 
Take a look at the Singleton pattern[^].
One of these days I'm going to think of a really clever signature.

AnswerRe: OOPS concepts in c#memberEddy Vluggen3 Dec '12 - 1:00 
What does this have to do with OOPS concepts? What you are describing is such a basic request that it's part of the framework; we call them "static classes".
public static class MySingleObjectClass
{
  public static void PerformSomeAction()
  { 
  }
}
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

GeneralRe: OOPS concepts in c#member95003940023 Dec '12 - 1:49 
If we create static class , we cannot able to create instance. but ,my query is that instance should be created only one time and restrict to more than one.
GeneralRe: OOPS concepts in c#memberEddy Vluggen3 Dec '12 - 3:17 
9500394002 wrote:
If we create static class , we cannot able to create instance.

There's one instance by definition, so no use in creating it.
 
9500394002 wrote:
but ,my query is that instance should be created only one time and restrict to more than one.

That's exactly what the static class was intended for.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

AnswerRe: OOPS concepts in c#protectorPete O'Hanlon3 Dec '12 - 1:58 
If you want to restrict the class so that it can only be seen by one particular external assembly, you use internal to limit the scope to the current assembly, and then you implement InternalsVisibleTo[^] to link this to the specific assembly.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 24 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid