Hi,
I have an ASP.NET(2.0 using C#) web app, in which I have a gridview on a page(My_Page.aspx). The gridview gets its data from an Oracle database. I have a Hyperlinkfield in the gridview, which when clicked, postsback to the same page, but with details of the item clicked(using QueryString).
<asp:HyperLinkField DataNavigateUrlFields...
Hello.
I have created an application that uses Microsoft.Office.Interop.Excel, in my local and testing environments everything worked fine, but the app does not work in the production environment.
Turns out I have Office installed locally, as does the Test server, however, the production server does not have Excel installed.
I reall...
I have this code to send mail:
public bool SendMail(MailMessage message)
{
message.From = new MailAddress(AppProperties.FromMailAddress, AppProperties.FromDisplayName);
SmtpClient smtp = new SmtpClient { EnableSsl = AppProperties.EnableSsl };
try
{
smtp.Send(message);
return true;
}
catch (Excepti...
Background Info: File Replication is Lame
Currently, we have a massive, high-traffic ASP.NET web application load-balanced across 8 different IIS servers. Due to the nature of the site, minor changes to .aspx files and .ascx controls happen frequently throughout the day, and after being tested and published to live, are replicated out ...
I have a listview that has a few different controls. I need to bind specific fields of a query to certain parts of a control. The table contains a friendid and a firstname. I want to put the friendid at the end of a URL. I want to put the firstname in the text of a label. There will be multiple friends returned on the query. The listview...
I would like to use a jquery to select the following span:
<span id="RequiredFieldValidator1" class="validationerror" style="color: Red; display: none;">*</span>
But not select the following span which differs from the original in that the style attribute has a display property whose value is inline instead of none.
<span id="Require...
I would like to be able to pull some code samples out of a database and/or have the text embedded into the website and then have the sample formatted in a code like fashion on the screen. While the text alone on the screen is great, the format will make it more user friendly. How is this done?
I want this:
public string MyString = "T...
Hi,
I can't get this to work, I want to show a simple list of artist names but always get empty links back.
foreach (Artist artist in Model)
{%>
<a href="gotosomewhere"><% Html.Encode(artist.Name); %></a>
<%}
I have debugged it, and I'm certain that Model contains a list of artists.
Thanks,
Peter
...
how to?
I tried AutoPostback=false, but clicking on the node still posts the page back. Any ideas?
...
I am trying develop an application (C#) to query an LDAP server. I don't know the actual server named to query - is there a way to find out using standard windows tools or something in .net?
I've also heard rumors that having the server name (ldap://server/) is not always needed as long as I've got dc=domain,dc=com in my query string, ...
When I try to add a new Sql Server Database file to my Visual Studio project, it tells me that I need to have Sql Server 2005 Express installed even though I have Sql Server 2005 Developer already? Is this by design and if so, why did Microsoft do it? and if it is not by design, what is the solution to fix it?
...
Hi there,
I'm doing a project at the moment which involves using bulk insert to fill an sql table with weather data.
BULK INSERT TableWeather
FROM 'C:\Program Files\EasyWeather\EasyWeather.dat' WITH (FIELDTERMINATOR = ',')
This seems to work fine but I need to do this every fifteen minutes and also actually...
Hello. I'm developing an Asp.Net 3.5 application and I need to print some application generated reports.
I was previously using SSRS but I had lots of problems with it design features. Because of that, we are now looking for Crystal Reports as an alternative.
When we started to use Crystal, we faced a new problem. When one clicks on th...
In an HttpModule, I put an Item in the Context, like this:
HttpContext.Current.Items.Add("MyKey", "Hello world!");
Directly under this code (still inside the module), I can retrieve this string from the collection, so I know it got added.
Fast forward to my actual handler (a Web form -- .aspx). I try to get this item back:
string my...
So, I'm trying to use soap to communicate with a webservice and getting errors. What is frustrating about this particular issue is that it works perfectly fine with my local copy of the webservice (yes, I tried turning off my firewall) and used to work fine with a previous version of the webservice and client. I suspect I could (though...
I am going to aplogize in advance because I am really at the limits of my understanding on this so if I do not explain this well....well sorry...
Anyway I am trying to create an asp.net server control that has complex properties which can be set using intellisense. So as an example I will use cars, so the server control might be called ...
Can this be made to work? - been having lots of issues setting it up:
HttpHandlers not being seen even though .net 1.1 is installed and regiis -i working, worker processes crashing.
Really need this for maintaining many old projects.
Is there a specific order that things need to be installed in?
...
I have a number of photo sets that are marked as private on Flickr. I have a website and I would like to display all of them as Flash Sideshow.
I am currently using Flickr.NET open source library and I have created a web application to retrieve the list of all the photo sets. I can use other methods to display photos but I really like t...
I'm currently trying to add an MSChart to a partial view in ASP.NET MVC RTM. I have reviewed the following blog entry, and I'm currently investigating Option B. If I take my code an place it inside a View (ASPX) Page and it works fine, but when I copy the exact code into a Partial View (ASCX) I get the following excpetion: "CS1502: The...
About twice a month I get asked to justify the reason "Why are we using ASP.NET and not PHP or Java, or buzz-word-of-the-month-here, etc".
100% of the time the questions come from people that do not understand anything about technology. People that would not know the difference between FTP and HTTP.
The best approach I found (so far) ...