In C++ it's recommended to have const-correctness everywhere. But since in .Net world, the string content cannot be changed, (new string will be created), do I still write String^ const?
I have an asp.net mvc app that is built to run as standard web app in iis or in the cloud.
I need to be able to determine if the app is being hosted in azure(dev fabric or cloud) or if it is being run as standard web app under iis.
How can I tell if it is running in cloud?
I was just thinking about it and since .Net has introduced properties is there ever a situation where you would want to leave your code as a method that returns a value as opposed to a readonly property.
I once read somewhere that apps should not copy data while doing an installation but rather all data creation must be done the first time the app is used.
Q1: Does this apply to Windows Mobile apps also?
Q2: Is it not okay then to copy a blank database to the \appdata\product\ folder and populate it when the user uses the app or must I wait for the user to se the app to even create the database.
Win Mobile
C#
.NET
I have an asp.net web page that creates a row of textboxes on the click of a button.
I am dynamically creating a TableCell, then a TableRow.
How can I add a space between two tablecells?
I want to split this text in to 2 parts with C#.Net windows application.
C:\Users\Microsoft\Pictures\2010-04-22\003.jpg
First part: C:\Users\Microsoft\Pictures\2010-04-22\
Second part: 003.jpg
Thanks.
I am using the asp.net with c# and using the update pannel as well as flash control i am getting the error sometime not all time and no page navigate after then plz help me out
following is the massange on the pop up window:-
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0"
Please Help me out sence may on the demo time the application may carsh
Hi,
In my project data is display as a table with first column ID as hyperlink. On hover on the first column i need to display all the information as another table(DIV). This should change dynamically(ajax) on the hover of each ID. I am using jQuery and asp.net 3.5
Please suggest.
I have been getting an error in VB.net "object reference not set to an instance of object". Can you tell me what are the causes of this error? thanks..
I have problem in generate report. I use crystal report 8.5 with vb.net 2008,what I want is when I generate report it will appear red value, if the value is more or less than actual value else it will give default value but when I put this code it give me wrong result
If {Intake.wheatType} = {Spec.WheatType} AND
{Intake.HB43} >={Spec.M_Min} AND{Intake.HB43} >={Spec.M_Max} Then
Red
Else
DefaultAttribute
this report is related with two tables, which is table Spec and table Intake. Could anyone help/teach me how to fix this problem
I looked at the MySql Connection Options and it doesnt seem to be there. Is there a way to create a read only connection/command for .NET? With SQLite i could specify read only=true to do this. What can i do with MySQL?
Hi, I'm trying to configure a websetup for the first time for our ASP.NET application which consists of 11 web services. Is it possible to create an msi that will install the app and the 11 web services and also set-up the app pools & create the apps in IIS? Or would I need an individual setup for each web service? Basically I need to make it as simple as possible for the client to release. Thanks for any help
In Asp.net project the Calendar Extender function is working well in IE but not In Mozzila,Crome etc.
that property is, when we click on top of the calendar then it open the more option for the year and month selection.
Is there a way to control access to methods to certain roles in .net. Like
class A
{
//should only be called by Admins**
public void Method1() { }
//should only be called by Admins and PM's**
public void Method2() { }
}
I'm using windows authentication only for retrieving user names and nothing more.User roles are maintained in a different application. I think it's possible through attributes but I'm not really sure how
Hi there,
I i want to schedule an asp.net page on my hosting, how to achieve it?
for instance, i have a page named myservice.aspx runing on my website.com/myservice.aspx
i want to run this page on every 24 hours. any idea?
There's a .NET assembly and it needs to have 3 instances running at the same time all the time how can I monitor this.
I am fairly positive it can be done by monitoring the system processes?
I'd like an easy way to display any TimeSpan as an elapsed time without using loops or custom logic
e.g.
hours : minutes : seconds
I'm sure there must be a .NET built-in or format string that applies, however I'm unable to locate it.
I am just switching from C to C# and would like to invest sometime learning database work. I am overwhelmed with the options: Linq-to-sql, ADO.NET. nHibernate, EntityFramework, plain old sql (I am used to this). Since I have only limited 'learning' hours available (about 2.5 hours per day), where should I invest my time?
I don't want to learn something that will be obsolete next month or for which no one will hire me.
I'd like an easy way to display any TimeSpan as an elapsed time without using loops are custom logic
hours : minutes : seconds
I'm sure there must be a .NET built-in or format string that applies, however I'm unable to locate it.
what can i do to check what platform a site is running, whether it's asp.net, and what kind of database engine it's using, and any other tools that are running? (given that it is not my site and i dont have access to it)
Which one out of following two is best wrt to performance and standard practice. How does .NET internally handles these two code snippets?
Code1
If(result)
{
process1();
}
else
{
process2();
}
Or Code 2
If(result)
{
process1();
return;
}
process2();
I tried searching, but I guess the <% $ % triggers something on google and it turns up nothing. What is this accessing in an asp.net .aspx page? I've used the = but never a $.