I'm new to asp.net and I have a question.I'm working on a page where it has 5 Buttons. Add Edit Delete Save Cancel.I want each button pressed to change the page mode, a clear change would be the enabling/disabling of various controls on the page, including the Buttons themselves:On pressing Add, Page mode is changed and the buttons is disabled where Save and Cancel become enabled.I used Enum PageMode (View, Add, Edit), and a static variable "_pageMode", turns out it's a bad idea since more than one instance of that page can exist at one time, thus overriting each others' modes.
I a formview object. I have created an edit temple and an empty template Whehn there is data in the table nor probem When my table is empty i got the empty template to display when I click insert I get the error " Form must be in insert mode" How can I tell if there is no data on the page load so I can maybe do this:
I have a page create-quote.aspx. I want to open this page in different modes, depending on whether a querystring parameter is present or not.My question is at which event should I check, If I have a querystring parameter or not.I think, it should be preinit, what do you say.
Is there any calendar control out there that will enable to me to switch between the date selection modes. For example at one instance I want the user to select only the month. At another instance only the week. At another instance only the date. This should happen through one control and the selection mode will be set dynamically.
I encountered with some strange behaver in web parts. I have a web parts, and everything works fine locally, on my computer, but when I uploading it to the web server I have only one mode off display mode, the browse mode. The edit mode and design mode are disappeared.
I don't have any users.
I have tried to add the SharedScope, but didn't succeed yet, this is what I add in web.config:
I have a small question about the DetailsViewControl(DV).Probably most of us know there are three modes of a DV, edit, insert, and read-only.So we got edititemtemplate, insertitemtemplate and itemtemplate.Is there any actual difference between the 3 templates? I mean, if we don't generate the edit, insert and delete button by default. They are just three kinds of templates with different names, aren't they.
I have a web project running fine with IIS 6, when I try to run this project in IIS 7 Integrated mode I am having all kind of problems with global.asax, it appears to me if any of the following objects or properties is access in Application_Start, exception will be thrown: HttpContext.Current.RequestHttpContext.Current.Reponse HttpContext.Current.Server.UrlEncode The exception will be something like:Response is not available in this context.I have no ideas why this happens. I am not even sure if it only happens in Application_Start since project could not execute. Also there might be more objects causing other problems that I haven't encountered yet.
I have Asp.net web application with two web.config files and one will be Forms Authentication mode and other will be Windows authentication mode.When i provide username and password in my login page (for both authentications login page will be same)based on the username(from database or local domain ).. switching has to happen between these two web.config files User Aurthentication is done using WebService.
i'm quite a newb in asp.net , so here we go:i used the dreamspark project in order to get VS 2008 pro (free and legal) , and then i started experiencing with asp.net .the problem is that whenever i choose the split mode, it doesn't go there at all, and whenever i choose the 'design' mode, the tab itself is frozen yet it's possible to close it. it doesn't matter what the file (with the aspx extention) has in it (even a new blank website) , it always happen.i've tried to re-install VS2008 (after uninstallation&restart) and i also tried to uninstall anything related to dot net (and then install what is needed again through the installer of VS2008) . i even tried out the express version but it didn't work for me.
I'm currently in the process of creating a webshop. This webshop supports theming, but I also want customers to choose a lay-out. I can create multiple masterpages and create a handler to dynamically set the correct master page. But some components, like the shopping cart, are controls which have to be present in the master page and are also used in the aspx pages. The shopping cart control for instance, has an Update method which is called whenever the user adds a product to their cart. So the question is: can I somehow create a default masterpage which has all the components on it, but still be able to create multiple lay-outs. And how should I reference that master page from the aspx pages? I also thought of creating an Interface class which defines the masterpage and it's public components, but I don't know if I can reference an interface from aspx pages.
Is is possible to build a form, accept parameters and from THAT construct a new .ascx page AND the code behind for that page? What I'm proposing is having some code snippets that just need parameters added and can then be used to create a web user control that can be added to existing pages. This .ascx file would be a real file after creation, not dynamic every time.
I want to create a web page with a table on top and a scrollable panel. Similar layout to yahoo mail inbox page (list of inbox messages on top and the panel displaying details). Further more, the table displays general information list and the panel displays a list of detail records. when a user clicks a table row, the panel is going to jump to the specific detail row, similar to html anchors. Do you know how to implement this?
How can I build a query in a new page using the value from a prevous pages control's value. I can transfer the value to the new page, I just don't know how to use the passed value to build a query. I want to populate a data grid filtering with values obtained from the proveous page.
Every time I create a new aspx page and add some new photos and text, after I finish, I have to update page title, Web.sitemap, Sitemap.xml to feed search engines, static sitemap.aspx page, add photos to proper folders, update database to display feeds etc, and I have to remember to upload all new files including links to any new pdfs....This routine eats my time and drives me crazy.
I was wondering if there is such interface, where you need to create only 1 aspx page, for example "Articles" which can populate Texts, photos etc into pre-defined sections, but at the same time it displays with different URL's, so there is a permanent link to it. After you finish it creates a title automatically, based on article title, populates Web.sitemap - does all the dirty work. Similar to how blog engines, Joomla and Drupal work.
I've always depended on putting a control on an aspx page and double-clicking in design view to create my VB page. But this isn't happening in my current project. It creates an inline script in my aspx page instead. Where is the option or preference or XML file or.... that controls this?
the page is not showing in the main page just shows pdf reader loading then nothing happens. Even when i try to load another page which of type aspx same case its not being showed in the main page only windows authenticating box appears then page sleeps
however when i create the iframe using the page markup its being correct for both cases.
need some info regarding button click. I want to send mail with autorespond mail on single button click. Within that waiting time I want a screen that will show "REDIRECTING" (like gmail) and will show a "thank you" page after successfully sending themail.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> [code]....
I need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.