How do I check that a stored procedure exists using ADO.Net? Is there a specific way to do this (apart from executing SELECT OBJECT_ID() and checking the result)?
HttpBrowserCapabilities browse = Request.Browser;
just seems to bring back IE or Netscape for all other browsers.
I have updated the C:\WINDOWS\system32\inetsrv browscap.ini file on the developer pc that has asp.net c#.
My requirement is to trap the clients browser in server side code.
Thanks.
hello i have created one windows application in c# .net and its working fine in windows xp, but when i try to install the setup in windows 7 or vista,the setup never runs.. should i have to write some code for it...?
please help
Thanks & Regards
Deepu
Hi lynn,
Can u pls help me for the below issue.
I have sha1 value in mssql table (Password is encrypted using algorithm SHA1 which provided in Microsoft .Net library) .
I created one php application, in that i need to compare these encrypted value.
Thanks
Hi,
I'm thinking of developing the following but wondering if it already exists out there:
I need a SQL based solution for assigning and managing localization text values for an asp.net site instead of using RESX files. This helps maintain text on the site without having to take it down for deployment whenever an update is required.
Thanks.
I have to have several certain cache-control directives set on an ASP.NET page in order to pass a Hailstorm security scan. For example, it wants me to have
Cache-control: no-cache="set-cookie"
in addition to
Cache-control: no-cache
I have been setting the latter with the following line in my C# codebehind:
Response.CacheControl = "no-cache";
Is there a special way to indicate both directives at once? Do I just separate them with a semicolon?
I'm considering building a Church Management System (ChMS), essentially a CRM, but specifically tailored for churches. I've looked at several existing CRM and open source ChMS solutions but have not been satisfied with any of them. Before I start writing something from the ground up - I was wondering if anyone was aware of an open source asp.net application that might be a good fit for this project? Particularly, the application needs to perform CRUD and optimally allow for dynamic user-based creation/editing of fields associated with contacts etc.
I couldn't find any documentation around using multiple forms in an ASP.NET MVC 2 ViewModel approach.
i.e. In the built in application when you select New MVC2 web app, the register page uses a ViewPage which inherits like this:-
Inherits="System.Web.Mvc.ViewPage"
I wanted to use that approach on a page with multiple forms, but that RegisterModel only supported one form.
Hi,
I am planning to buy a new laptop to learn asp.net web applications and also windows applications. Do we get IIS7 installed when we buy the home edition of windows 7 or should we buy windows 7 professional version?
I am processing some CSV file which i have copied in Bin folder of My ASP.NET Website.
When i execute
using (IDataReader csv = new CsvReader
(new StreamReader("sample.txt"), true, '|'))
{
.....
}
it complains me that "sample.txt" not found in "c:\Program Files\.....\"
Won't the runtime automatically look into the bin folder?
what modification do i need to do?
I've been searching on how to do Unit testing and find thats is quite easy, but, what I want to know is, In a asp.net mvc application, what should be REALLY important to test and which methods you guys use?
I just can't find a clear answer on about WHAT TO REALLY TEST when programming unit tests.
I just don't want to make unecessary tests and loose developement time doing overkill tests.
I'm not sure if this valid C# but hopefully you get the idea. :)
switch (msg.GetType()) {
case ClassA:
// blah
case ClassB:
// blah 2
case ClassC:
// blah 3
}
How would I switch on an object's type but using VB.NET's Select Case?
I'm aware that some might suggest using polymorphism but I'm using a hierarchy of small message classes so that really wouldn't work in my csae.
hi guys am new to vb.net, i am working on application that needs Shopping Basket,
can anyone help me how to add product details in basket and is will carry to the new page ?is it with the help of session ?
I m using Microsoft Enterprise Library 3.1 for Exception Handling in asp.net, the erors are stored in Event Viewer of the system . Instead of Event Viewer I need to store these errors in a log File using Enterprise Library. Suggest some methods to implement it. Thanks in advance.
I am building an ASP.NET Web User Control which has a panel within it.
How do I make the Panel within the user control resizable (i.e. with handles) at design time in Visual Studio.
I need to create a design class or something??
Thanks.
Is there a .NET API available to get data from your XBox Live account?
All I'm really interested in is who's online, but messages would be cool too. And some sort of event driven notifications of user sign-on would be great, but I'll poll if need be.
I need to handle all the exceptions globally in .NET web service, i tried using Application_Error event in global.asax, but it's not fired in web services case, it works fine for web based applications.
Any suggestions???
Is there anyway i can mention which CSS file should be attached to my Page automatically when running A Page with ASP.NET Themes /Skins ? I want to associate my own CSS which resides in a folder other than the APP_Themes Folder to the Page
UPDATE: looks like I've misunderstood what TempData is for and what it isn't. It definitively shouldn't be used to "keep certain session-wide data" as I asked initially (see ASP.NET MVC TempData Is Really RedirectData why). I've modified the question accordingly.
Has anyone used CookieTempDataProvider for TempData storage? Are there any caveats to watch out for (apart from keeping the session storage small)? Any issues with using it on Web farms?
I have a .net Console Application called FooConsole. When I build and deploy it, I see that the App.config file from my project is deployed to FooConsole.exe.config.
How can I deploy the .config file to Foo.config instead of FooConsole.exe.config and still have it read as the default .config file?
I have a submit button which has been working to submit my form in ASP.NET-MVC.
I would like to attach a jQuery dialog to the button click. If the user exits out of the dialog, then I would like to exit from the submit as well.
I have dialogs hooked to other buttons, but not submits. How can I do this?
Hi,
I want to programatically create a directory on the server using ASP.NET.
I have done this using System.IO's Directory.CreateDirctory. however, the newly created folder is not accessible in the code.
after searching a bit, I came to know that the newly create folder is not included the project and hence not accessible.
Can anyone please help me out on this.
Thank You
Is there something similar to "wait window nowait" in Windows Forms (.NET VS2008) ?
This is a commonly used sentence in Visual FoxPro for debugging purposes and "quick and dirty" thermometers.