Asp.net Problem Please Help Someone Out.

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 24, 2009, 01:39 AM
431589 members and 298603 Topics
Latest Member: halgefleemsRissity
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Asp.net Problem Please Help Someone Out.
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Asp.net Problem Please Help Someone Out.  (Read 125 views)
Toyosi R (f)
Asp.net Problem Please Help Someone Out.
« on: October 08, 2009, 11:09 AM »

HELLO ALL,
I AV A FORM OF JUST TWO CONTROL FOR INSTANCE.

A TEXTBOX AND A BUTTON

IMMEDIATELY U TYPE IN ANYTHING IN THE TEXTBOX THE BUTTON SHOULD BE VISIBLE AND AS U ARE DELETING IT IF U DELETE THE LAST LETTER THEN THE BUTTON SHOULD BE INVISIBLE. WITHOUT THE USER LEAVING THE TEXTBOX.
Kobojunkie
Re: Asp.net Problem Please Help Someone Out.
« #1 on: October 08, 2009, 01:22 PM »

You need to use JavaScript/Ajax/JQuery etc to listen for the TextChanged Event of the TextBox Or you can use the serverside TextChanged event of the text box in this case. When the length of the text in the textbox is zero, you enable or disable the textbox.
Toyosi R (f)
Re: Asp.net Problem Please Help Someone Out.
« #2 on: October 08, 2009, 02:21 PM »

Quote from: Kobojunkie on October 08, 2009, 01:22 PM
You need to use JavaScript/Ajax/JQuery etc to listen for the TextChanged Event of the TextBox Or you can use the serverside TextChanged event of the text box in this case. When the length of the text in the textbox is zero, you enable or disable the textbox.


Yes I used the textchange event but the event does not fire until i press tab to leave the textbox which i dont want. I want it to immediately take effect as the user is typing.

I dont really know how to use javascript for this u might help me out with it.

tanks very much.
Kobojunkie
Re: Asp.net Problem Please Help Someone Out.
« #3 on: October 09, 2009, 12:41 PM »

a) You said the textchanged event does not fire. Did you set AUTOPOSTBACK property to true?

b) You can use JQuery, which in my opinion, is a simply and easier approach to coding JavaScript, for developers who do not want to spend all that time learning JavaScript. It is pretty straightforward too.

Toyosi R (f)
Re: Asp.net Problem Please Help Someone Out.
« #4 on: October 09, 2009, 04:11 PM »

thanks so much, i so much appreciate your concern

av been able to solve it with javascript.

thanks

but now am aving another challenge

in asp.net there is no autosize for label property and i want to make it the size of text at runtime. is this possible?

any help will be appreciated
skillworks
Re: Asp.net Problem Please Help Someone Out.
« #5 on: October 09, 2009, 04:34 PM »

Kobojunkie,

I have a smaller problem with ASP.NET.  I want my web application to be able to get the entries made by users on an ASP.NET form to be able to report to an SQL database.
I want an easy way to do this. Some other folks have been kind to suggest other methods, however I found those methods a little difficult.

Please suggest an easy method to do this.

skillworks.
Kobojunkie
Re: Asp.net Problem Please Help Someone Out.
« #6 on: October 09, 2009, 04:44 PM »



Quote from: Toyosi R on October 09, 2009, 04:11 PM
thanks so much, i so much appreciate your concern

av been able to solve it with javascript.

thanks

but now am aving another challenge

in asp.net there is no autosize for label property and i want to make it the size of text at runtime. is this possible?

any help will be appreciated
a) You can, in the PageLoad event set the size of your label

b) You can, using CSS styling, set the size of your label
Kobojunkie
Re: Asp.net Problem Please Help Someone Out.
« #7 on: October 09, 2009, 04:48 PM »

Quote from: skillworks on October 09, 2009, 04:34 PM
Kobojunkie,

I have a smaller problem with ASP.NET. I want my web application to be able to get the entries made by users on an ASP.NET form to be able to report to an SQL database.
I want an easy way to do this. Some other folks have been kind to suggest other methods, however I found those methods a little difficult.
Please suggest an easy method to do this.
skillworks.


When you say report, you mean save, right?

a) ADO.NET
b) Enterprise Library  etc

Not exactly sure what it is exactly that you need help with cause  you would need to have table(s) to save the info to, a query to facilitate saving of data to the tables in the database, you need to write code to port the data from your form to the data technology to handle the saving.
 Mindblowing Opportunities On The Internet Seminar  Help  Qbasic Fortran Cobol And Pascal As 100 N 200l Courses!  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.