Click here to Skip to main content
15,902,114 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question'Microsoft.Jet.OLEDB.4.0' Issue Pin
Haridas.R2-Nov-08 17:37
Haridas.R2-Nov-08 17:37 
QuestionFind Control in EditItemTemplate Column In DataGrid Pin
itsruta2-Nov-08 17:08
itsruta2-Nov-08 17:08 
AnswerRe: Find Control in EditItemTemplate Column In DataGrid Pin
_AK_2-Nov-08 20:13
_AK_2-Nov-08 20:13 
GeneralRe: Find Control in EditItemTemplate Column In DataGrid Pin
itsruta2-Nov-08 21:44
itsruta2-Nov-08 21:44 
QuestionError #2048: Security sandbox violation in [modified] Pin
mangrovecm2-Nov-08 1:33
mangrovecm2-Nov-08 1:33 
QuestionRe: Error #2048: Security sandbox violation in Pin
DJANEK123425-Jan-09 6:32
DJANEK123425-Jan-09 6:32 
QuestionWhat could cause not to edit an item in listview at 1st click but 2nd click? Pin
JUNEYT1-Nov-08 9:52
JUNEYT1-Nov-08 9:52 
QuestionPlease help me with this problem!!!! Pin
mabbas_861-Nov-08 8:11
mabbas_861-Nov-08 8:11 
Hi,

I am developing a website, in which Admin fills out a form, in which he assigns tasks to members/users, which will display in the users page
according to their login id. Please note that i am using asp.net's Administer Website. Well, the problem is coming when a user logs in and goes
to MyTasks, this page comes out:


Server Error in '/TMIZ' Application.
--------------------------------------------------------------------------------

The Type property of parameter 'UserId' cannot be set when the DbType property is set.
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.InvalidOperationException: The Type property of parameter 'UserId' cannot be set when the DbType property is set.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: The Type property of parameter 'UserId' cannot be set when the DbType property is set.]
System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean ignoreNullableTypeChanges) +1750595
System.Web.UI.WebControls.ParameterCollection.GetValues(HttpContext context, Control control) +301
System.Web.UI.WebControls.SqlDataSourceView.InitializeParameters(DbCommand command, ParameterCollection parameters, IDictionary exclusionList) +264
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +472
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


This is the query which i am providing in the datagrid's configure datasource "SELECT * FROM [Tasks] WHERE ([UserId] = @UserId)"
When I check the query and provide the uniqueidentifier of userid (copied from the database) it gives me the correct result. But the problem is coming when i execute it.

Please Help...!!! Thanks
AnswerRe: Please help me with this problem!!!! Pin
Guffa2-Nov-08 17:19
Guffa2-Nov-08 17:19 
GeneralRe: Please help me with this problem!!!! Pin
N a v a n e e t h2-Nov-08 20:58
N a v a n e e t h2-Nov-08 20:58 
General64 bit issue. Pin
Haridas.R1-Nov-08 7:04
Haridas.R1-Nov-08 7:04 
GeneralRe: 64 bit issue. Pin
Paul Conrad1-Nov-08 7:19
professionalPaul Conrad1-Nov-08 7:19 
QuestionTableless HTML Design?? [modified] Pin
Blumen1-Nov-08 3:28
Blumen1-Nov-08 3:28 
AnswerRe: Tableless HTML Design?? Pin
JimmyRopes1-Nov-08 4:32
professionalJimmyRopes1-Nov-08 4:32 
AnswerRe: Tableless HTML Design?? Pin
Guffa1-Nov-08 6:35
Guffa1-Nov-08 6:35 
GeneralRe: Tableless HTML Design?? Pin
Blumen1-Nov-08 18:24
Blumen1-Nov-08 18:24 
AnswerRe: Tableless HTML Design?? Pin
N a v a n e e t h2-Nov-08 17:01
N a v a n e e t h2-Nov-08 17:01 
GeneralRe: Tableless HTML Design?? Pin
Blumen2-Nov-08 17:51
Blumen2-Nov-08 17:51 
AnswerRe: Tableless HTML Design?? Pin
Steve Echols2-Nov-08 17:58
Steve Echols2-Nov-08 17:58 
GeneralRe: Tableless HTML Design?? Pin
Blumen2-Nov-08 18:08
Blumen2-Nov-08 18:08 
GeneralRe: Tableless HTML Design?? Pin
Steve Echols2-Nov-08 18:39
Steve Echols2-Nov-08 18:39 
GeneralRe: Tableless HTML Design?? Pin
Blumen2-Nov-08 20:45
Blumen2-Nov-08 20:45 
QuestionDynamic Form [modified] Pin
Sennive1-Nov-08 3:03
Sennive1-Nov-08 3:03 
AnswerRe: Dynamic Form Pin
Prasanna Kumar Pete1-Nov-08 19:27
Prasanna Kumar Pete1-Nov-08 19:27 
AnswerRe: Dynamic Form Pin
RichardGrimmer5-Nov-08 2:42
RichardGrimmer5-Nov-08 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.