We are working on exception handling with ASP.NET web applications (with C# language). Would you please let me know the best practices of Exception handling?
Hi All
There is Role Management feature in ASP.NET
It works on local development machine.
For our project we need customers admin to be able to create new users and manage their roles.
So, basically same what aspnet_regsql.exe does.
Question is
Should we develop our own pages and forms or use some ready made tool?
Thanks!
Why isn't this working?
<ajaxToolkit:TabPanel Enabled='<%# User.IsInRole("admin") %>'...
While this works:
<asp:TextBox Enabled='<%# User.IsInRole("admin") %>'...
Hi,
I have an ajax web application(asp.net). some of users report the a problemt that when they work sometimes by system ( and pages who have ajax calls) their connection to server will intrupt and just a blank page they will see.
they can't browse any other page on my site while they close all open browsers and reopen site.
Is there any idea about this and how can I fix it?
thanks
Mehdi
Hi,
does anyone have any idea how I can get started building a search engine for my asp.net mvc site using entity framework. I plan to build something like: http://www.carsguide.com.au/search/?N=4294962119++492&type=cars
there on the left there is a refine search option panel.
What's the best approach to design a model for the UI and optimized query with entity framework.
I have an ASP.NET linkbutton control on my form. I would like to use it for javascript on the client side and prevent it from posting back to the server. (I'd like to use the linkbutton control so I can skin it and disable it in some cases, so a straight up tag is not preferred).
How do I prevent it from posting back to the server?
Hi i created one project in ASP.Net using SQL Server 2005.In that I got test connection succeed came but i got the following Error in coding .How to solve this
Error message is
Connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (Provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I have seen at least two ways to include an external log4net config file in an ASP.NET web application:
Having the following attribute in your AssemblyInfo.cs file:
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)]
Calling the XmlConfigurator in the Global.asax.cs:
protected void Application_Start()
{
XmlConfigurator.Configure(new FileInfo("Log.config"));
}
What would be the best practice to do it?
Im asp.net mvc3 c# code returns json list like this:
return Json(new { name = UserNames, imageUrl = ImageUrls });
UserNames and ImageUrls are both List types
And this is my jquery
function StartSearch(text) {
$.ajax({
url: '/Shared/Search',
type: 'POST',
data: { SearchText: text },
dataType: 'json',
success: function (result) {
$.each(result, function (i, item) {
alert(result[i].name);
});
}
});
}
How i can get names and umageUrls?
Thanks
I have a project that will basically be a large brochure html website. Although some content could possibly be database driven in the future. I use ASP.NET MVC for any database driven websites usually, but not sure whether to use it for brochure html websites.
Hi, I'm trying to accomplish something like this (http://picturegroup.com) , where you have images displayed in several columns, but as you resize your browser, columns will (dis)appear so to fit what you can see on the screen.
Any ideas on how can I do this (links, etc)?
Thanks!
PS: Bear in mind that I'm quite a ASP.Net noob
Using the asp.net file upload control is very easy, i'm trying to squeeze it into my site and the dam thing is very ugly!. Can I not change the browse button to an image of my choosing ?
So far i'm failing to achieve this seemingly simple goal. Any ideas on this one ?
Thanks
Why does the property SessionID on the Session-object in an ASP.NET-page change between requests?
I have a page like this:
...
<div>
SessionID: <%= SessionID %>
</div>
...
And the output keeps changing every time I hit F5, independent of browser.
I've seen this work correctly in other projects.
Hi Team,
I am using a dropdown list in ASP.NET with C#.
I am trying to bind a dictionary to the dropdownlist.
How can we specify the "Text" (key of dictionary as Text of drop down) and "value" (value as Value) for the dropdown?
Could you please help?
Note: There is a constraint that a class should not be introduced for this purpose. That is why I am trying to use a dictionary.
Thanks
Lijo
can anybody please give me readymade application of asp.net mvc in which rss xml file is generated dynamically,and also database structure by using entity model?
thank you.
Hello.
I'm using the AjaxToolkit in asp.net project c# code.
I have a script managet and an update pannel in my page. It all works perfect.
The only problem is that I can't figure out how to show the Ajax loader gif while the request is processed.
Any idea?
TY
What would a simple unit test look like to confirm that a certain controller exists if I am using Rhino Mocks, NUnit and ASP.NET MVC 2? I'm trying to wrap my head around the concept of TDD, but I can't see to figure out how a simple test like "Controller XYZ Exists" would look. In addition, what would the unit test look like to test an Action Result off a view?
Hi: Am trying to understand the ASP.NET MVC ViewData with respect to its size. Since this object is passed between Controller to View, how big this could be? Say for example, if DataTable is passed from Model, and Controller is going to pass it to View. Is there any best practices OR any one had any bad experience to share here?
Thanks in advance.
i want to develop web page in asp(2.0) c#. in this page i want to create and show multiple thiumbnail. for example c:/image and this folder have 5 .jpeg file. when run my web page then show all thumbnail of 5 images without saving thumnails.
it very urgent
How does one be called a ninja ASP.Net programmer?
What set of tools and immediate knowledge(Without having to open MSDN, SO, or Google) should be known to be considered a master?
Webforms or MVC...
Hey Guys,
I have a asp.net website and I am accessing that web service from my iPhone app to get data.
The WCF web service produces data as JSON.
I want to put some kind of authentication on the WCF. What you you guys recommend?
Thanks