Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Newbie - Getting form data to "refresh"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Curt Gough - 18 Jan 2007 16:35 GMT
I am new to WinForms developing - used Access for many years. I have an
application using DataSets from Stored Procedures in SQL Server. When users
enter new data and click the Save button I can save the record fine by using
another SP. But, I want the ID field to update with the new ID for that
record. What can I call to make the DataSet update and display the new ID
number for the record?

Thanks for any help.
Bryan Phillips - 19 Jan 2007 04:23 GMT
Is the "Save" SP returning the value of the new ID?

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> I am new to WinForms developing - used Access for many years. I have an
> application using DataSets from Stored Procedures in SQL Server. When users
[quoted text clipped - 4 lines]
>
> Thanks for any help.
Curt Gough - 19 Jan 2007 14:07 GMT
Yes. I have it as an OUTPUT variable in the SP.

Signature

Curt Gough
123cgough@kcumb.edu

Remove 123 from above address to mail directly

> Is the "Save" SP returning the value of the new ID?
>
[quoted text clipped - 13 lines]
>>
>> Thanks for any help.
Curt Gough - 22 Jan 2007 20:19 GMT
Thank you for the response, but your question does not help me toward what I
am seeking to do. I have answered but got no further response. If the SP is
returning the new ID value, how to I get the form to update, refresh or
requery to show that value?

Signature

Curt Gough
123cgough@kcumb.edu

Remove 123 from above address to mail directly

> Is the "Save" SP returning the value of the new ID?
>
[quoted text clipped - 13 lines]
>>
>> Thanks for any help.
Bryan Phillips - 26 Jan 2007 01:52 GMT
Can you post a code snippet to reproduce the problem?

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> Thank you for the response, but your question does not help me toward what I
> am seeking to do. I have answered but got no further response. If the SP is
[quoted text clipped - 23 lines]
> >>
> >> Thanks for any help.
RobinS - 26 Jan 2007 02:21 GMT
How are you getting the old ID on the screen? Is it databound to a
textbox, or displayed in a grid, or what?

Robin S.
--------------------------
> Thank you for the response, but your question does not help me toward
> what I am seeking to do. I have answered but got no further response.
[quoted text clipped - 21 lines]
>>>
>>> Thanks for any help.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.