|
Hi friends,
thanks for ur reply...
i have used both client side and as well as server side controls.
my doubt is which one is fast...
i think validation control is not required for is post back method.
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
hello,
i have excel from which i need to read the data.
Excel having groued columns so iam not able to read those columns.
can any one tell me how to un group excel column and save tht changed excel.
thnaks in advance.
|
|
|
|
|
Mugdha_Aditya wrote: hello,
i have excel from which i need to read the data.
Excel having groued columns so iam not able to read those columns.
can any one tell me how to un group excel column and save tht changed excel.
How does it related with ASP.NET ?
|
|
|
|
|
i need to do this in asp.net page thorugh code
|
|
|
|
|
Mugdha_Aditya wrote: i need to do this in asp.net page thorugh code
So why post in the C++ and C# forums?
It's time for a new signature.
|
|
|
|
|
Hello Guys,
I am doing sample in order to improve my .Net Skill.
this is my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
namespace Sample.App_Code.DataAccessLayer
{
public class ItemDB
{
public static int Save(Item NewItem)
{
int result = 0;
using (SqlConnection myConnection = new SqlConnection(AppConfiguration.ConnectionString))
{
SqlCommand myCommand = new SqlCommand("sprocInsertUpdateSingleItem", myConnection);
myCommand??????????????????
}
return result;
}
}
}
whenever after . I press spacebar to get the list of command properties, I can't see anythings. for example at the top of program, when I use
using system.??????
I can't see system.data
could you please tell me what could the problem?
|
|
|
|
|
This is not an ASP.NET question, it is a tool question. I will assume you are using some edition of Visual Studio, and for some reason are not getting Intellisense to work for you.
AFAIK it is on by default. It can be switched off through the menu Tools/Options/Editor, then either "All Languages" or the specific language you use, then the checkbox "Statement completion: autolist members" should be checked.
Of course it only works when the start of the statement or expression is correct. If e.g. you enter "using system." (note lower-case) nothing is going to happen at all. I guess it also needs to recognize your language from the file extension; if you add a file with a silly extension, no syyntax coloring nor any Intellisense will be offered.
Furthermore, if you are using a less popular DLL, you need to "Add a Reference" first, i.e. tell your project (see the Solution pane) you're interested in a specific DLL file. Only then will Intellisense include it in its bag of tricks.
|
|
|
|
|
firstly, thanks for your reply.
I follow your direction and I see some of them. however, when I wanna use system.data i just see system. I mean the Data doesn't come in list.
what could be the problem? do I have too add specific Dll?which DLL?
|
|
|
|
|
The namespace System.Data can be found in the System.Data.DLL file, so yes you need to add its reference.
For each type of project a number of references get added to the project automatically, and a number of using statements get inserted in any file you create.
For each .NET class in the FrameWork, the MSDN documentation would mention the namespace and the assembly.
|
|
|
|
|
Actually, I add this DLL to my reference. but still I have the same problem.
I can't see any thing regarding System.data;System.data.SqlClient;
I have googled it but couldn't see anything?do u have any idea?
I appreciate if you help me in this matter.
|
|
|
|
|
if things got messed up, as an experiment, create a new (console) project, add a System.Data.DLL reference, open the one source file you've got (probably Program.cs) and type using System. taking care of casing. It must list quite a lot (as System.DLL itself is always present), including some from System.Data
ALternatively, download the project from a CodeProject article and see what gives.
if that fails, either you have inadvertently changed some other setting that happens to be relevant, or your VS got damaged and you might need to reinstall.
If it all continues to fail, report back with OS name, VS version and edition, show the source code snippet.
|
|
|
|
|
the first approch work for me. I create new console project. there are many DLL like system.Data and etc in the list.
but when I open my project I faced with the same problem,again.
what could be the problem?any suggestion?
|
|
|
|
|
Just out of curiosity..
Are you using lower case "system" ? .
Start with camel case "System.Data".. not "system.Data" ....
|
|
|
|
|
no, I am using System.?????
after . I can't see Data or Common or Sql... .
|
|
|
|
|
In Visual Studio 2008, select Tools > Options > Text Editor > All Languages. Ensure that the checkboxes in the Statement Completion section are actively checked (not grayed out).
|
|
|
|
|
I have the same problem,yet.However I follow your instructions.
I will re-install VS2008 again.
|
|
|
|
|
I re-installed VS2008.
I follow this step to create my project:
File->New->Project->ASP.Net Web Application
then I craete App_Code Folder and App_Data.in App_Data I add my database and in App_Code I create 3 folders
1)BusinessObject
2)Business Layer
3)Data Access LAyer
in Business Object I add my classess and when in DAL I wanna interact with Database, I can't load any DLL concerning SQL. like System.Data or System.Data.Common and the like.
Please, help me in this matter.
|
|
|
|
|
So one (small) project works fine, your actual one does not. Therefore it is damaged. Try removing its (or all its) obj folders. Then click menu Build/Clean Solution, finally do a full rebuild. Now try again.
If that does not help, exit VS and delete your project files (*.csproj). Create new ones, adding your existing source files to them, setting all required references and dependencies again.
|
|
|
|
|
after re-installing and following your steps I got the same problem.whenever I use web application this problem occur. In console application I haven't this problem.
Please help.
|
|
|
|
|
It is really weired; in my project, I craete and folder with App_Code.if I add classess inside this folder, I face with the problem. However, If I change the folder's name it works properly.
Just wondering what could be the error
|
|
|
|
|
I am working my way through a .NET programming book and in the chapter on design patterns they cover the MVC pattern.
The authors state that MVC is not easily implemented in most of .NET because the controllers responsibilities are spread out among the event handlers, the framework, the CLR and the OS.
Does anyone use the MVC design pattern in ASP.NET implementations? If so do you believe there is a distinct advantage to using it over the N-tier pattern?
|
|
|
|
|
JimmyRopes wrote: Does anyone use the MVC design pattern in ASP.NET implementations? If so do you believe there is a distinct advantage to using it over the N-tier pattern?
It's one of those things where YMMV depending upon the task.
We implemented MVC based website at my last place of work, but it fitted the problem domain quite well (processing of Mortgages for multiple clients based on XML-defined state-machine and rules engines). We created sections of "View" that fitted tasks and served these up on the decisions of the controller (behind a WCF service). There is an MVC framework in the latest release of .net, so this might be worth a punt, I haven't tried it.
If your site is more static / random access there is a good chance the MVC will be more trouble than it is worth.
ragnaroknrol The Internet is For Porn[^]
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Thanks for the insight into MVC and the type of problem that is a good candidate for MVC implementation.
Right now I am just trying to upgrade my .NET skills a bit and finally got a Windows hosting service so I can experiment with various ASP.NET design patterns.
In some sense MVC is a solution searching for a suitable problem for me. I will keep it in mind and if a problem like you described comes along I will see if I can implement it with MVC.
Unfortunately, the hosting service I have only supports up to .NET 3.5 so I won't be able to look into the latest MVC framework of .NET 4.0 yet except on localhost of my development machine. When I get a little time I'll play around with it to see how it works.
Thanks again for your response. At least now I have an idea for what type of problem MVC is suited.
|
|
|
|
|
MVC 1.0 is supported in Framework 3.5 so you don't have to wait for 4.0.
This was built with a beta version but it should give you a start
ASP.NET MVC - Part 1[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks for the article link. I'll look into it.
Do you use MVC as a general solution or do you just ues it for specific types of problems?
|
|
|
|