Hello, I have a really weird problem. I have a web application written in asp.net and it works perfectly locally, the problem appears when I deploy it to my remote server. Everything works fine except for a button, it updates information in a database. The thing is that the problem only appears in Internet Explorer (I'm using Internet Explorer 9) when I click update it reloads the page (it should do that and bring the updated information) but then it kind of loses the session because it does not recognize the user, the information never shows and It kind of …

Member Avatar
Member Avatar
+0 forum 1

I have code (below) that opens a dialog box to either open or save a file. What I need to do though, is have the file location in the textbox next to it. Can anyone tell me the code to do that? [ICODE] protected void Browse_Click(object sender, EventArgs e) { string FileName = "ExporterOutput.txt"; string FilePath = "C:/Users/oZ012D/My Documents/ExporterOutput.txt"; System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.ClearContent(); response.Clear(); response.ContentType = "text/plain"; response.AddHeader("Content-Disposition", "attachment; filename = " + FileName + ";"); response.TransmitFile(FilePath); response.Write("This is a test line."); response.Flush(); response.End(); } [/ICODE]

Member Avatar
Member Avatar
+0 forum 3

I am trying to connect to a sql database and read from a table to determine if a username is valid upon a user entering in theirs. To just give you a background of the program: 1. The user needs to enter in their username and ID number. I already have a way to check if the ID is correct. 2. The username needs to match one that is in the sql database within a table. If not then it will display an error message. If someone could show me how to connect to the database correctly then that would …

Member Avatar
Member Avatar
+0 forum 5

I am have been trying to teach myself ASP.NET and Javascript for a project and have been stuck on one problem for literally dozens of hours now. I found a really nice javascript drag-and-drop list online, copied the source offered and split the css into a .css file, the javascript into a .js file and the HTML and reference into my asp.net page. It worked perfectly. Great! Next, I replaced the javascript list with a static HTML list populated with the same data, wrapped it in an UpdatePanel and set up an "edit order" button to swap the static list's …

Member Avatar
+0 forum 0

I have seemed to get the first function tagReader to work, but can't get the others to work. The other functions are bolded. [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; // function prototypes void tagReader ( ifstream& inFile, int&count); void getEmployee ( string& who, double& rate, int &hours ); double paycheck (int hours, double rate); void repeater ( string word, int num); bool valid (int val); void header (); //========================================================= int main() { int count = 0; ifstream inFile; //---------------------------------------- // Call function tagReader with tags1.txt inFile.open("tags1.txt"); if (!inFile) { cout << "\n\nError! - Invalid file …

Member Avatar
Member Avatar
-1 forum 3

hi, how to call code-behind function in java scrip. i am working on asp.net please help me to call the procedure with js. thanks in advance. jack

Member Avatar
+0 forum 0

I have an ASP.NET app that uses code-behind modules that I need to publish on an internal company web server. I have access to the server, but my problem is that I can only access it through Windows Explorer, so I can't create a virtual directory on it or change any IIS settings (to my knowledge). Can anyone give me any advice on what I can do?

Member Avatar
Member Avatar
+0 forum 1

The End.