hi brothers , i work on a ASP.NET MVC Project, please i try to get a cookie who created already using server side C# , and in a pure HTML page not .CSHTML i talk now about .HTML page , in this page i want to using javascript to read the value of the cookie that i created using C# . i wish if anyone can help me and thanks so much in advance.

Member Avatar
Member Avatar
+0 forum 1

Hlo Plz anyone give a coading of classic asp i want to save my csv and excel file in databse

Member Avatar
+0 forum 0

Hi everyone i am getting an error that says Microsoft Office Excel error '800a03ec' Unable to get the Open property of the Workbooks class when i try to open an excel work book in my code . The line of code where i get the error is [icode] Set ExcelBook = ExcelApp.Workbooks.open(BookPath)[/icode] where BookPath is the path to the file . The code before the line where the error is looks like this [icode] Set ExcelApp = CreateObject("Excel.Application") ExcelApp.Application.Visible = false BookPath = "c:\filename.xls" Set ExcelBook = ExcelApp.Workbooks.open(BookPath) [/icode] please help and thank you in advance

Member Avatar
Member Avatar
+0 forum 2

$count1 = array(); $count1[0] = " 1"; $count1[1] = " 2 1"; $count1[2] = " 3 2 1"; $count1[3] = " 4 3 2 1"; $count1[4] = " 5 4 3 2 1"; $count1[5] = " 6 5 4 3 2 1"; for ($b = 1;$b <= 6;$b++) { echo $count[$b]; echo "<br>"; } why does this not work? it just goes on forever. How do i use the $b to up the count of $count[]?

Member Avatar
Member Avatar
+0 forum 1

I am using visual basic, javascript, and html. I am trying to use google hierarchy chart api. I works fine on localhost but when I try to move the same code to the server than I get the following error: Error: Object doesn't support this action <%@ Page Language="VB" AutoEventWireup="false" CodeFile="myFile.aspx.vb" Inherits="UI_myFile" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script> google.charts.load('current', { packages: ["orgchart"] }); google.charts.setOnLoadCallback(drawChart); function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, I have 2 Tomcat app servers (Tomcat1, Tomcat2) on 2 different hosts. Tomcat1 is my main J2EE web application that has a commercial certificate, and the application works correctly. Tomcat2 is a dependent component that has a self signed certificate. both tomcats are behind a load balancer. When calling my Tomcat2 component, I get the following error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I tried importing my self-singed cert on JVM of my Tomcat1 (and Tomcat2), but still same result. Do I need to have the self-singed cert …

Member Avatar
Member Avatar
+0 forum 2

Hi all, This is a very elementary question, but I'm a couple of days into this. Which web.config file should one store keys in? Keys to use within a Model/Controller? I see four different ones: Project > Views > Web.config Project > Web.config Project > Web.config > Web.Debug.config Project > Web.config > Web.Release.config When testing with a key in the one located Project > Views, I don't get to see the key value using `ConfigurationManager.AppSettings.Get("UserName");`. Thanks.

Member Avatar
Member Avatar
+0 forum 4

Good afternoon everyone! I'm running into a small snag and it could just be because it's late and I'm not thinking clearly. I have an ASP Panel that is an alert box. The panel's initial visible property is set to false and should only be set to true when specific events happen and my ShowAlert(string message) method is called. Everything works great except that when the page posts back the alert re-appears when it shouldn't. This is because the ShowAlert(string message) method sets the visible property to "true" but nothing ever sets it to false again. The alert box can …

Member Avatar
Member Avatar
+0 forum 1

Hi.. plz.. suggest me online mini project topic based on ASP language.....I am very confuse...plz help me...

Member Avatar
Member Avatar
+0 forum 8

Hi all, I am trying to compare output from DB The code below works on 1 check, but I require to do this on multiple products like so `if rowProduct("GRPCODE") <> "Cross Hire" or rowProduct("GRPCODE") <> "Boiler Ancillaries" then` etc but the above line does not work as I have coded it? What is the problem with the code. Thanks in advance if rowProduct("GRPCODE") <> "Cross Hire" then ' Elimination unwanted code if not rowStock.eof then ' stock found do while not rowStock.eof ' loop through stocl if instr(RemoveItems, "," & rowStock("ITEMNO") & ",") = 0 then ' item not …

Member Avatar
Member Avatar
+0 forum 1

Hi , can you please help me with an advice. I have a problem with treeview. I want to show in a treeview folders but just some of them. I have several layers of folders. For example Root | =subfolder 1 | = subsubfolder1 | =subsubsubFolder1 | =subsubsubFolder2 | = subsubfolder 2 | =subsubsubfolder2 My problem is that in the last child there might be more than one folder (subsubsubfolder1,2,3..etc) and in this folders I have files. I want to have in my treeview only the folders that contain a specific file. I was trying to make an algorithm with …

Member Avatar
+0 forum 0

Hi, I need month number from string text. ex: from "Aug 2014" , I should get 8, if "Jul 2014" then 7. thanks,

Member Avatar
Member Avatar
+0 forum 4

Hy guys, haven't been here for a while, and I m having a problem that I didn't use to have before. When I was uploading via filezilla ftp client program a month ago a asp.net built website I didn't have any problems whatsoever. Now I'm facing problems and always getting the same error altough I did everything(the upload to the correct path) as i used to do before! Here is the webiste, so please any suggest, some possible modifications that could solve the problems will be greatly appreciated! http://fpzmobile.somee.com

Member Avatar
Member Avatar
+0 forum 8

Hello all, I need help regarding developing an asp.net application to compare images using facial recognition. I mean comparing 2 different images of the same person and returning whether the 2 images are of the same person or not..... I have developed the application which compares the images pixel by pixel, but that is not of much use, since it returns a 'mismatch' message if the 2 images , though of the same person, happen to be in different poses..... Thanks..

Member Avatar
Member Avatar
+0 forum 3

Hello all, I am pretty new to ASP and we are using ASP for logins for our PHP projects, we are using Active Directory LDAP. We can only connect to one container at a time. I have managed to create some code so switch containers but I cannot log in using this script. Using multiple memberships with no default provider throws an error. We are using the visual studio login object. Is my code correct? if (!isNumeric){ //if login name has IS/ if(Login1.UserName.Contains("IS/")){ //remove IS/(not part of the username Login1.UserName.Replace("IS/", ""); //switch to IS container Login1.MembershipProvider = "ADldap3"; }else{ //switch …

Member Avatar
Member Avatar
+0 forum 1

hello programers i made upload pic from my pc to the project folder so i need to diplay this pic on web page i m using ASP.net with Vb Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click If Me.FileUpload1.PostedFile.FileName = Nothing Then Me.Label3.Text = "nothing choosed to upload " Exit Sub End If Dim fpath As String = Server.MapPath("imgs") & "\" & IO.Path.GetFileName(FileUpload1.PostedFile.FileName) IO.Path.GetExtension(fpath) Me.Label3.Text = "successful" Exit Sub If FileUpload1.PostedFile.InputStream.Length > 372000 Then Me.Label3.Text = "it is too long " Exit Sub End If If IO.File.Exists(fpath) = True Then Me.Label3.Text = "the file is exist …

Member Avatar
Member Avatar
+0 forum 4

The following code is producing this error `Microsoft VBScript compilation error 800a03f6 Expected End ` followed by `/stock/availability-quick/availability2.asp, line 130` I think it is a if else error. I have looked over the code and i don't see the error and would benefit from an expert pair of eyes to look over it. Thanks in advance David <%@LANGUAGE="VBSCRIPT"%> <!--#include file="../../includes/functions/insphire.asp"--> <!--#include file="../../includes/functions/logaccess.asp"--> <!--#include file="../../includes/functions/stock.asp"--> <% if request("Allow") = "f875eba08594178509bd3482dc0294" then ' security check passed %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Administration - Stock - Status</title> </head> <body> …

Member Avatar
+0 forum 0

Hi there!! I would like to know if is possible to have routing in a website made with classic asp... In stead of showing this web address : www.website.com/mypage.asp?id=1 i would love to show this one (like MVC): www.website.com/mypage/1 Is it possbile? Thanks to all

Member Avatar
Member Avatar
+0 forum 5

Some of my values coming back in my recordset have a ' in them. This data is being read into a JS array so I need to change the ' in the result to the &#x27; html hex code.

Member Avatar
Member Avatar
+0 forum 2

I've written an SQL select statement. I've checked te statement in SQL Server Management Studio Express and it works greate. When I go take the code to my asp page and insert it, I get a generic IIS 500 error. When I take out my variable I'm tyring to use, it works just fine. I've written the response out and it shows the correct data. Here is my code. <% CurrentYear = Year(Date) UserID = Request.QueryString("id") sqlCOURSES = "SELECT syl.id AS sid, d.dept AS department, syl.course_name AS cname, syl.classroom_number AS room, syl.course_number AS cnumber, syl.section_number AS snumber, syl.semester_year yr, sem.semester …

Member Avatar
Member Avatar
+0 forum 6

I've written a sql select statement that return data just fine. I've got to format the data for my JS array though. The party I'm having issues with is place the , in the correct spot. I need to place it between the } and the next { . Current how my code is it add's an extra , at the end which causes issues. <% sqlEmployees "SELECT * FROM people ORDER BY Last_Name" Set rsEmployees = conn.Execute(sqlEmployees) If (Not rsEmployees.EOF) Then response.write "employees = [" While (Not rsEmployees.EOF) response.write "{label: '" & rsEmployees("Name_Last") & ", " & rsEmployees("Name_First") & …

Member Avatar
Member Avatar
+0 forum 3

I'm working with a database that was setup before me. The column name is year. When I'm writing my SELECT string, I try referencing the year column and get NULL repsonses. How can code this correctly to reference the year column?

Member Avatar
Member Avatar
+0 forum 2

I've written my SQL lookup and tested it and it works great. I'm having issues checking and displaying text that might be null. Can anyone help me with this? This is what I've written and does not work at all <% While (Not rsUP.EOF) %> <h3 class="name"> <% If Not IsNull(rsUP("Name_Title")) Then Repsonse.Write(rsUP("Name_Title") + " ") EndIf Repsonse.Write(rsUP("Name_First")) If Not IsNull(rsUP("Name_Middle")) Then Repsonse.Write(" " + rsUP("Name_Middle")) EndIf Repsonse.Write(" " + rsUP("Name_Last")) If Not IsNUll(rsUP("Name_Suffix")) Then Repsonse.Write(" " + rsUP("Name_Suffix")) EndIf %> </h3> <% rsUP.MoveNext Wend Set rsUP = Nothing %>

Member Avatar
Member Avatar
+0 forum 14

Hi All, I am a new user to ASP and would like to add a to an accumalted value. The value stored in QTYALLOC can be a 1 or a 2 but currently the code will only add increment by 1, but what I am trying to do is increment by the value of QTYALLOC. I had placed order in the increment counter (StockAllocate + 1) like so (StockAllocate + 1) but this did not seem to work. My syntax mak not be correct. What I have tried is not working. Any assistance would be appriciated. if rowStock("QTYALLOC") <> "0" …

Member Avatar
Member Avatar
+0 forum 4

OK, so I've been Googling this as well as looking for previous posts. I have a .NET site that has some classic ASP still in it (who knows why or who did that). On the old server, the ASP would execute normally. On the new server, however, the ASP code renders to the browser. Both servers so far seem setup identically, and are running Windows 2008 R2. I've checked that ASP is installed, the app pools are the same, permissions the same, etc. I have to be missing something, but am not seeing the "smoking gun", as it were. Any …

Member Avatar
Member Avatar
+0 forum 12

Hi all, I have to update some classic ASP code and I need to add an if statment to compare if a uppercase value is == "N/A" and to compare value with request("productLink") line 8 and if it is it should by pass validation on line 16. Any further information required please let me know Thanks in advance David <%@LANGUAGE="VBSCRIPT"%> <!--#include file="../../includes/functions/insphire.asp"--> <!--#include file="../../includes/functions/stock.asp"--> <!--#include file="../../includes/functions/logaccess.asp"--> <% if request("Allow") = "f875eba085941cc78509bd3482dc0294" then ' security check passed categorycodeSQL = "SELECT StockExpectedCategoryCode FROM StockExpectedCategories WHERE StockExpectedCategoryProductID = '" & replace(request("ProductLink"), "heaters", "heater") & "'" set rowCategoryCode = returnrecordsetstock(categorycodeSQL) if not rowCategoryCode.eof then …

Member Avatar
Member Avatar
+0 forum 3

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Text; public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) Textbox.Text = "Enter your Name here"; } protected void Button_Click(object sender, EventArgs e) { string Filename = "http://localhost:55688/TextFile.txt"; if (!File.Exists(Filename)) { StreamWriter txtFile = File.CreateText(Filename); txtFile.Close(); txtFile = File.AppendText(Filename); txtFile.WriteLine(Textbox.Text); txtFile.Close(); } else File.AppendAllText(Filename, Textbox.Text); NewName.Text = "Text is saved"; } } getting error "URI formats are not supported"

Member Avatar
Member Avatar
+0 forum 3

Hi All, I am trying to the following: The code is written in ASP, the output is from a database. I am trying to multiply the QTY and RATE#2 and display total with each order in the returned data. This relates to the last td's in the output. I also want to data to 2 decimal places(currancy) Anything else required please let me know Thanks in advance David <tr> <td height="30"><a href="/dashboard-fullscreen/individual/contracts/view.asp?Allow=f875eba085941cc78509bd3482dc0294&amp;Contract=<%= rowCrossHire("CONTNO") %>" target="_blank" title="View <%= rowCrossHire("CONTNO") %>"><%= rowCrossHire("CONTNO") %></a></td> <td height="30"><%= sonNo %></td> <td height="30"><%= rowCrossHire("ACCTNAME") %></td> <td height="30"><%= rowCrossHire("ITEMNO") %></td> <td height="30"><%= itemDescription %></td> <td align="center" height="30"><%= …

Member Avatar
Member Avatar
+0 forum 10

Hi im rubbish at programming, but im trying.... Im trying to get a page to display the details posted to a form. Part of it is working and part of it isnt for some reason. Ive declared a new value called "responsecode", responsecode = Request.Form("gtpay_tranx_status_code") If the value posted to the form field "gtpay_tranx_status_code" is either "00" (double zero) or "001" then it should run the first part of the code below: If responsecode = "00" Then '001 is for VISA 00 for interswitch and MIGS lblTranxDescription = "<font color=green><b>Transaction Completed Succesfully</b></font>" lbltranxID = tranxid lblDescription = "<font color=green><b>Payment Approved …

Member Avatar
Member Avatar
+0 forum 22

Hello all, I hope you can help me.. I got one assignment: to modify the existing website made of .asp pages. So, I got the working folder, with all the subfolders and files that make one website.... now, in order to start working on it, I need to get it running locally on my PC... how do I do that? I went to windows features and checked the ASP option... still I cannot run the pages... can anyone help me? I put that folder inside of wwwroot folder and I run http://localhost/demo/default.asp and I get: An error occurred on the …

Member Avatar
Member Avatar
+0 forum 1

The End.