hi nelson u can do it using random class

Random ref=new Random();
string reference=Convert.ToString(ref.next());


now u have the reference number

now u want to display it

if u will display it in other page sure u will send it using querystring
response.redirect("~/page.aspx?ref="+ reference);

else if u want to display it on the same page
so u can assign a label control to ur reference number

i hope this helped u


On Tue, Aug 11, 2009 at 3:52 PM, Nelson <[email protected]> wrote:

>
> hi friends
> im new to .net
> i hve a form in which user wil fill and the fields like
> fname,lmane,address ..etc when user click submit i want to genarate
> and display referance number in a user form for particualar user
>
> please help me
>



-- 
there's nothing worse than having to get up and moving early

Reply via email to