string manipulation by gravi8729

VIEWS: 0 PAGES: 2

string manipulation

More Info
									[string manipulation]

---------------------

1.

string s = "a1b5c9g7f5";

Display ONLY numbers in a Label, on Button click.



2.

string s = "xyz;abc;123";

          Calculate s1="xyz";

                        s2 = "abc";

                        s3 = "123";



3.

In a textbox, enter a bill number.

On button click, display the next bill no. in a label.



In Bill no:

          First three characters are "alphabetic".

          and rest are numeric.



"ABC123"                        => "ABC124"



4.

Difference between String and StringBuilder classes.



5.
Generate a password-string of six characters

from following character sets only.

a-z, 0-9, @, #, $, &.

One character should be selected once.

        Hint: - Random(ArrayList) method



6. Enter Date Of Birth [MM/DD/YYYY] and

display Age in years, Months & Days in a Label

on Button click.



------------- 10/3/2008



7. Getting data / value from .ASPX page

to User Control File[.ascx] -- ??



- public propety should be created in .aspx page

- and access in the Page_Load of .ascx file

        [this.PublicPropertyName]




8. Write some code in the Page_Load of

Menu.ascx, so that the HyperLink for the

'current page[.aspx]' will be disabled automatically.



---

								
To top