Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 13th, 2019, 03:54 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Feb 2019
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Pass values to stored procedure parameters from form where input values has changed

I am working on a Classic ASP project where I am updating multiple records in a table with single Submit button. Each row has select box and text box and user can update all the rows. While sending parameters to stored procedure , I want to pass only those values where input values ( select box or text box ) have been changed. I can't figure how should I do that. sCycleTime(Id) and sComment(id) contains values of Select Box and Textbox of all the rows. sProfile(id) and sProcess_Step_Sequence(Id) are two id's binded in each Select box and Textbox. Eg: DrpDwn_1_4 and Txtbox_1_4 and so on...

Code:
 sQry = ""
    For Id = 0 to 22
    response.Write ("this is " & l_comments)
        If Trim(sProcess_Step_Sequence (Id)) <> "" Then
            If Trim(sQry) = "" Then
                sQry = sProfile(id) & "~" & sCycleTime(Id) & "`" & sProcess_Step_Sequence(Id) & "^" & sComment(id)
            Else
                sQry = sQry & "!" & sProfile(id) & "~" & sCycleTime(Id) & "`" & sProcess_Step_Sequence(Id)& "^" & sComment(id)
            End If

        End If
    Next

    objCommand.CommandText = "EXEC usp_UPDATE_Dual_Code_Cycle_Times_and_Comments '" & sQry & "' ; "
Reply With Quote
  #2 (permalink)  
Old Yesterday, 05:57 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Feb 2019
Location: Johns Creek
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Affordable SEO services to generate More Business Leads

We specialize in offering affordable SEO services for small business in very reasonable prices. We offer advance SEO services matching with your business needs and demands. We follow Google guidelines to improve and maintain website’s rankings. Our SEO professionals have rich experience and depth knowledge to bring your website’s rankings on the first page of Google and promise you to provide positive results. Our SEO services are very affordable but result oriented to generate more business leads. Our SEO Packages are completely unique, suitable in your budget and give you more chances to generate more business leads.
Reply With Quote
Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass parameters to stored procedure from GridView Dmitriy ASP.NET 3.5 Professionals 42 January 23rd, 2013 05:37 AM
PHP5 is not passing form values from input variables sjfoglia Pro PHP 2 December 30th, 2008 02:30 PM
Returning Values from a Stored Procedure kadjw SQL Server ASP 1 September 13th, 2006 01:08 PM
How to pass vector values form one JSP midhun JSP Basics 1 January 30th, 2006 06:49 PM



All times are GMT -4. The time now is 06:04 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.