Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

vasavi p

@vasavi p
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • hide header and footer while printing a webpage in C# [modified]
    V vasavi p

    its a web application

    C# csharp

  • hide header and footer while printing a webpage in C# [modified]
    V vasavi p

    I want to hide Header(ie. Displaying the URL of the Page) and Footer(ie. getting page number and the current date and time) while printing a webpage using c#. Thanks in Advance

    modified on Tuesday, October 6, 2009 6:26 AM

    C# csharp

  • Need the code for Randomization of numbers using c#
    V vasavi p

    hi try with the below code protected void Button1_Click(object sender, EventArgs e) { Label1.Text = ""; int Quescnt = 6; string Randomnos = string.Empty; for (int i = 0; i < Quescnt; i++) { int RandomNumber = RandomClass.Next(28, 37); if (!Randomnos.ToString().Contains(RandomNumber.ToString() + ",")) { Randomnos = Randomnos + RandomNumber.ToString() + ", "; } else { Quescnt++; } } Label1.Text = Randomnos; } and try with this too[this will go to infinite loop] protected void Button1_Click(object sender, EventArgs e) { Label1.Text = ""; int Quescnt = 6; string Randomnos = string.Empty; for (int i = 0; i < Quescnt; i++) { int RandomNumber = RandomClass.Next(28, 33); if (!Randomnos.ToString().Contains(RandomNumber.ToString() + ",")) { Randomnos = Randomnos + RandomNumber.ToString() + ", "; } else { Quescnt++; } } Label1.Text = Randomnos; }

    C# csharp lounge

  • Need the code for Randomization of numbers using c#
    V vasavi p

    hi thanks for the reply. i want to copy all the random's numbers in a string separating by a comma. i.e Randomnos = "2,5,3,1,4"; This "Quescnt" comes from database. when this Quescnt and the MaxValue in RandomClass.Next(Min, Max) are equal, its going to infinite loop.

    C# csharp lounge

  • Need the code for Randomization of numbers using c#
    V vasavi p

    I have used the following code. when the "Quescnt" and the "max value(Int32.Parse(ds.Tables[1].Rows[cnt-1][0].ToString()))" are equal, its going to infinite loop. static int TheSeed = (int)DateTime.Now.Ticks; Random RandomClass = new Random(TheSeed); string Randomnos = string.Empty; for (int i = 0; i < Quescnt ; i++) { int RandomNumber = RandomClass.Next(Int32.Parse(ds.Tables[1].Rows[0][0].ToString()), Int32.Parse(ds.Tables[1].Rows[cnt-1][0].ToString())); if (!Randomnos.ToString().Contains(RandomNumber.ToString() + ",")) { Randomnos = Randomnos + RandomNumber.ToString() + ", "; } else { Quescnt++; } }

    C# csharp lounge

  • validations for the controls that are dynamically created at runtime
    V vasavi p

    i need to validate the Textboxes that are created at runtime. The text should not be blank and it should allow only numbers.

    C#

  • randomization of numbers without duplication in C#
    V vasavi p

    Need the randomization of numbers without repeatation using c#

    C# csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups