Hi, I am executing an inline (NOT a Stored Procedure) parameterised insert command using the SqlDataAdapter.Update(Dataset) command, but I keep getting a DBConcurrencyException
when one of the parameters which is of the ntext
datatype contains the following character '['. i would sincerely appreciate it if someone could tell me why this is causing this error to be raised by the SqlDataAdapter.:confused: All the following special characters work fine when i do the insert. >~!@#$%^&*()_+=-`{}|\:";',.<>?/ ]
' inserts fine into the SQL MSDE 2000 DB that i'm using.:confused: Thanks in advance, Afzal "AV-E" Hassen
AfzalHassen
Posts
-
how do i resolve DBConcurrencyException when inserting value that contains '[' character. -
how do I read a files' or assemblys' metadata (date modified, assembly version, etc.)Thanks guys. i'll give it a shot :) Afzal "AV-E" Hassen
-
how do I read a files' or assemblys' metadata (date modified, assembly version, etc.)Hi, i've tried 'google'ing to find any article on how i might be able to read the metadata of a file or .net 2.0 rc1 assembly that i've built (e.g. the date the file was last modified, or the author of the assembly, it's version etc), but i seem to have hit a bit of a brick wall, i'm sure there must be a simple (or not) way to read this kind of information about a file programmtically. any help or nudges in the right direction will be greatly appreciated:) Thanks in advance. Afzal "AV-E" Hassen
-
RequiredFieldValidator Posting Back!!!?hey, My bad:doh:, I should have known to ask what version of ASP.NET you're using to develop with. You are correct, 1.1 does not have the validation group property, however, I wrote a quick test webform to see what properties need to be set in 1.1 .. and I found that the control did perform the intended validation on the Textbox i used. The only properties I set were... for the RequiredFieldValidator:
ControlToValidate = myTextbox
,Display = Dynamic
; for the button i setCausesValidation = true
and that was it. As soon as i selected to view the page in a browser, it worked perfectly. if this still doesnt help, then i would be just as stumped as you are..:sigh: Afzal "AV-E" Hassen -
Problem upgrading website from VS2005 beta 2 to VS2005 RC1hi, i managed to solve both of the problems,
AfzalHassen wrote:
however, for the most part all sub projects of the solution load correclty, but when i attemp to build the solution, i get the following errors from my web.config file: buildProviders add extension=".rdlc" type="Microsoft.Reporting.WebForms.RdlBuildProvider,Microsoft.ReportViewer.WebForms,Version=8.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" appliesTo="All" buildProviders the appliesTo attribute gives me an error "Unrecognized attribute'appliesTo'" for which i'm not sure how to resolve..THIS I SIMPLY REMOVED FROM THE WEB.CONFIG and controls add src="Folder/Folder/Control.ascx" tagName="MyControl" tagPrefix="custom"> add src="Folder/Folder/Control02.ascx" tagName="MyControl02" tagPrefix="custom" controls the error messgae i get here is:" The relative virtual path '**~/**Folder/Folder/Control.ascx' is not allowed here."THIS I ADDED THE tildo'~/' to the begining
AfzalHassen wrote:
and in the designer.cs files for some of my Typed DataSets.. i get the follwing error message: "'System.Nullable' does not contain a definition for 'FromObject'" the code the gets highlighted when i double click is the auto-generated code that Beta2 created when i double-click the error is : return System.Nullable.FromObject(null); FOR THIS A FOUND OUT I NEEDED TO RUN THE CUSTOM TOOL FOR THE DATASETCODEGENERATOR
hopefull this will some other lost soul like me :) Afzal "AV-E" Hassen
-
RequiredFieldValidator Posting Back!!!?hey Rahul, No problem, look carefully in the property explorer of the IDE (the pane where you set the ID of your control).. make sure that you select the
asp:RequiredFieldValidator
control in the designer for your page the property pane will show the available properties for theasp:RequiredFieldValidator
you just selected.. the propertyValidationGroup
is definitley there :) do the same for theasp:Button
control. let me know if i need to elaborate a little more.. :) Afzal "AV-E" Hassen -
access denied problem javascript [urgent]hi. I would recommend refraining from granting access to a page in your windows directory.. if the page is just a plain .html page then rather copy it to your web project folder the try the following..
function opener() { var mywin = window.open('./searchResult.html','mywindow'); }
hope this helps :) Afzal "AV-E" Hassen -
RequiredFieldValidator Posting Back!!!?Rahul.P.Menon wrote:
i have set the clientside validation property true for the button
Hi, have you set the
ValidationGroup
property of the asp:RequiredFieldValidator and the asp:Button ? if not set the property toValidationGroup = myValidationGroupName
for both the button and the validator controls. In addition, you might want to make sure that the propertyCausesValidation
of the button is set totrue
Hopes this helps :) let me know how it goes... Afzal "AV-E" Hassen -
Problem upgrading website from VS2005 beta 2 to VS2005 RC1hi, i recently upgraded a web solution from VS2005 Beta2 to VS2005 RC1.. and as such once i made sure that the Beta 2 was correclty uninstalled and i had RC1 installed, i expected an upgrade wizard to run once i had selected the solution that i want to carry on developing in RC1, but no wizard ran!?! not sure if one was supposed to run.. however, for the most part all sub projects of the solution load correclty, but when i attemp to build the solution, i get the following errors from my web.config file:
**buildProviders** _add_ extension=".rdlc" _type_="Microsoft.Reporting.WebForms.RdlBuildProvider,Microsoft.ReportViewer.WebForms,Version=8.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" _appliesTo_="All" **buildProviders**
the appliesTo attribute gives me an error "Unrecognized attribute'appliesTo'" for which i'm not sure how to resolve.. and**controls** _add_ _src_="Folder/Folder/Control.ascx" _tagName_="MyControl" tagPrefix="custom"> _add_ _src_="Folder/Folder/Control02.ascx" _tagName_="MyControl02" _tagPrefix_="custom" **controls**
the error messgae i get here is:" The relative virtual path 'Folder/Folder/Control.ascx' is not allowed here." and in the designer.cs files for some of my Typed DataSets.. i get the follwing error message: "'System.Nullable' does not contain a definition for 'FromObject'" the code the gets highlighted when i double click is the auto-generated code that Beta2 created when i double-click the error is :return System.Nullable.FromObject(null);
i've tried googling to see what changes were made between the Beta2 and RC1 but have had no luck.. could any one help me in this regard, please. a nudge or kick in the right direction would be great.:) PS. the soution worked perfectly in the Beta2 IDE these errors have occured since the upgrade to RC1.. Thanks in advance, Afzal "AV-E" Hassen -- modified at 5:37 Tuesday 13th December, 2005 -
how do i deploy an application that uses crystal reports?Hi, i've developed an application that makes use of crystal reports... when i test the ap on a machine that only has the .NET framework installed i get the following error "Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0,Culture=neutral,PublicKeyToken=692fbea5521e1304' or one of its dependancies. The system cannot find the file specified.":confused: i guess this means that the referenced assemblies are not being included/generated/ copied to the output directory... in either case, how do i overcome this set back??:sigh: i always assumed that if i developed an app that used Crystal reports that when i deploy, the IDE (VS2005 in my case), would create the necessary assemblies... any jelp would be great,:) Thanks :) Afzal "AV-E" Hassen
-
how do I use JScript to move one or more Items from one asp:ListBox to another..hi guys, I need to find a way to move one or more Items from one ASP:ListBox to another using client script coz I don’t want to post back every time the 'move left' or 'move right' buttons are clicked… I want to process the changes to the listboxes ONLY once the user clicks the another button which will post back the page so i can do my thing... is there a simple way to do this?? any help will be great... Thanks in advance! BTW i'm Using ASP.NET 2.0 Afzal "AV-E" Hassen
-
[Message Deleted][Message Deleted]
-
Trouble with Web Treeview controlThanks again, i had a look at that link and it turns out, all i really needed to was set the
SelectAction
property of the node that i didnt want to post back toSelectedAction.Expand
and hey Presto! the treeview works exactly like i needed it to.. thanks minhpc_bk :-D you've been a great help man! Afzal "AV-E" Hassen -
Trouble with Web Treeview controlhi, is the same possible with the ASP 2.0 treeview control?? the .queueEvent(....) is not supported by the control, so how might i be able to work around this?? Afzal "AV-E" Hassen
-
Trouble with Web Treeview controlI see, Thanks for the explanation :-) it cleared up alot for me :-) thanks again.. Afzal "AV-E" Hassen
-
Trouble with Web Treeview controlThanks :-) do these functions get placed in the .aspx or .aspx.cs file?? forgive my ignorance i'm TOTALLY new to ASP.NET Programming :-/ Afzal "AV-E" Hassen
-
Referencing GAC in ASP.Net Pagethe error you getting with the Code behind file is as a result of the ASP.NET 2.0b framework that gets installed with VS2005 To view the page though IIS select open Administrative tools from the Control panel-> double click on Internet Information Services (this will open up the IIS MC) navigate your way to Web Sites-> Default WebSite then select the application folder you are having the problem with, view the properties, then select the ASP.NET tab...there you will find a dropdown list that will allow you to change the framework used from 1.1 to 2.0 hope this helps :-) Thanks for your help, Afzal Hassen
-
Trouble with Web Treeview controlhi, i am having a bit fo an issue with a treeview controll that i am using on a web form. ROOT NODE CHILD CHILD NODE CHILD NODE CHILD I need the Treeview to do a PostBack only when the one of the CHILD nodes is selected, but at the moment a post back occurs at the NODE level as well. Is there any way that I could avoid the latter and only allow a post back when the CHILD node is selected??:confused: I want to execute a method on the Selected_IndexChanged event, but only when a CHILD node is selected. I dont want to postback unecessarily.. any help will be great :-) Thanks Afzal Hassen
-
Generating an activation code to enable use of an applicationhi, i'm trying to find a way that i can manage the use of a windows application by making use of an activation code which be used to enable the application and allow the user to use it. i want to be able to generate a fixed length code of not more than 20 characters.. i have been unsucessfull in searching the web for guidance in this matter... any help or pointers to articles will be great.. Thanks , Afzal Hassen
-
Help With a Combo Problemare you getting this problem only when the form is loading?? Afzal Hassen