|
pashitech wrote: Please suggest me for some sites or forums where I can get interview questions and answers.
There are hundreds of them containing millions of questions. If you can memorise all of these then I would recommend that you actually learn your subject area instead as it would be much more beneficial to you than learning to parrot an answer.
pashitech wrote: Actually I searched in google, but couldn't get clear cut answer.
There is no clear cut answer. Every interview is different and depends on what the company is looking for.
pashitech wrote: I have few questions
Difference between Debug and Release?
What is Doc Switch?
Can you brief me about Generics and Partial Classes.
What are static classes?
what are indexers in C#?
What does immutable mean?explain?
how to create a singleton class(A class to which only one instance can be created throughout the application)
And finally Please tell me what is Type Safety (in C#)
You should know most of these already if you are going for a job as a software developer. If you come to us and pull the wool over our eyes in the interview and we hire you, you'll be booted out the door quick enough when we realise you were faking it.
Do NOT try and hoodwink the interviewer. You will end up with a poor reputation.
|
|
|
|
|
Colin Angus Mackay wrote: Do NOT try and hoodwink the interviewer
Just kicked somebody out of an interview because they tried to bull me. Asked a simple question about interface inheritance and they went off onto a long waffling answer to try and hide the fact that they didn't know. I'd have been more impressed if they actually came out and said they didn't know.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
You should come down to DDD6[^] in November - I'm doing a session on recruitment (assuming it gets voted in)
|
|
|
|
|
If I can make some time in the schedule, I'll try to get down.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
The Ibis has a good weekend offer on. £39 per night (Check in Friday, Check out Sunday). The Novotel next door is £59 per night B&B (Fri-Sun). I stayed there (Novotel) last weekend for SQL Bits.
|
|
|
|
|
Colin Angus Mackay wrote: Novotel next door is £59 per night B&B (Fri-Sun). I stayed there (Novotel) last weekend for SQL Bits.
What's it like? The last Novotel I stayed in was noisy to say the least.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: What's it like? The last Novotel I stayed in was noisy to say the least.
I suppose it depends on the other guests. I stayed in a hotel once for 6 months. Sometimes I was noisy, sometimes not.
|
|
|
|
|
I need to change the color of the horizontal and vertical scroll bars in a DatagridView. Can anyone help me?
Thanks
|
|
|
|
|
Hey how can i see who are all online and within how much minimum time my question will be answered..this is the first time i logged into the site...asking this out of my curiosity
|
|
|
|
|
Skeliton wrote: how can i see who are all online
You can't. Code Project considers this to be a privacy issue and doesn't show you which members are currently online.
Skeliton wrote: within how much minimum time my question will be answered
There is no minimum time. Everyone here answers questions on a volunteer basis. Some questions may get answered fairly quickly while others might not get answered at all.
Skeliton wrote: this is the first time i logged into the site
Welcome to the site. For your own benefit, and to help make sure questions get answered, you might want to read the following Forum Guidelines.
|
|
|
|
|
I have 3 ImageButton controls have ID : IB1, IB2, IB3.I use Source object for them :
public void doImage(object Source, ImageClickEventArgs E)<br />
{<br />
switch (Source.ID)<br />
{<br />
case "IB1":<br />
Response.Redirect("ibtest.aspx");<br />
break;<br />
case "IB2":<br />
Response.Redirect("another.aspx");<br />
break;<br />
case "IB3":<br />
Response.Redirect("third.aspx");<br />
break;<br />
}<br />
<br />
}
This code is noticed that wrong : 'object' does not contain a definition for 'ID'.But I don't know how to repair.Someone help me, please !
nothing
|
|
|
|
|
Since everything is an ImageButton, you need to cast source back to an ImageButton:
public void doImage(object source, ImageClickEventArgs e)
{
ImageButton ib = source as ImageButton;
if (ib != null)
{
switch (Source.ID)
{
case "IB1":
Response.Redirect("ibtest.aspx");
break;
case "IB2":
Response.Redirect("another.aspx");
break;
case "IB3":
Response.Redirect("third.aspx");
break;
}
}
}
public void doImage(object source, ImageClickEventArgs e)
{
ImageButton ib = source as ImageButton;
if (ib != null)
{
switch (ib.ID)
{
case "IB1":
Response.Redirect("ibtest.aspx");
break;
case "IB2":
Response.Redirect("another.aspx");
break;
case "IB3":
Response.Redirect("third.aspx");
break;
}
}
} [modification at 5:37 Tuesday 9th October, 2007] As Martin# pointed out, I forgot to change the switch to use the casted source .[/modification]
|
|
|
|
|
My code in C#.I haven't solved my problem yet.It's still wrong.
nothing
|
|
|
|
|
Does the code not compile? Does it not run properly? Just saying "it's still wrong" doesn't provide a lot of information to work with. Have you stepped through the code in a debugger and looked at the value of sender ?
|
|
|
|
|
Debugger. Step through. What is this strange language you speak? Don't you know that we are here to do peoples bidding and just give them the answer to their problems without them having to tell us what they actually are? Apparently the magic elves aren't doing their jobs properly.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: Apparently the magic elves aren't doing their jobs properly.
I guess they were a little distracted...or tired from jumping through hoops so many times.
|
|
|
|
|
When I compile , It's show the same mistake is : 'object' does not contain a definition for 'ID'.
nothing
|
|
|
|
|
noone can help me ?
nothing
|
|
|
|
|
Did you actually change your code at all?
Specifically, this line was the important one:
ImageButton ib = source as ImageButton;
|
|
|
|
|
Sorry about that...my mistake. The code should have been:
public void doImage(object source, ImageClickEventArgs e)
{
ImageButton ib = source as ImageButton;
if (ib != null)
{
switch (ib.ID)
{
case "IB1":
Response.Redirect("ibtest.aspx");
break;
case "IB2":
Response.Redirect("another.aspx");
break;
case "IB3":
Response.Redirect("third.aspx");
break;
}
}
}
|
|
|
|
|
I done as your code of you and it compiled sucessfully.Scott Dorman, thank you so much.
nothing
|
|
|
|
|
You're welcome. Glad you got it working.
|
|
|
|
|
Hello Scott,
Scott Dorman wrote: ImageButton ib = source as ImageButton; if (ib != null) { switch (Source.ID)
I think you also wanted to use the casted ImageButton instance for the switch.
All the best,
Martin
|
|
|
|
|
I'm sorry I have to keep coming back to the community about this... but I find NOTHING o google or in the books about icons. (I've looked a lot, speeking to Christian Graus and Undefeated, and whoever else). I honeslty just can't get an icon to appear (or atleast the one I made). Do you have to add it by code, or just from the form designer? I've tried mainly the form.
Please help, it's just been bugging e to get it to work. (and if anyone has any tips they'd like to share on Cursor files...)
Thanks in advance and thanks agian for all the great tips from the community, though I still act dumb/stubborn sometimes.
|
|
|
|
|
If anyone's tired of hearing me yap, I just figured out an odd way to make an icon, but it's wrong. I'd still really appreciate it if anyone would help on the right way. Please, and thanks again.
|
|
|
|