i have a website built in asp.net connecting to a sql 2000 db. within my web.config file, i have a connection string referencing a DSN. in order for my db connection to work i have to include the username and password within the string. for security reasons, is there any way to connect to my db without displaying the username and passwo...
I fear this has been beaten to death, but I'm still struggling with the problem of reading Excel files in my ASP.NET application that has recently been ported to Server 2008 and 64-bit.
Many posts I find point to the existence of 64-bit Microsoft drivers here:
here and here.
My concern is the warnings I'm also reading about these not...
I've read plenty of good blog posts on integrating jquery with ASP.NET web forms to utilize the data access capabilities, but I'm curious to know how easy it would be to use some of jquery's animation capabilities before a postback. I can think of two good examples:
1) When I click on a asp:button, animate a div, but then do a regular p...
So here's the code in C# .Net.
string linie = txtFirstName.Text + "," + txtLastName.Text + "," + txtBirthday.Text + "," + txtEmail.Text + ",";
StreamWriter write = new StreamWriter(@"D:/Hosting/2691577/html/gshccadmin/site1/excel_formdata/birthday_club.csv", true);
write.WriteLine(linie);
write.Flush();
...
I have trawled the internet - to no avail. Woe is me.
I have a .Net website running under a .Net framework 4.0 App Pool.
The website references various assemblies that have been compiled for .Net 3.5.
I have ensured that identical versions of the dll's and pdb's are in the bin folder of the the 3.5 code that I am trying to debug, and ...
Can someone please tell me what needs to be done to debug a asp.net app using IIS7 instead of the Development server with VS2010. I have found multiple resources online that says how to do it and they all have different steps. I cannot seem to get it to work.
Thanks,
Blake
...
Is there such a thing?!
So for eample, on my image load I have the following hooked up to a table where "Image" is a binary image set of data.
protected void Image1_Load1(object sender, EventArgs e)
{
myent logo = new myent();
var query = (from p in logo.tblLogoes
where p.Id == id && p.Id2 == ...
Anyone know why a simple onclick="btnSubmit_Click" button that calls a server-side function would work in Firefox but not IE.
...
Hello,
I've bound my repeater to a PagedDataSource and I want to get the PagedCount from the ItemDataBound event. I've tried a few things and it's not working. Does anyone know how to do this?
...
I have a partial view that is a search textbox and button.
I am trying to make it a partial view so that I can render it in several places. When the user clicks search I want it to redirect to /Home/Search which will show a list of items based on what was put into the search box.
Is this the right approach or should I make the form ...
ASP.NET
For each appSetting I use, I want to specify a value that will be returned if the specified key isn't found in the appSettings. I was about to create a class to manage this, but I'm thinking this functionality is probably already in the .NET Framework somewhere?
Is there a NameValueCollection/Hash/etc-type class in .NET that w...
Is is possible to write to the http response stream from a dynamically created bitmap using the Response.Write/WriteFile without saving the image to the hard drive?
...
I'm porting an ASP.net Web Forms application to MVC.
The application uses AJAX, by means of Ajax-enabled WCF Web service and asp:ScriptManager. I send an array of objects for service, it handles it just great. Code example,
<script type="text/javascript">
$().ready(function () {
var ser = new Services.TasksService();
...
Hi, I am working on creating a blog in asp.net 4.0 and sql server 2008 and would like to learn how to create a threaded comments system. By threaded I mean each comment would have a reply link and the comments are indented under the comment that it is a reply to. So, you can either respond to the article itself or reply to any of the com...
I'm trying to use the HttpContext.Current.RewritePath method to serve up different versions of an application to different customers. I would love to be able to look at the HttpContext.Current.Session object to know who it is making the request. Oddly when I go to look at this at the BeginRequest handler, the Session always shows null....
I have a fairly long process running in a standard postback. Then I have the following page method to return progress to a repeating JavaScript function that is supposed to report on progress.
My simple page method:
[WebMethod]
public static int GetProgress()
{
return (int)(HttpContext.Current.Session["ActivationResources.ImportPr...
Hello.
I would like to know can i send an email with aspx files.
i know that in php there is a mail() command to send emails but i couldn't find the one for aspx.
...
1) To my understanding, in a three-tier Asp.Net application we should implement exception handling in the following way:
a - we should put try-catch block around block of code ( located in any of the three layers ) from which we expect the page to gracefully recover from ( when this code generates an exception )?
b - we shouldn’t put t...
I have a master page which has a DIV with asp:Hyperlink controls functioning as the menu for the site.
When I'm on a certain page if (document.title = 'Certain Page'), I want javascript which will loop through all asp:hyperlink controls on the page and hide them (i.e. set to not visible). I know I could probably do this on the server s...
on the page products.aspx i created a form:
<form id="send_info_form" method="post" action="send_email.aspx">
<input type="text" name="the_name />
<input type="submit" />
</form>
when i click on submit it's forwarded to the same page (products.aspx) and not to the page i set in action attribute of the form.
...