I have a system setup as follows:
User Control Called "Main" when I click a button in "Main" another user control (user control "A", user control "B", user control "C") is populated inside a placeholder of "Main" depending on some logic either A,B, or C is populated.
User controls A,B,C have many buttons on them as well. They Also hav...
I need to programatically add or modify the following section in an asp.net web.config file:
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>
I could manipulate the file at t...
hi guys,
our dev team is currently using asp.net 2.0 and after a lot of browsing and cross site referencing i found that the new in thing is the asp.net MVC but found that there's a few things that it can't do such as support asp.net controls, view state.
i'm not sure what are the other limitation besides the total change of paradigm w...
I'm trying to retrieve a custom Attribute set on a page's class from inside the MasterPage. Normally to do this I would need to reflect directly on the specific class, but inside the Master page it's always referred to as the Page type (the parent class).
How do I determine the specific type of the Page property?
Here's an example of w...
I have a web application with asp.net 2.0 and I want to create a dropdown menu showing the printers installed on the client machine? How is that possible?
I tried the following code
foreach (string strPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
{
// add to list
}
but it shows only the local printers attac...
When I update a gridview on my page (asp.net 2.0) the font is resized to around +2 points, its very strange. I've had a look through the stylesheet to see if there is anything dealing with postback/updating/deleting records from a gridview and can see nothing. Any help would be greatly appreciated.
...
Hi,
I have a control that inherits from System.Web.UI.Control and contains generic HTML controls rather than asp.net server side controls. I use Page.Request.Form[Control_id] to get the value of one of the controls. This basically works accept if I have a gridview that contaiins a column of these custom controls and I add a new row [ro...
I'm currently trying to move through all the values added to a listbox by the user, however, I want to retrieve the actual value of each item in the listbox and not the text.
I've gotten so far with the code below, but that only gets the text and not the value.
For Each item In SelectedStoresLB.Items
Dim tCompany As Integer...
I've got two questions on how to do things in the new GridView. I'm used to
the DataGrid in ASP 1.1, so I need the equavalent in ASP 2.0 Gridview.
1.) What is the equavalent for Item Command event in GridView? I thought it
would be RowCommand, but I can't get that event to fire with a dropdown list
field that I drag/drop in a template c...
I'm deploying a new .Net 2.0 Asp.Net app with StructureMap 2.0 to a new environment for the first time.
StructureMap Exception Code: 100
Expected file "StructureMap.config" cannot be opened at {pathremoved}..\StructureMap.config
This is confusing because I explicitly told it not to use a config file in my app, I'm doing it all throug...
My webservice produces a "Service not available" error first, then when I restart the IIS service it works. When i checked the eventlog I found this error concerning
ASP.NET 2.0.50727.0
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/13/2010 5:31:02 PM
Event time (UTC): 1/13/2010 10:31:02 PM
Event...
I'm attempting to use business objects as a datasource for an ASP.NET Microsoft rdlc Report and I am having problems displaying the values of subobjects in the report.
For example, if have the following two classes 'Customer' and 'Address'.
Customer
FirstName
LastName
Address
etc.
Address
HomeAddress1
etc.
...
Our company currently has a web site which is deployed in Windows 2000 OS, which means that we could only install .NET 2.0 on that machine. Upgrading the Webserver OS is out of the question, since this web server also hosts other web applications in our country. As also part of our IT's policy, for security reasons the web sites are not ...
i have created persistent cookie using expiry property,but after using that cookie i need to delete that cookie i tried it by setting expiry property but it didn't get expire..
please help me...
...
I'm running an asp.net web application with c#. The following is used:
- Windows 2003 server
- IIS6.0
- .net Framework 2.0.50727
I'm trying to implement Forms Authentication and have entered the following code in the Web.Config file:
<authentication mode="Forms">
<forms loginUrl="01_Login.aspx"
name=".ASPXFORMSAUTH"
...
i have completed asp.net website.I have domain name. after completing precompilation
(Build->publish website) i tried to post my site into server via filezilla. when i try to view my site in internet explorer it shows the coding only.i m using parallels plesk panel 9.2.3. pls help me
...
I'm having a problem with a web app I'm managing. Users starting receiving the following error occasionally:
Validation of viewstate MAC failed. If
this application is hosted by a Web
Farm or cluster, ensure that
configuration specifies
the same validationKey and validation
algorithm. AutoGenerate cannot be used
in a clu...
I am working on an ASP.NET 3.5 Web Application project in C#. I have manually added a Google-friendly sitemap which includes entries for every page in the project - this is not a CMS.
<url>
<loc>http://www.mysite.com/events.aspx</loc>
<lastmod>2009-11-17T20:45:46Z</lastmod>
<changefreq>daily</changefreq>
<priorit...
When adding new DB records to a ListView, I want to update the date/time stamp of the containing ASPX page for SEO purposes. Is this possible and how might I go about it?
UPDATE:
I found Touch for Windows, bu would still prefer any kind of clever hack just to do this programmatically:
http://www.softpedia.com/get/System/File-Managemen...
The docs for @MasterType have this example.
<%@ Page masterPageFile="~/MasterPage.master"%>
<%@ MasterType virtualPath="~/MasterPage.master"%>
Why is @MasterType even needed? Couldn't the compiler automatically take the same actions based solely on @Page masterPageFile? When would you not want to use both?
...