CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 4/28/2005 10:56:41 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 133 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
ad_flying
Asp.Net User
How to set parameter source to form4/28/2005 10:56:41 AM

0/0

The exmple about the parameter of SqlDataSouce is always set to controls.

But I want to set the parameter of a SqlDataSouce to Form. How can I do that?

ByReckon
Asp.Net User
Re: How to set parameter source to form4/28/2005 1:50:26 PM

0/0

Hello ad_flying,

<asp:FormParameter> gets the parameter value from a specified input field of the HttpRequest.Form.

On the other hand, the <asp:ControlParameter> gets the parameter value fom any public property of a server control of the page.

There is an example here


VB .Net Coder - Apologize my C# nescience
Best Regards.
ad_flying
Asp.Net User
Re: How to set parameter source to form4/28/2005 10:21:58 PM

0/0

Thank Sir,

But I fail trying, My sdsSt get no rows

My code is below

    <asp:SqlDataSource ID="sdsSt" Runat="server" ConnectionString="<%$ ConnectionStrings:myDataBase %>"

 SelectCommand="SELECT PID, GuyID, Guy, SexID, Seat, Birthday, FROM dbo.St WHERE (Years = @Years) AND (ClassID = @ClassID) order by Seat"

        <SelectParameters>
            <asp:FormParameter  FormField="txtYears" Name="Years"  />
            <asp:FormParameter  FormField="txtClassID" Name="ClassID"  />
        </SelectParameters>

 

    <asp:TextBox ID="txtYears" runat="server">92</asp:TextBox>
    <asp:TextBox ID="txtClassID"runat="server">1</asp:TextBox>

 

 

 

ByReckon
Asp.Net User
Re: How to set parameter source to form4/29/2005 7:03:50 AM

0/0

Hello ad_flying:

your code snippet seems to be correct (if there is no more code in the page related with DataSource Control).

But I would change one thing. Set the FormParameter.DefaultValue.

<SelectParameters>

   <asp:FormParameter   FormField="txtYears" 
                        Name="Years" 
                        DefaultValue="SetDefaultValue" />
   <asp:FormParameter   FormField="txtClassId" 
                        Name="ClassId" 
                        DefaultValue="SetDefaultValue" />

</SelectParameters>

Also, confirm by other tools (Query Analyzer or similar) that the results you expect with your query are achieved. It is a way of testing before displaying data in a webform.

Let us know the results.


VB .Net Coder - Apologize my C# nescience
Best Regards.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Access Cookbook: Solutions to Common User Interface & Programming Problems Authors: Ken Getz, Paul Litwin, Andy Baron, Microsoft Corporation, Pages: 810, Published: 2004
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006
Microsoft Office Access 2003 Inside Out Authors: John Viescas, Pages: 1298, Published: 2003
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Professional Software Testing with Visual Studio 2005 Team System: Tools for Software Developers and Test Engineers Authors: Tom Arnold, Dominic Hopton, Andy Leonard, Mike Frost, Pages: 372, Published: 2007
Grid and Cooperative Computing: Second International Workshop, GCC 2003, Shanhai [sic], China, December 7-10 2003 : Revised Papers Authors: Minglu Li, Pages: 1112, Published: 2004
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004

Web:
How to set parameter source to form - ng.asp-net-forum ... How to set parameter source to form, > ROOT > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express, Date: 4/28/2005 ...
Set Parameter Value : Form Input « JSTL « Java Tutorial Java Source Code / Java Documentation · Java Open Source · Jar File Download .... Use ForEach to List All Form Parameters. 24. 15. 2. Set Parameter Value ...
Exception in form.setParameter() for SELECT: msg#00039 web ... RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) .... Next by Date: Exception in form.setParameter() for SELECT, Bhupesh Reddy Sura ...
Change web form parameter source from querystring to control after ... Sep 29, 2008 ... Change web form parameter source from querystring to control .... you can simply using javascript to set value for the opener (the page you ...
Building a Simple Parameter Form for a JSP-based Web Report Modify the HTML Parameter Form in Reports Builder using the Data Model and Web Source views, and save as a JSP. Set up the target report using the Data ...
Access formscoding Mulitple Form Parameter Boxes before Opening Report I have the first form parameter set to open the second form and then the ... record source is using parameters based on those form names, ...
j4j:param - Form Parameter Tag It allows to pass parameters with using any form command control. ... Here is the source code for the org.j4j.tags.ParamTag class: package org.j4j.tags; ...
Parameter query as a List box data source - bytes Usually, when using the list box wizard (in a form in which its data source has already been set to be the parameter query of interest), ...
#2563 ([PATCH][TEST] Form helper should be able to set class ... Dec 25, 2008 ... [PATCH][TEST] Form helper should be able to set class parameter to required ... By Edgewall Software. Visit the Trac open source project at ...
Transformer (GNU JAXP Library) setParameter(String name, Object value): Sets a parameter value for the ... public void transform(Source xmlSource, Result outputTarget) throws ...

Videos:
GCCCONCEPTS #18 GNU's Not Unix Compiler Collection GCC Concepts http://www.cfdvs.iitb.ac.in/~amv/gcc-int-docs/html/gcc-conceptual-structure.html : the architecture described is used by the GCC developer ...
Mu.Sh.Room - Musical Sheets Room by Gruppo Làbun www.labun.it The title is a tongue in cheek reference to John Cage's great passion for mushrooms. In reality it is an acronym revealing the ...
Tales of Symphonia (Opening) GameCube . ~ CLICK (more) ~ .. ---CLICK more--- Tales of Symphonia Opening Review: http://www.gamespot.com/gamecube/rpg/talesofphantasia/index.html ...
Motion Experiment 9 - Fantasy Fractal Particle Machine Art Lots more to read below! Strexx Motion Lab wants to correct a terrible problem with modern design and construction. The problem with most ...
Literate functional testing Google London Test Automation Conference (LTAC) Google Tech Talks September 7th, 2006 Presenters: Robert Chatley and Tom White
Motion Experiment 6 - Fantasy Fractal Particle Machine Art Lots more to read below! Strexx Motion Lab wants to correct a terrible problem with modern design and construction. The problem with most ...
Motion Experiment 3 Alt - Fantasy Fractal Particle Machine Lots more to read below! Strexx Motion Lab wants to correct a terrible problem with modern design and construction. The problem with most ...
Motion Experiment 8 Alt - Fantasy Fractal Particle Machine Lots more to read below! Strexx Motion Lab wants to correct a terrible problem with modern design and construction. The problem with most ...
A Googly MySQL Cluster Talk Google TechTalks April 28, 2006 Stewart Smith Stewart Smith works for MySQL AB as a software engineer working on MySQL Cluster. He is an ...
Motion Experiment 10 - Fantasy Fractal Particle Machine Art Lots more to read below! Strexx Motion Lab wants to correct a terrible problem with modern design and construction. The problem with most ...




Search This Site:










dropdownlist item setting

browser compatability check module/script/code?

can i implement close verb programmatically?

please help!!!

sitemap question.

cant get data from textbox in datalist?

customer avatar

how to issue a x509certificate to user in vb.net ?

file upload script

button text align properties

streamlining dotnetnuke.dll

help: elements on my masterpage inherit themes, but my webform page does not!!!

webmail, websites & dnn..

having trouble raping text around images

resources problem

opening a file in a web form

mislabled control - death & destruction

problem web site administration tool

web portal admin

is it possible to automate duplication of security role permissions

dynamic text box for a news portal

error while renaming controls

redirecting to original page after invalid authorization

inserting new made textbox.text into a tabel

dnn imodulecommunicator

adding new profile properties

client downloading from ftp

with typeconverter example getting error "unable to generate code for a value of type..."

dnn 3.0.9 & custom modules

re: account has been locked info

 
All Times Are GMT