C# - Which Tool Is More Usefull For Code Generate
Mar 19, 2010i want to generate code for .net n-tier application.or 3-tier application.so which tool is more useful.
View 3 Repliesi want to generate code for .net n-tier application.or 3-tier application.so which tool is more useful.
View 3 RepliesI have an existing dataset in VS2008 and app works fine untill I tried to add new datatable.It gave me the following error -
Custom tool error: Failed to generate code. Unable to convert input xml file content to a DataSet. Invalid XPath selection inside field node.
And designer.cs got deleted.If I mannually add datatable in .xsd then it is good.But that option is not acceptable.
we have an existing ASP.net application that is undergoing expansion. The new functionality is all written in Silverlight 4. As part of that expansion I gutted all the old Linq to SQL and put Entity Framework 4 into place. To do this I created a standard .net Class Library and added my edmx files there. Naturally, the business entities created by this cannot be used in Silverlight. So I created a Silverlight Class Library and added all the business entities to that Silverlight Class Library as linked files. I changed the name space to be the same.
So I have the following assembly / namespaces
Company.Project.Dal.csproj / Company.Project.Entities (.net 4 class library)
Company.Project.Entities.csproj / Company.Project.Entities (SL4 class library)
With this architecture I was able to share my business entities with my SL enabled web services, my asp.net projects, my silverlight projects. Really it's a beautiful thing.
Once this was done I added "message" classes to Company.Project.Dal and again shared them with the other entites using linked files. These messages are things like MyObjectRequest; they are classes that have properties that can set to the ID of the record in the database you want to get, a search string for filtering by last name, first name, etc. (This is in the style of the Web Service Factory if you're familiar with that.)
Finally I turned the whole message into a generic using a base class called EntityRequest
[code]...
I corrected this error and everything went well for a week until I had to make my first change to the service interface. I added a new operation contract, clicked the handy Update Service Reference on my client and boom.
i was reading this post about adding the meta tags dynamically by code in asp.net 4 - but i need to ask what is the good for SEO , adding it static or no problem with adding it in code behind http://weblogs.asp.net/scottgu/archive/2010/01/05/asp-net-4-seo-improvements-vs-2010-and-net-4-0-series.aspx
View 2 Repliesi am developing an web application using vs 2008..( i am new to vs 2008)
Is there any .net tool to generate data access layer or common classes ?
Is it possible to run Visual Studio tool: 'Generate Local Resources' programmatically?
View 1 RepliesI've searched some FREE Controls, Templates, WebParts, Themes for SharePoint 2010, and its really hard to find good and free examples. Turned back into StackOverFlow and there is no Community Wiki for it. I want to open a Community Wiki about All Free SharePoint 2010 Controls, Templates, Themes, WebParts, etc... to collect them all in one topic.For example, there is a site about MOSS 2010 Free Controls in here. This site containt most MOSS versions controls, web parts. I want SO Users to add most usefull web sites for SharePoint 2010 Developers such as Free controls, themes, tools, etc.
View 1 Replieshow to generate HTML code from the code behind?
I would like to build a form that generate an html code inside a for loop.
I will let the user enter the photo name and No. of photos
Then I will generate an HTML code like this:
<a href="http://www.mzinj.org/images/gallery/Photo%20(1).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(1).jpg" alt="" width="345" height="247" /> </a> <br /> <a href="http://www.mzinj.org/images/gallery/Photo%20(2).jpg" target="_blank">
<img src="http://www.mzinj.org/images/gallery/Photo%20(2).jpg" alt="" width="345" height="247" /> </a> <br /> <a href="http://www.mzinj.org/images/gallery/Photo%20(3).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(3).jpg" alt=""
width="345" height="247" /> </a> <br />
depending on the No. of the photos the code will be duplicated in the loop
Then I will display the result of the loop in label or in a textarea to let the user copy it any where
The problem is that while compiling my code it considers the HTML code as a part of the behind file and gives errors on the single quote, the double quote and on the parentheses
What is the best free Code Generators for ASP.net C#? I know it is opinion based but I would like to have a list and I searched and found a few and some that said they were free but ended up only being a free trial.
Also what is the Best Snippet Tool to add snippets to Visual Studio 2008? I can not get the one I found to work since I am using a Server as my Development machine.
Can any one give me the tool link to check the asp.net application and code performance?
View 1 RepliesI am aware of a tool which MS has provided which tells you about coss site scripting attack etc.
The tool is [
But are there tools which you have used for ASP .NET applications which do similar to this and which one is widely used in ASP .Net applications ?
I have 25 websites in which each website have 500 pages. I want to know in which page the specific code was implemented let say if i want to know in which page <span>test<span> is implemented under each website. Is there any way to know through any tool or application.
View 1 RepliesI have an .aspx template to copy from and I need to generate code or to be able to edit the new file – as part of the back office...
View 1 Repliesis there any way via code to generate a PDF document?
View 4 RepliesSome time ago (like 3 or 4 years) I heard about ability to generate JavaScript (client) code based on C#.NET source code. I don't remember details, probably that was for validation purposes only.
View 3 RepliesI have a number of permissions, and based on a set of conditions these permission determine if a user can see certain features. I have written a helper function for this as the logic in the view became quite extensive.
Essentially I'm looking for a function the same as Html.ActionLink that I can access from a class file (Ideally if I can access the Helper that would be great) So I can do somthing like so,
public static string GetAdminLinks()
{
if(PermCheck)
{
return(Html.ActionLink(...));
}
}
is there any possibility to generate qr code in asp.net. QR code must have employeeid as base from sql server database.
View 1 RepliesI have to generate a unique customer code like this-
'cbd'+first letter of customer name+incrementer
here
cbd is hard coded means reamain fixed in each customer code first letter of cust_name is like
Bell Companies- B
and incrementer must be four digit number like 0001,0002,0888 etc.
Here incrementer
should start with 0001 for each customer means for EX-
BELL COMPANIES - CBDB0001
then it should increment for customers having name started with B
TEL POWERS- CBDT0001
then it should increment for customers having name started with T
I'm using Visual Studio 2008. I've added a control on a page but can't reference it in code-behind file. When I looked at the Code-Gen file, I didn't find my new control. It looks like Visual Studio didn't update Code Gen file to include my control. Is there a way to manually re-generate that Code Gen file?
View 1 RepliesI need to generate a random code using c#.
This code must be fulfill below condition.....
create approximately 8 random characters containing ( A to Z , and 1 to 0 only) .
I'm trying to generate some dropdownlists trough code. but i can't seem to access them.
[Code]....
Out of good design practice and organization, in which project should a local development SQL database be in a web based application? I'm just starting my assignment so I currently have 'CompanyName.Web.UI' and 'CompanyName.Domain' projects setup. Im using LinqToSql and creating my database from POCOS, meaning I'll have to create some code to generate the DB from my domain model. I.e.
DataContext dc = new DataContext(connString);
dc.GetTable<TableType>();
dc.CreateDatabase();
In ASP.NET MVC Application I would like to document my Views, so that I can generate a documentation (using NDoc). Since Views do not have a code behind the documentation should go somewhere into the View directly. I also do not want to generate code-behind file for each View in the project
Is there a tool/workflow/configuration that would allow me to extract inline documentation comments from aspx files (Views)
[code]....
s there any code to generate property automatically from datatable?I mean there is a table A with column id,name,address.Run the code and this will generate a class automatically to set and get property.Property of that class will be the column name of the datable A.
View 1 RepliesIs there any code to generate three or N tier architectue automatically?
View 8 Replies