473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Connection string returns null - help

I have the following insercommand in my asp page.

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="
<%$ ConnectionStrings:eventsConnectionString %>"
SelectCommand="SELECT registration.* FROM registration"

InsertCommand="INSERT INTO registration(eventName,
firstName, lastName,instName,faculty, jobTitle,email,
phoneNumber,degreeName, yearOfStudy,interestOthers,eventSource,
eventOthersDetail, resCountry) VALUES
(@eventName,@first,@lastName,@instName,@faculty,@j obTitle,@email,@phoneNumb*er,@degreeName,@yearOfSt udy,@interestOthers,@eventSource,@eventOthersDetai l*,@resCountry)"

ProviderName="<%$ ConnectionStrings:eventsConnectionString.ProviderN ame

%>">
<insertparameters>
<asp:formparameter name="eventName" formfield="eventName" />
<asp:formparameter name="firstName" formfield="firstName" />
<asp:formparameter name="lastName" formfield="lastName" />
<asp:formparameter name="instName" formfield="instName" />
<asp:formparameter name="faculty" formfield="faculty" />
<asp:formparameter name="jobTitle" formfield="jobTitle" />
<asp:formparameter name="email" formfield="email" />
<asp:formparameter name="phoneNumber" formfield="phoneNumber" />
<asp:formparameter name="degreeName" formfield="degreeName" />
<asp:formparameter name="yearOfStudy" formfield="yearOfStudy" />
<asp:formparameter name="interestOthers" formfield="interestOthers" />

<asp:formparameter name="eventSource" formfield="eventSource" />
<asp:formparameter name="eventOthersDetail"
formfield="eventOthersDetail" />
<asp:formparameter name="resCountry" formfield="resCountry" />
</insertparameters>
</asp:SqlDataSource>
The problem is none of the values return anything. Is my formparameter
wrongly defined?
Thanks in advance.

May 8 '06 #1
0 1052

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Linus Nikander | last post by:
Having recently load-tested the application we are developing I noticed that one of the most expensive (time-wise) calls was my fetch of a db-connection from the defined db-pool. At present I fetch...
0
by: JWM | last post by:
I am trying to implement Oracle connection pooling for the following code, which was written by someone else. Here is my main question -- this java file creates code that is executed every hour,...
10
by: huzz | last post by:
I have web application that quaries the Active Directory to get user details.. everything works fine but someday I'll get System.Runtime.InteropServices.COMExection and if I restart the client...
2
by: Venkata Narayana | last post by:
Hi, You all may be knowing that Connection.isClosed() does not tells us if the underying DB connection is active or not; it only checks if Connection.close() had been previously called or not....
5
by: Frank Rizzo | last post by:
This is driving me nuts. I call the InternetDial API to open a dial-up connection and it just returns 0 (success) without actually making a call. Am I missing something really simple? I've tried...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
by: Harry Strybos | last post by:
Hi All I have a really strange problem occurring in my application. When I read in the application settings for connection strings the following happens: Here are my connection string settings...
1
by: =?Utf-8?B?VmVua2F0ZXNhbiBT?= | last post by:
Hi, I have a requirement of consuming a connection object returned from a COM component deployed in COM+ application. I have given the need for this requirement end of my query. My component...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.