set focus

  • Thread starter Thread starter nil
  • Start date Start date
N

nil

hi..suppose there is only one textbox in the form and one command
button...
can anyone tell me how can i setfocus of textbox when page is load?
should i do that by java script?please send me coding how to do that?


and can anyone tell me how can i send mail to the group of user?and how
can i add user in the vb.net?
i am developing one web application for one designing institute and
they want mailing facility so if i send one mail then all the member of
institute get that mail and for that i am supposed to create one group
for that....and any member can leave any time and one can be a member
of the institute so no of user are not fixed so tell me how can i do?i
did coding for sending one mail to the single user but i don't know how
to do for the group?should i take one array?please send me the code
snippet and it's better if it's in visual basic and not asp..thanks a
lot in advance



Nil
 
Stuart Nathan said:
in the load event use TextBox.Focus


.... which won't work because when the 'Load' event executes the form is not
yet visible. You may want to call the control's 'Select' method instead.
 
nil said:
hi..suppose there is only one textbox in the form and one command
button...
can anyone tell me how can i setfocus of textbox when page is load?
should i do that by java script?please send me coding how to do that?


and can anyone tell me how can i send mail to the group of user?and how
can i add user in the vb.net?
i am developing one web application for one designing institute and
they want mailing facility so if i send one mail then all the member of
institute get that mail and for that i am supposed to create one group
for that....and any member can leave any time and one can be a member
of the institute so no of user are not fixed so tell me how can i do?i
did coding for sending one mail to the single user but i don't know how
to do for the group?should i take one array?please send me the code
snippet and it's better if it's in visual basic and not asp..thanks a
lot in advance



Nil
Or, you could use the form's Activated event, which will work for initial
setup.
 
hi..suppose there is only one textbox in the form and one command
button...
can anyone tell me how can i setfocus of textbox when page is load?
should i do that by java script?please send me coding how to do that?

What you can do is add some javascript on the page load event to set focus
to the textbox that you want
and can anyone tell me how can i send mail to the group of user?and how
can i add user in the vb.net?
i am developing one web application for one designing institute and
they want mailing facility so if i send one mail then all the member of
institute get that mail and for that i am supposed to create one group
for that....and any member can leave any time and one can be a member
of the institute so no of user are not fixed so tell me how can i do?i
did coding for sending one mail to the single user but i don't know how
to do for the group?should i take one array?please send me the code
snippet and it's better if it's in visual basic and not asp..thanks a
lot in advance

For this one get your mail administrator to make a mailing list that has an
email address and use that address in your application. This way users can
be added or removed from the mailing list without requiring you to change
your code

Wh
 
What you can do is add some javascript on the page load event to set focus
to the textbox that you want

Just to clarify, I mean the html of the page

<body onload="document.getElementById('textBoxName').focus();">
 
Rad said:
Just to clarify, I mean the html of the page

<body onload="document.getElementById('textBoxName').focus();">


thanks a lot all of you for reply and i did what you suggest me but
it's not working so i did setfocus by registerscript() event in page
load event as i am using vb.net 2003 and tell me


how can i add member to mailing list that i don't know as i am new to
..net and nobody is my technical guide....i am developing this
webapplication as my college project...so can anyone tell me how to do
that?should i store all the member id in the database and then when one
wants to send the mail on group then i fetch all the id from the
database and store in arraylist and then mail to everyone?i did coding
for sending mail to individual...so please let me know about
that....thanks a lot
 
Back
Top