.NET Developers' Reference Card Round-Up(alvinashcraft.com)

submitted by alashcraftalashcraft(1180) 3 years, 10 months ago

I thought I would share this list of reference cards / cheat sheets that I have compiled over the last year or so. If I am missing any good ones, please post them in the comments.

7 comments |category: |Views: 648

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by sukhjinder82sukhjinder82(0) 3 years, 10 months ago 0

can anyone solve my problem how to remove _ from string or remove all the character after _
i m using this coding now
int i, j;
i = 0;
j = 2;

// string s = textBox1.Text;

string s = "03_08";

while (i < s.Length )
{

if (s[i] == '_')
{
while (s[i] == '_')
{
s = s.Remove(2, i);





}

}
else
{
i = i + 1;

}
textBox2.Text = s.ToString();

Reply

posted by adammaladammal(0) 3 years, 10 months ago 0

Sorry Alvin, i couldn't see your Reference Card. :(

@sukhjinder82
I'm not sure this is an appropriate place for this kind of question but in the interest of helping out a fellow programmer here is one of the many ways you could solve this problem.

public static string SplitTheString(string theString)
{

// Argument Check
if (string.IsNullOrEmpty(theString))
{
return theString;
}

// Define the token to split the string on.
string splitToken = "_";

// Split the string using the "_" token
string[] splits = theString.Split(new string[] {splitToken}, StringSplitOptions.None);

// if splits have been found then return the first split together with the original token.
if (splits != null && splits.Length > 0)
{
return splits[0] + splitToken;
}

// no split was found, just return the original string.
return theString;

}

Reply

posted by drugarcedrugarce(610) 3 years, 10 months ago 0

Does anybody else get a browser crash with Firefox 3 when opening the page? In IE6 page loads fine but my FF always crashes :( I am not sure if it is the browser itself or some of the extensions

Reply

posted by gavinjoycegavinjoyce(25.7k) 3 years, 10 months ago 0

FF3 is fine for me on both OSX and XP.

Reply

posted by gavinjoycegavinjoyce(25.7k) 3 years, 10 months ago 0

Actually, FF3 just crashed after I posted the comment.

Reply

posted by gavinjoycegavinjoyce(25.7k) 3 years, 10 months ago 0

(on XP)

Reply

posted by drugarcedrugarce(610) 3 years, 10 months ago 0

XP here as well

Reply

information Login or create an account to comment on this story