I'm working on a moderately sized WebForms project. Due to the peculiarities of management here, I have to upload the site to a remote server in order to test (no localhost testing). I'm using the 'Publish' command in Visual Studio 2008. Sometimes, it even works. Most of the time, I inexplicably get a "publish failed" in the bottom left ...
I want to render (for internal debugging/info) the last modified date of an assembly, so I know when was a certain website deployed.
Is it possible to get it though reflection?
I get the version like this, I'm looking for something similar:
Assembly.GetExecutingAssembly().GetName().Version.ToString();
ie: I don't want to open the ph...
When developing a web user control, I'm styling everything with CSS. Whenever I look at the control in the designer, none of the CSS is rendered, or course, because I'm not looking at it in the context of the page where my link element is declared to my CSS file. Plus, Visual Studio will include a warning:
The class or CssClass valu...
I have two listboxes and two buttons. Each listbox is in its own div and the two buttons are in their own div. One listbox should be on the left and the two buttons should be to the right of that with the other listbox to the right of the buttons. This is the markup I am using, but it is putting the 2nd listbox below the Remove butto...
I'm trying to use ASP.NET's Repeater objects to loop over properties of an object.
For example... I have an ObjectDataSource to grab object "Program" by ID...
Program has properties such as Program.Stakeholders and Program.Outcomes which are Lists of "Stakeholder" and "Outcome" objects.
Now... what I'd really like to do is use the Rep...
Will a website still work if parts of the site have compilation errors?
...
For some time now I've been storing my connection and app settings in an external file and just referencing that file via my web.config. This works really well because it allows me to keep separate connection strings and app settings. This is really handy since I find during development I will often make many changes to the webconfig and...
hi i am using asp.net and xml
im making a form tht send an email
but it gives me an error
the email adresses come from the xml file
The specified string is not in the form required for an e-mail address.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for...
I want a ASP.NET cache item to be recycled when a specific file is touched, but the following code is not working:
HttpContext.Current.Cache.Insert(
"Key",
SomeObject,
new CacheDependency(Server.MapPath("SomeFile.txt")),
...
What would be the best method for serializing a Dictionary for use in a single Cookie?
...
I have about 10 drop down list controls that get populated. Instead of copying/pasting and modifying a few fields on each, I would like to create them programmatically. Can this be done?
Here is what one of them looks like. I would like to programmatically add 10 dropdownlist controls and their respective SqlDataSource controls.
<...
Does anybody know if there are any major changes in IIS7.5 that is coming with Windows 7 that will require rewriting all or a portion of a major website (CMS). Obviously not knowing my code, it is hard to judge this, but I haven't found any announcements of what is expected in IIS7.5 and would like to get a heads up.
...
I've seen a few different questions here on SO related to shared hosting, specifically GoDaddy, with medium trust configurations. While most questions seem to be oriented around trying to include a 3rd party DLL in your application, I really haven't seen a consistent answer on how to move forward.
I am trying to utilize the FlickrNet f...
Hi,
I have a small web app being written in ASP.NET, VB.NET , .NET 3.5
I pass a value from default.aspx to demo.aspx using query string. When Go button is clicked the URL will be like this : localhost/demo.aspx?id=4
But I want URL to be sth like this when Go button is clicked : localhost/?id=4 and the id value is passed to demo.aspx s...
Hi,
In ASP>Net using C#, I declared a variable as member of the class as follows:
public class sales: System.Web.UI.Page
{
string type=null;
}
And i have an Image Button in my UI for which I've defined the event called
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
in this method, any value assigned to var...
I have a DataGrid in ASP.Net 1.1 with TemplateColumns most of the Template Colums are having HHTMLInput Hidden Field as ItemType. The Issue is if I am setting TemplateColumn Visible attribute to true I am not able to access those controls from javascript.
Even I have trieed putting ItemStyle-CssClass with following definition display:no...
I want to bind the CollapsibleExtender with data from Db. Can anyone help me do that. A simple example is also useful. Thanks.
...
I'm using ASP.NET user controls. I'm passing values to another user control via command arguments through a link button as follows:
asp:LinkButton ID="ZoomPhotoLinkButton" CommandArgument='<%#(Eval("conid"))%>' CommandName="PassItemId" runat="server">Zoom It
What I really want is to make the entire background cell of my table clickab...
I have an ASP.Net page that is contained within an iframe the page has an update panel, that, in isolation, works however when the page is within the iframe, the update panel always produces a full postback. I guess that the problem is the iframe itself but id like to know
a) why it doesnt work
b) if there is a solution beyond rolling m...
What are the good automated web UI testing tools?
I want to be able to use it in the .Net world - but it doesn't have to written in .net.
Features such as a record mode, integration into build process\ continuous integration would be nice.
Im going to look at:
Watir
Selenium
Are there any others I should look at?
...