I have defined this in the web.config of a subdirectory
<namespaces>
<remove namespace="App"/>
<add namespace="Tom"/>
</namespaces>
App is imported in the parent web.config file, Tom and App have classes with the same names.
To avoid errors resulting from ambiguous class names I removed the App namespace from the sub-directory ...
The following works:
If 1=1
rdoYes.checked = True
Else
rdoNo.checked = True
End If
However, the following doesn't work:
IIF(1=1, rdoYes.checked = True, rdoNo.checked = True)
Why is this?
Thanks!
...
Here is my code:
.modalBackground
{
background-color:Gray;
filter:alpha(opacity = 70);
opacity:0.7;
}
.panelStyle
{
background-color:White;
width:400px;
height:370px;
}
.okbtn
{
width:60px;
margin-top:5px;
text-align:left;
}
.clo...
I have a gridview I bound a DataTable with that Gridview Its dynamic so no hardcode Text in desin.
I tried to change it after Databound and in PreRender of gridview but no Success.
Actually there are Underscores('_') in text and I want to Replace it with space.
Below is code
<asp:GridView ID="grdSearchResult" runat="server" AutoGener...
Why does the recent ASP.NET security vurnerability specify an html error page to redirect to pre ASP.NET 3.5 SP1 but an aspx page for later versions?
...
I can tell my page to use a certain CultureInfo like
System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
The code above only set's the CultureInfo, not the UICulture, how can I tell the Page to bypass what the browser says and use a specific one, so all GlobalResource's could be applied to the correct culture?
in the cod...
I have a special stored procedure that returns a List of Distributors from my database. I then iterate through the loop of Distributors and output the results to a web page. However, I need to load the State and the Country for each Distributor. I would rather do this one time, before the loop so that the page is faster. This is my c...
Is it possible to have a control which does not use the default skin that is specified in a .skin file?
I have a control for which I do not want a default skin applied to.
...
Hi,
My website uses a web user control. The properties for the user control will be set will be common for a set of my users. e.g. if I have 20 users accessing my website, 5 of them may be using the user control with id = 1 , 4 using the user control with id =2. I have a property associated with each user control which I would like to b...
I want to upload files in my Asp.net application on server but I have to grant it R/W access so that I or anyone can upload files in it. Is there any way that I write some code or configuration lines in Web.config which solve this permission problem?
...
I have a generic editor in ASP.NET page for editing lookup values for different database tables.
The code behind uses a base class which handles 99% of the work across all the different lookups in the system.
A C# class is passed in to the base class from the code behind as below.
public class LookupPageBase : System.Web.UI.Page
...
I am trying to send a mail message to a gmail address. When I click submit after filling the "Answer" in the paswwordRecovery tool, after a few seconds, it is showing a error message "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected...
I have a ASP.NET web app that utilizes ReportViewer to show local reports. Everything works beautifully on my development machine (XP Pro, Visual Studio 2008). When I deploy the app to the production server (Windows Server 2008, IIS 7), the site works very well, except for the report viewer. When I generate the report, the report viewer ...
For maintainability reasons, I want to database drive my javascript, in that I only want to send the javascript which is needed based on the users options.
So, is it faster/less resource heavy to have links in the database pointing to javascript files, then using response.writefile to embed those files into the clientside page, or is it...
Hello,
I get the feeling I am still using asp type scripting techniques in the script below instead of proper asp.net scripting...
If this is true, how do I do the below the proper .net way?
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Tex...
Hello,
I have a hyperlinkfield in Gridview control. I am using the below shown stylesheet for the gridview.
But for some reason, the hyperlinkField column in the gridview is not in blue color and there is no underline.
How can I display the hyperlinks as regular hyperlinks as blue in color and underline?
Thanks
/* table style */
table...
Hi,
I want to query a List<> and find out how MANY items match the selection criteria. using LINQ and c# /.net 3.5. How would I modify the query to return an int count.
var specialBook = from n in StoreDisplayTypeList
where n.DisplayType=="Special Book"
select n;
...
i am doing Fileupload using asp.net 3.5 with asp.net ajax.In that i am using Usercontrol
MainPage.ascx Page:In this page i am using UpdatePanel inside Fileupload control.
Demo.aspx:In this page also i am using Updatepanel. i am drag MainPage.ascx usercontrol inside this UpdatePanel which is in Demo.aspx.
Question: When i drag the Mainp...
i am working on asp.net storefront(not mvc) but the one from aspdotnetstorefront.com
I try to add menu items
on topmenu but i am seeing (!menu.About!)" as result.
How to do this?
...
Hi all,
Below is my query which is in Storedprocedure(SQL Server 2008) will return list of items from a table.
Query:
SELECT
( COALESCE(ReviewDescription,'')+ REPLICATE (' ', 20 - LEN(ReviewDescription))
+ '|' +
( CONVERT(VARCHAR(100),ReviewCharge))) AS ReviewTypes
FROM ReviewType
query result(copied to text pad then its looking l...