I have to handle error related to web application. I am not sure how its works. I am thinking that I will add an error page (error.aspx) and in global.asax ,application_onError, I will redirecting the user to error page and that should be enough ! i mean it will handle error automatically.
I want to be able specify to do the following: Specify configuration settings such as appSettings and connectionStrings for multiple web apps in IIS7 No editing Machine.config or the machine-level web.config Web apps are distinct web sites in IIS (not subfolder apps) Is this possible without just duplicating the configs for each app?
I have an ASP.NET 3.5 Web Application using the Default membership provide provided by .NET - I have created a login page and create user page, etc. etc... The problem is, if you're on the site and you are authenticated, and then you go to a link on the same authenticated folder (Called MemberPages) but you go to a SSL location, it asks you to enter your username and password again! Is there anyway to fix this bug.HomePage -> Login.aspx -> Enter your username and password -> Access MemberPages/Default.aspx -> Then a link called Purchase a Product -> suppose to take you to[URL]
I have a form that allows a user to import a spreadsheet. This spreadsheet is generally static when it comes to column headers, but now the users want to be able to include an optional column (called Notes). My code crashes when I try to read the column from the spreadsheet if it doesn't exist.
I have a project who build in MVC 1 and i make a new fresh project to migrate them in MVC 3. so it's work fine. but whenever it's come to done or complete we hear that not make changes in Admin panel.so i copy paste the model [logic module] from MVC 1 to MVC3 and now many of code was not worked. they used dll to use logic. when i try to use them in my project who is new version that's not worked.now i thing to migrate the MVC 1 project to MVC 3 and the taks and changes i do last days i integrated in old one.well tell me the way i can use to migrate the MVC 1 project to MVC 3 razor without making new project. means changes in old and make them work fine in razor.
Edit: I solved my problem but if you have anything to add do. Note: I did not create the DB it was created by Wordpress hosted on GoDaddy with my site I have a MySql Database called "wordpress" (for clarity). I want to be able to grab the most recent post from my blog and show it on the landing page for my url. So my thought is this: connect to the MySql DB, run a query to grab the most recent post, display the post.
I built a class to handle the connection and process the request:
public class DAL { private string connectionString = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=[server here]; PORT=[port]; DATABASE=wordpress; USER=[user name here]; PASSWORD=[password here];"; private OdbcConnection blogConnection;
having trouble defining bindings using ninject.I am in a standard ASP.NET WebForms application. I have defined an http handler to Inject dependencies in pages and controls (Property injection).Here is what I am trying to do:I am creating a custom combobox usercontrol. Based on the value of an enum on that combobox, I want to be able to Inject a different object in a property (What I am trying to do is a bit more involved than that, but answer to this should be enough to get me going).
Having trouble putting together a good solid newsletter.Can some of you experts help me with this problem. Either with code or link tutorials.everything!
I have a repeater that retrieves questions from a database and displays them on the screen along with a group of radiobuttons. The radiobuttons display correctly and seem to work (only one can be selected per question), but I'm having trouble referencing the buttons from code-behind (C#) to see which button has been checked. So far I've been trying to access the radio buttons this way:here "current" references the index of the current question,
Things like .Checked (after the code above) do not work since the code does not recognize the returned item as being of type Radiobutton. The radio buttons are grouped, so if there is a way to find out via the groupname
I have a table that could look like the left table in the following picture, but i want to present it as the right table in the picture. http://pici.se/549963/?size=fullsize
So i've found out that i could use pivots to do this, but am having some trouble getting it to work, so if you know how to do this.
I have a panel on my page called pnlLogin.In the code behind I have the following line.pnlLogin.Visible = FalseThis errors out when run everytime with the "Object reference not set to an instance of an object." I have done these a million times before, but this page is giving me all sorts of trouble.How could an existing control give this error?
I'd like to pull several NewValues from a FormView and write them to a database as part of the Update command.For some reason, I am unable to do this using the following code. Is there something I am missing?
So I've been teaching myself ASP.NET and VB for about 3 weeks now, having trouble with datatables, not sure how to get the rows to line up like I think they should. My code:
[Code]....
Which gives me the data output I want, but the days are adding rows underneath the previous day instead of lining up side-by-side. The idea is that once it's working I'll replace the specific dates with calendar controls. The gridview currently outputs like this:
how to implement page level and control level security in MVC applications. Also I would like to know the definition for Page Level and Control Level Security in MVC. Please refer me if any third party tools avilable to implement security in MVC.
early in the code I have this set of intializations...
bCookie2["System2"] = ddlSystemsMain.SelectedIndex.ToString(); bCookie2.Expires = DateTime.Now.AddYears(2); Response.Cookies.Add(bCookie2); Response.Cookies["System2"].Expires = bCookie2.Expires; //Maximum year of cookie's life
Using ASP.Net, I am trying to determine the actual URL requested by the user. For example if I type the following into my address bar: [URL] Fiddler shows me that this is the URL being sent over the wire however by the time it reaches ASP.Net all of the variables in HttpContext.Current.Request are showing this URL: [URL] The IIS logs show the same cleaned up version of the URL as ASP.Net. This causes some of the relative links on the site to break so I would like to at least detect and log these requests. I am using IIS7 on Windows 7 and .Net 3.5 SP1. What is doing this translation and how can I find out the original URL?
I made a progress bar for uploading by using web services and javascript. But I got a problem. It is ever late web services than file save function. Thous, the information is not real in client side. How can I do?
I need to add a "real-time" element to my web application. Basically, I need to detect "changes" which are stored in a SQL Server table, and update various parts of the UI when a change has occured. I'm currently doing this by polling. I send an ajax request to the server every 3 seconds asking for any new changes - these are then returned and processed.
It works, but I don't like it - it means that for each browser I'll be issuing these requests frequently, and the server will always be busy processing them. In short, it doesn't scale well. Is there any clever alternative that avoids polling overhead?
The Get of the Visible property of a control recursively looks up the tree to indicate if the control will be rendered or not.
I need a way to see what the "local" visible value of a control is regardless of what its parent controls are set to. i.e. Whether it itself was set to true or false.
I have seen this question, How to get the "real" value of the Visible property? which uses Reflection to obtain the local state, however, I have not been able to get this working for WebControls. It's also a rather dirty method of getting the value.
I have come up with the following extension method. It works by removing the control from its parent, checking the property, then putting the control back where it found it.
public static bool LocalVisible(this Control control) { //Get a reference to the parent Control parent = control.Parent; //Find where in the parent the control is.
[Code]....
Is this an acceptable way of doing this? It works fine and I haven't come across any performance issues. It just seems extremely dirty and I have no doubt there could be instances in which it might fail (for example, when actually rendering).
i need to build asp.net program that connect to sql-server 2008 i have in my program row count that count my database rows. i need to see allwais this row count. is there any way to show this ? any refresh ? or i need to run all the time any query ? any timer? i need something that not take A lot of resources
I have a set of forms that user must fill, and those forms represent some html output. I want user to be able to see how his input will look like while he filling the fields. So, just wondering if anyone know's a good way or even maybe there is such a thing as plugin or something.
I'm looking for a way to put real time features into my web site. The idea is asynchronous communication between 2 people - like a chat session. If I use the chat example - I'd like the second person to know that the first one has sent a message to him, without refreshing or doing something active on the web page. Polling is not a good idea here - so is there any other solution? the back-end could be ASP.NET or PHP (ASP.NET preferred).