Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:877282
More Search Options
RSS Available
Matching Posts
Re: Select in SqlDataSource
Hi, How then can I use a parameter to return the value of individuasl colums. You mention Dataset and Datareader well and fine, if I use a datareader, how will the code be? ---This is the smaple code for SqlDataSource1 DataView dvSql = (DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty); foreach (DataRowView drvSql in dvSql) { Label3.Text = drvSql["FirstName"].ToString(); } OleDbDataReader rdrSql = (OleDbDataReader)SqlDataSource2.Select(DataSourceSelectArguments.Empty); while
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
FrankEnem
on 7/6/2009
Select in SqlDataSource
Hi, I have created a datasource sqldatasource1. I have issued a select statement in a view to updating a record. --------------------Partial code SqlDataSource1.SelectCommand = "SELECT * FROM ACCTMASTER WHERE ACCOUNTID =" + Me.AccountID.Text SqlDataSource1.SelectParameters.Clear() SqlDataSource1.SelectParameters.Add("PAYERID", Me.PayerID.Text) Dim dv As DataView = DirectCast(SqlDataSource1.[Select](DataSourceSelectArguments.Empty), DataView) Dim tab As DataTable = dv.Table (tab
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
FrankEnem
on 7/4/2009
Application Hosting
Hi, I have created two forms for my projects which I believe is a starting point. I want to deploy the application in a stand-alone computer where a user will key in the basic account info into an access database. How do I go about this?
Posted to
Configuration and Deployment
(Forum)
by
FrankEnem
on 7/3/2009
Re: Updating and Inserting
I have added the code but there were errors on the following lines. pls would you explain to me what the two lines were suppose to achieve. DataView dv = (DataView)AccessDataSource1.Select(DataSourceSelectArguments.Empty) DataTable tab = dv.Table (TAB.Rows.Count > 0) Then My Code was like this: AccessDataSource1.SelectCommand = "SELECT * FROM AcctMaster WHERE USERID =" + Me.AccountId.Text AccessDataSource1.SelectParameters.Clear() AccessDataSource1.SelectParameters.Add("AccountId"
Posted to
Getting Started
(Forum)
by
FrankEnem
on 7/2/2009
Re: Updating and Inserting
It gave me a runtime error message : Server Error in '/' Application. Syntax error in INSERT INTO statement. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. Source Error: Line 35: AccessDataSource1.InsertParameters.Add("Userid", Me.UserId.Text
Posted to
Getting Started
(Forum)
by
FrankEnem
on 7/2/2009
Multiple Parameters in query.string and Dataview Parameters
I have three question 1. I have multiple parameters to pass using query.string. When I did it, I have all one parameter returned. 2. How can I pass parameters from Gridview to another wed form. I have a created a Gridview and a hyperlink (edit), I want that when a users clicks on the hyperlink it will call another form and read the table row and transfer the data in the row to another form. 3. I have a variable which I want to pass to Gridview in form of a search string that dispalys the occurance
Posted to
Data Presentation Controls
(Forum)
by
FrankEnem
on 7/2/2009
Re: Updating and Inserting
Hi, Still on inserting and updaing I have created the sqldatasource, 1. in the config file, the connection string has already been added automatically. 2.The second paragraph has already been added in the webform source automaitcally on creating the datasource. 3. My syntax to insert into the table is like this: SqlDataSource1.InsertCommand = "Insert INTO USERS (AccountID, AccountName)" & _ "Values(01011,Account Payable) " SqlDataSource1.InsertParameters.Clear() SqlDataSource1
Posted to
Getting Started
(Forum)
by
FrankEnem
on 7/1/2009
Inserting records into access database
Please I have a web form with two textbox Account Id and Account Name. I have another button submit. I want to insert the values in the textbox in the access table when the submit button is click. ------------ I have created an sqldatasource; sqldatasource1 on the webform and written this code on the button_click SqlDataSource1.InsertCommand = "Insert INTO USERS (ACCOUNTID, ACCOUNTNAME)" & _ "Values(01011,Accounts Payable)" SqlDataSource1.UpdateParameters.Clear() SqlDataSource1
Posted to
Access Databases and AccessDataSource Control
(Forum)
by
FrankEnem
on 7/1/2009
Re: Updating and Inserting
There is a problem ----- Before I start using the above, where do I define Sql. I try it and it gave me an error message. Please be very clear ans give me how the syntax will be. Thanks ----
Posted to
Getting Started
(Forum)
by
FrankEnem
on 7/1/2009
Updating and Inserting
Hi all, I have created a web form: accountfrm.aspx with two textbox controls, AccountId and AccountName. I have also two linkbuttons:submit and cancel. Action Sought 1. I want to insert the values in the form to a database table; acctmaster. When the user clicks the submit linkbutton the accountId and AcoountName will be copied from the form and inserted into the database table 2. I want also to update a record; the condition is that when a user enters accountId and AccountName and clicks the linkbutton
Posted to
Getting Started
(Forum)
by
FrankEnem
on 6/30/2009
Page 1 of 2 (13 items) 1
2
Next >
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online