Server Error in '/FinalPracticalAssignment' Application.
No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type.
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.ArgumentException: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type.
Source Error:
Line 23:
Line 24: cn.Open()
Line 25: cmd.ExecuteNonQuery()
Line 26: cn.Close()
Line 27: cmd.Dispose()
Hello. You'd better post some code in order to get better help. But I think the problem is, managed provider type, connection provider name is not given. you might wanted to use a textbox.text value, but yopu gave textbox, itself.
Hello. You'd better post some code in order to get better help. But I think the problem is, managed provider type, connection provider name is not given. you might wanted to use a textbox.text value, but you gave textbox, itself.
As I said, please post yout code to get help.
[ Sorry, this message is posted due to an error... I did not wanted to post message twice :)) ]
Server Error in '/FinalPracticalAssignment' Application.
No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type.
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.ArgumentException: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type.
Source Error:
Line 23: Line 24: cn.Open() Line 25: cmd.ExecuteNonQuery() Line 26: cn.Close() Line 27: cmd.Dispose()
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
what's wrong with this error....
Hi stealthassassin_1990,
Base on my experience, I think that you want to split a SQL statement, and there are several parameter's values come form the TextBox controls, but you maybe use like the following code snippet:
... fieldname = txtFieldName...
If so, you just need change the about code like this:
...fieldname = txtFieldName.Text...
I refer to the following line get the above conclusion:
[ArgumentException: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type.]
Let me know if I have misunderstood what you mean. Thanks.
well actually i was just helping my friend posting the error here....i also dont have his files in my com....but i will ask him for it asap...anyway thz for trying to help...
I am getting same error, and isolated it down to this snippet:
If I exit after "exit 2" assignment, I see it in the textbox. That line works. If I don't exit, I fail on the "exit 2A" assignment and see the error message (displayed by catch code) instead of the string.
stealthassas...
Member
1 Points
13 Posts
No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider ...
Jan 02, 2008 01:54 AM|LINK
Server Error in '/FinalPracticalAssignment' Application.
No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type.
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.ArgumentException: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type.
Source Error:
Source File: C:\temp\072859P\FinalPracticalAssignment\Registration.aspx.vb Line: 25
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
what's wrong with this error....
impathan
Contributor
4371 Points
836 Posts
Re: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provi...
Jan 02, 2008 06:29 AM|LINK
can you post your code?
ImranKhan pathan
ofsarac
Member
109 Points
32 Posts
Re: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provi...
Jan 02, 2008 07:45 AM|LINK
Hello. You'd better post some code in order to get better help. But I think the problem is, managed provider type, connection provider name is not given. you might wanted to use a textbox.text value, but yopu gave textbox, itself.
As I said, please post yout code to get help.
ofsarac
Member
109 Points
32 Posts
Re: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provi...
Jan 02, 2008 07:46 AM|LINK
Hello. You'd better post some code in order to get better help. But I think the problem is, managed provider type, connection provider name is not given. you might wanted to use a textbox.text value, but you gave textbox, itself.
As I said, please post yout code to get help.
[ Sorry, this message is posted due to an error... I did not wanted to post message twice :)) ]
Hong-Gang Ch...
All-Star
74696 Points
6768 Posts
Re: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provi...
Jan 03, 2008 02:14 AM|LINK
Hi stealthassassin_1990,
Base on my experience, I think that you want to split a SQL statement, and there are several parameter's values come form the TextBox controls, but you maybe use like the following code snippet:
... fieldname = txtFieldName...
If so, you just need change the about code like this:
...fieldname = txtFieldName.Text...
I refer to the following line get the above conclusion:
Let me know if I have misunderstood what you mean. Thanks.
Hope it helps,
Hong Gang
If you have any feedback about my replies,please contactmsdnmg@microsoft.com.
Microsoft One Code Framework
stealthassas...
Member
1 Points
13 Posts
Re: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provi...
Jan 03, 2008 02:00 PM|LINK
well actually i was just helping my friend posting the error here....i also dont have his files in my com....but i will ask him for it asap...anyway thz for trying to help...
RickInHousto...
Member
32 Points
21 Posts
Re: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provi...
Aug 31, 2008 02:34 PM|LINK
I am getting same error, and isolated it down to this snippet:
If I exit after "exit 2" assignment, I see it in the textbox. That line works. If I don't exit, I fail on the "exit 2A" assignment and see the error message (displayed by catch code) instead of the string.
I must be missing something.
Would more code help, or just distract?
this.txtMessageFromStore.Text = "exit 2";
//return;
try
{
this.txtMessageFromStore.Text = "exit 2A";
Mapping managed provider system.web.ui.webcontrols
www.AccessRocks.com
pankaj_rayal
Member
316 Points
99 Posts
Re: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provi...
Sep 26, 2010 04:43 AM|LINK
It seems that you have taken textbox control and you are missing the "TEXT" property for a textbox.
Just try this:
=txtFirstName.Text
enjoy..