45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




problem with textbox in ms.net2005(very urgent)

        

Reply
 
LinkBack Thread Tools Display Modes
Old 16-11-06, 04:35 PM   #1 (permalink)
Junior Member
 
Join Date: Nov 2006
Age: 33
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 bandiprasad is on a distinguished road
problem with textbox in ms.net2005(very urgent)

hi,

i have written a program in msvisual studio2005. in that program i take textboxes. i have retrieve the data from database and populate(display) the data in the text boxes. but when i will try to change the data, the text box will not take the new data to update database.what is the problem with textox.is it required any special properties. see coding for this

for ex
in page load i have written like this
i retrieve the data from database and i assign so the textbox is like this
textbox1.text="vijay"
textbox2.text="india"


then i want to change the data vijay as sekhar and india as indian
so i type that in textoxes.then i wii come to the update button and wrote the queries to update.
but here also the textboxes take the data as vijay and india. so there is no updation


i did not under stand that what is the problem.

please go through this and give the solution for this.
very urgent
thanks in advanced


bandiprasad is offline Offline   Reply With Quote
Old 17-11-06, 06:48 PM   #2 (permalink)
Member
 
Join Date: Aug 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 sand_softnet is on a distinguished road
Re: problem with textbox in ms.net2005(very urgent)

Hi,

Vijay and India are the value assigned to textbox1 and textbox2 and are retrived from database.

Close the connection after the page is loaded and the textbox is updated.

On click event of Update button, you need to write code to push the data of Textbox1 and textbox2 to database using Update method.

To help you in this issue, please tell us which DBA u r using in background.
Paste the code for on page load event, on click event of Update button.

I might then be able to help you.

Thanks
Sand
sand_softnet is offline Offline   Reply With Quote
Old 20-11-06, 05:26 PM   #3 (permalink)
Junior Member
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 harshaghanta is on a distinguished road
Re: problem with textbox in ms.net2005(very urgent)

Well the thing happening here is in the page load event u are fetching the data from database. so while u are updating with ur database new values again the page load is occuring.So to avoid this keep all the code in your pageload event in an if condition like this

If(page.IsPostBack==false)
{
keep all ur page load code here....
}
harshaghanta is offline Offline   Reply With Quote
Old 22-11-06, 07:50 PM   #4 (permalink)
Junior Member
 
Join Date: Nov 2006
Age: 26
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 4 senthildevarajan is on a distinguished road
Re: problem with textbox in ms.net2005(very urgent)

hi bandiprasad,

Just get the text box value from page_preload event
instead of getting from page_load event

bcoz i faced the same problem what u faced.

its enough to get and update ur data

bye
senthildevarajan is offline Offline   Reply With Quote
Reply

Tags
msnet2005very , problem , textbox , urgent


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Opening in Mumbai(Java/J2EE/Struts) Experience 2 - 7 years sridhar Experienced Jobs 0 14-11-06 02:58 PM
URGENT NEED: SAP MM/PP Support Specialist sridhar Experienced Jobs 0 07-11-06 06:27 PM
Urgent opening for AS400 professionals in a leading MNC(Chennai/Pune) sridhar Experienced Jobs 0 06-11-06 10:16 PM
Simple solution to a complex problem AjayKumar.Kataram Inspire yourself & Others - Leaders Zone 3 10-10-06 11:30 AM
System Problem au123 NETWORK ADMINISTRATION , HARDWARE & TROUBLESHOOTING 4 09-10-06 09:59 PM


All times are GMT +6.5. The time now is 05:31 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0