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

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Pravin_pujari
Message 3 in Discussion

hi 
i am going to work on a new web project. we have to choose platform for that. asp or 
asp.net? i am giving preference to asp.net but boss created a doubt. that is as 
follows...
no doubt asp.net has good features than asp. asp.net provide event driven programming, 
validation controls etc, server controls. for server controls we can write code on 
event. but as server control works on server for each event client goes to server. is 
it not time consuming..?
eg.  Listbox1   Listbox2
pravin  add
sooraj  remove
prasad add and remove are server control buttons. when u click on add selected item 
from listbox1 goes to listbox2 and get removed from listbox1
similarly remove button removes selected item from listbox2 and adds to listbox1 
simple asp.net code is...
*****
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles MyBase.Load
        'Put user code to initialize the page here
        ListBox1.Items.Add("pravin")
        ListBox1.Items.Add("sooraj")
        ListBox1.Items.Add("Prasad")
End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles Button1.Click
        ListBox2.Items.Add(ListBox1.SelectedItem.ToString)
        ListBox1.Items.Remove(ListBox1.SelectedItem)
End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles Button2.Click
        ListBox1.Items.Add(ListBox2.SelectedItem.ToString)
        ListBox2.Items.Remove(ListBox2.SelectedItem)
End Sub
***** in this simple program for each click on button page goes to server to execute 
the event and page get reloaded..
but if u use clientside javascript u can do it easily without refreshing page..
then which one is advantageous 
can any one tell me the answer to this question..  

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

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to