Dear Chris,

Many thanks for ur prompt response on this........actually i had made an 
application which was primrily for dataentry purposes.......and the dataentry  
operators that i have are in a habit of entring date as ddmmyyyy rather than 
mm/dd/yyyy which is the default format of SQL server......therefore i had to 
enable the autopostback property of the textbox and had to write a code to 
convert the string into date format.........i had to do this cause i was not 
able to get the javascript functions to work with ASP.NET 2.0........i tried to 
use getelemetbyid and finally got it to work.......i will show u the code on 
monday as the application is in my office...........thanks a million!!

Best regards,

Arun Arora,
Chandigarh, India

Chris Farrell <[EMAIL PROTECTED]> wrote:                                  You 
can do this.  ASP.Net for an asp:Textbox will still render a HTML
 textbox.
  
 The most likely problem is that your control is in some type of control
 container and is thus rendering
 a different ID.  You can do viewsource to see the actual ID of the control.
  
 Depends upon usage, you can sometimes use myTextBox.ClientID to get the
 rendered ID if this is the
 problem.  
  
 Also, if the control is inside some type of list-bound control such as a
 repeater, datalist, datagrid, etc
 you will need to handle it differently.  
  
 As per postbacks, I don't know why a textbox would cause a postback.  Are
 you trying to assign a different
 behavior to a button click or some other event?  You can always attach
 client javascript to these as well.1
  
 There are different senarios and it would be best for us to see your code so
 we can give you the correct
 method.
  
 Thanks
  
 Chris Farrell
  
 
 _____  
 
 From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
 Arun
 Sent: Friday, July 21, 2006 1:26 PM
 To: [email protected]
 Subject: [AspNet2] Javascript in asp.net 2.0
 
 I am new to ASP.NET 2.0, i have been using javascript with ASP quite a 
 lot to take care of client-side issues......but these do not seem to 
 work with ASP.NET 2.0 pages that i have created.....
 
 kindly tell me how to get text from a textbox manipulate it and put it 
 back in......i need this very badly for my project......although i 
 have solved it with a trick......but i believe that the approach that 
 i have followed is not very good as it involves server postback....
 
 please help me
 
 thanks in advance
 
 [Non-text portions of this message have been removed]
 
 
     
                       

                
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/umvwlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNet2/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to