I am starting a website where an image shows on the home page and when I scroll to hover over the image it opens a newpage. I’m trying to figure out a way to do a slow dissolve from the home page to new page and also if the user has a pop up blocker on how to get around from home page to new page that if there is a way. Here is the code I have now html: <!DOCTYPE HTML> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Daily Process</title> <script src="Scripts/jquery-1.10.2.min.js"></script>"> <link type="text/css" href="Content/dailyprocessbootstrap.css" rel="stylesheet" /> </head> …

Member Avatar
+0 forum 0

I'm trying to code this in C# so it will output the values for each element in XML. Sample XML: <APIVersion>4.0</APIVersion> <PackageTrackingInfo> <TrackingNumber>123456789</TrackingNumber> <PackageDestinationLocation> <City>Seattle</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </PackageDestinationLocation> <PackageDeliveryDate> <ScheduledDeliveryDate>2004-09-15</ScheduledDeliveryDate> <ReScheduledDeliveryDate>2004-09-18</ReScheduledDeliveryDate> </PackageDeliveryDate> <TrackingEventHistory> <TrackingEventDetail> <EventStatus>LK</EventStatus> <EventReason>AQ</EventReason> <EventDateTime>2004-08-22T11:00:00- 08:00</EventDateTime> <EventLocation> <City>SEATTLE</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </EventLocation> <SignedForByName>JOHN GALT</SignedForByName> </TrackingEventDetail> </PackageTrackingInfo> Here is what I have so far. What would be the best way to handle outputting the XML. rspxml.Root.Add( new XElement("API", "4.0"), new XElement("PackageTrackingInfo", new XElement("TrackingNumber", prc.ProNumber) ), new XElement("PackageDestinationLocation", new XElement("City", prc.Consignee.City), new XElement("StateProvince", prc.Consignee.State), new XElement("PostalCode", prc.Consignee.Zipcode), new XElement("CountryCode", prc.Consignee) ), new XElement("PackageDeliveryDate", new XElement("ScheduledDeliveryDate", prc.Consignee), new XElement("ReScheduledDeliveryDate", prc.Consignee) …

Member Avatar
Member Avatar
+0 forum 5

I am trying get c# to select multiple nodes in XML. I'm not sure how to do this here is the xml code followed by c#: <PackageTrackingInfo> <TrackingNumber>123456789</TrackingNumber> <PackageDestinationLocation> <City>Seattle</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </PackageDestinationLocation> <PackageDeliveryDate> <ScheduledDeliveryDate>2004-09-15</ScheduledDeliveryDate> And here is c# code: public string ProcessXML(string xmlRequest) { XmlDocument rsp = null; Saia.Presentation.Website.SaiaSecure.WebService.Shipment.Response response = new Saia.Presentation.Website.SaiaSecure.WebService.Shipment.Response(); string testMode = ""; try { if (bool.Parse(WebConfigurationManager.AppSettings["Debug"]) == true) File.WriteAllText("c:\\temp\\" + DateTime.Now.ToString("MMddyyy_HHmmss") + ".xml", xmlRequest); // Determine Method to Call XmlDocument doc = new XmlDocument(); doc.XmlResolver = null; doc.LoadXml(xmlRequest); string method = doc.FirstChild.Name; if (method.ToLower() == "xml") { method = doc.FirstChild.NextSibling.Name; } if (method …

Member Avatar
Member Avatar
+0 forum 18

Need on the best way to going about programming this in c#. I'm trying to do an if record exists update statement else insert statement: OracleConnection con = new OracleConnection(strConnection); con.Open(); OracleCommand check_RID = new OracleCommand("SELECT COUNT(*) FROM CONTRACT_INFO WHERE (rid = @rid)", con); check_RID.Parameters.Add("@rid", labelRID.Text); OracleDataReader reader = check_RID.ExecuteReader(); if (reader.HasRows) { OracleConnection conn = new OracleConnection(); // C# conn.ConnectionString = strConnection; conn.Open(); OracleCommand cmd = new OracleCommand(); cmd.Connection = conn; cmd.CommandText = "UPDATE... cmd.ExecuteNonQuery(); conn.Close(); Response.Redirect("primecontractor.aspx?Id=" + labelRID.Text); } else { OracleConnection conn = new OracleConnection(); // C# conn.ConnectionString = strConnection; conn.Open(); OracleCommand cmd = new OracleCommand(); cmd.Connection …

Member Avatar
Member Avatar
+0 forum 3

I need help on a section of the code below to revise so instead of redirect to a full page I want it to redirect and open as a popup window. How can i change the code I have to make this possible. [CODE]void context_AcessDenied(object sender, EventArgs e) { try { HttpApplication httpApp = sender as HttpApplication; HttpContext context = httpApp.Context; string httpUrl = context.Request.Url.ToString(); string strSiteURL = string.Empty; string strWebURL = string.Empty; string strOwnerName = string.Empty; string strOwnerEmail = string.Empty; if (httpUrl.ToLower().Contains("/_layouts/accessdenied.aspx") && !httpUrl.ToLower().Contains("loginasanotheruser=true")) { strSiteURL = SPContext.Current.Web.Url; SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(strSiteURL)) { using (SPWeb …

Member Avatar
Member Avatar
+0 forum 6

I have a dropwdown where I select a name from the dropdown list. This populates a grid view with that record. Once I select that record it will populate a form with textboxes of info for that record. There is a delete button in that form and when I click the delete button I want it to refresh the grid with that record removed from the grid. so it shows a blank grid or the grid minus that record. Does anyone know how to do this. Is this something handled in the code behind? Here is my code for the …

Member Avatar
Member Avatar
+0 forum 3

I have a dropdown list on aspx page that is using a data source select command to pull from a database. The don't any data in the dropdown when I preview the page. I need help on what I am doing wrong. Here is my code for the dropdown list and data source: [CODE]<asp:DropDownList runat="server" id="DropDownList2" AutoPostBack="true" DataValueField="POPULATION_LIST_ID" DataSourceID="sdsLastName" DataTextField="Last_Name" Visible="True" Height="26px" > </asp:DropDownList> <asp:SqlDataSource runat="server" id="sdsLastName" SelectCommand="SELECT DISTINCT LAST_NAME FROM CHP_POPULATION_LIST" ProviderName="System.Data.OracleClient" ConnectionString="Data Source=cora;Persist Security Info=True;User ID=catdb;Password=ca222tdb;Unicode=True"> <SelectParameters> <asp:controlparameter ControlID="DropDownList2" PropertyName="SelectedValue" Name="LAST_NAME" /> </SelectParameters> </asp:SqlDataSource> [/CODE]

Member Avatar
Member Avatar
+0 forum 2

I keep getting this error: Procedure 'cnpcpiFarmFormAssignField' expects parameter '@chUserId', which was not supplied. [CODE]if request.Form("hidAction") = "" and request.QueryString("sid") = "" then sFormAction = "New" else Set cmd = Server.CreateObject("ADODB.Command") with cmd .ActiveConnection = DataConn .CommandType = adCmdStoredProc end with 'On Error Resume Next if request.Form("hidAction") = "New" then 'cint(iFormId) = request.QueryString("iFormId") 'Insert Record With cmd .CommandText = "cnpcpiFarmFormAssignField" Set prmiFormId = .CreateParameter("@iFormId",adInteger,adParamInput,,request.Form("hidiFormId")) Set prmiFieldId = .CreateParameter("@iFieldId",adInteger,adParamInput,,request.Form("lstFormField")) Set prmiSequenceId = .CreateParameter("@iSequence",adInteger,adParamInput,,request.Form("lstSequence")) Set prmvchLabel = .CreateParameter("@vchLabel", adVarChar, adParamInput, 50,trim(request.Form("txtLabel"))) Set prmtiRequired = .CreateParameter("@tiRequiredField",adInteger,adParamInput,,cint(request.Form("lstRequired"))) 'set prmtiAlphaNumericCheck = .CreateParameter("@tiAlphaNumericCheck",adInteger,adParamInput,,iNumericAlphaCheck) if request.Form("txtMinLength") = "" then set prmiMinLength = .CreateParameter("@iMinLength",adInteger,adParamInput,,null) else set prmiMinLength = …

Member Avatar
+0 forum 0

I can't get past this error in my loop through the data reader specifically dr(12). I tried adding .To String but that doesn't seem to work either. Can someone help me with what need to do so it can read even if there is a Null value. My code is below: [CODE] While objDataReader.Read() 'Set up DataRow object Dim dr As DataRow = DataReaderTable.NewRow With dr dr(0) = objDataReader.GetSqlInt32(0) 'IndividualID dr(1) = objDataReader.GetString(1) 'First Name dr(2) = objDataReader.GetString(2) 'Last Name dr(3) = objDataReader.GetString(3) 'Email Address dr(4) = objDataReader.GetString(4) 'Address 1 dr(5) = objDataReader.GetString(5) 'City dr(6) = objDataReader.GetString(6) 'State dr(7) = …

Member Avatar
Member Avatar
+0 forum 2

I have a hyperlink column in a datagrid that uses DataNavigateUrlFormatString to open a popup window via javascript. I am trying to get two variables from a sql to show in the query string for the popup window. I am able to pass the sessionstart date which is ={0} but the other those two variables in the javascript I am not sure how to pass. The two are school_id and program_id in the select statement below: [CODE] strsql = "select count(z.iIndividualid) as enrolled,session_id,school_id as SchoolId,program_id as ProgramId,convert(nvarchar(10),session_start_date,101) as SessionStartDate, session_class_size as SessionClassSize from dbo.cnSchoolProgramSessions cn with (nolock) left join customerproductdetail …

Member Avatar
+0 forum 0

I have two datasets called ds and ds1 that I want to merge into a grid. I get data from the first dataset to display in the grid but the second dataset where I want to display a count I don't get any data from it. I am trying a ds.Merge(ds1). here is the code i have for the sub. What am I doing incorrectly? I need some assistance please [CODE]Public Sub LoadSessionDateGrid(ByVal iSchool As Integer, ByVal iProgram As Integer) 2. Try 3. Me.Label1.Text = iSchool 4. Me.Label2.Text = iProgram 5. Dim ds As New DataSet() 6. ds = New …

Member Avatar
Member Avatar
+0 forum 3

I am trying to get a grand total from a shopping cart page and am not sure how to do that. I have the total that loops through each section but I want to display the grand total from all of those sections at the bottom of the page. Can someone offer assistance on how to do this. Here is my code: [CODE]dim totalPrice(20) //The total price on any given subform //CONFIG - change this to the maximum number of product types you ever expect to have. dim iQtys(20, 50) //CONFIG - Change this to the maximum number of items …

Member Avatar
Member Avatar
+0 forum 1

I have a .asp page that is a map of the U.S. When you click on a state it brings up a pop menu. This page works fine on IE but not on Firefox. On Firefox when I click on the state it opens up another tab of the .asp page. How do I get this page to work in Firefox I have included part of the code below Here is a link to the page [url]http://allos.dkpierce.net/[/url] [CODE]<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!--#include virtual="/includes/common/KT_common.asp" --> <!--#include virtual="/includes/tfi/TFI.asp" --> <!--#include virtual="/includes/tso/TSO.asp" --> <!--#include virtual="/includes/nav/NAV.asp" --> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <TITLE>Folotyn™ (pralatrexate) …

Member Avatar
Member Avatar
+0 forum 1

I need to know how and what steps to automate to backup a database on my production SQL server and restore that database in my test SQL server. The database exists in both servers currently. I want to set this up so it will run every day at a certain time. Does anyone know what I need to do for this.

Member Avatar
Member Avatar
+0 forum 1

Does anyone know how to do FileUpload in asp.net 1.1. My current code works for 2.0 but I need to do this for 1.1. I know that FileUpload.HasFile doesn't work.Here is my code: [CODE]<%@ Page Language="vb" AutoEventWireup="false" Inherits="Promethius.PCMSPro.UploadFile" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <script runat="server"> Protected Sub cmdUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) If Me.File1.PostedFile.ContentLength > "" Then Me.File1.PostedFile.SaveAs(Server.MapPath("~/Upload/" & Me.File1.PostedFile.FileName)) Me.ltOne.Text = "File Uploaded Successfully" End If End Sub </script> <HTML> <HEAD> <TITLE>Upload File</TITLE> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </HEAD> <body leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0"> <div id="global"> <form enctype="multipart/form-data" …

Member Avatar
Member Avatar
+0 forum 2

I am having trouble uploading any file to the path in the error message below. Does anyone have any idea what the problem is. I did some research on this and most sites say that the permissions need Read/Write access for the asp.net user. I tried this and I still receiver the error. Here is the error: For example Error saving file education_calendar.pdf System.IO.DirectoryNotFoundException: Could not find a part of the path "d:\inetpub\aopha\Uploads\". at System.IO.__Error. Here is my code for the click event. I am not sure what is happening here: [CODE] Private Sub cmdUpload_Click(ByVal sender As System.Object, ByVal e …

Member Avatar
Member Avatar
+0 forum 4

I have a shopping cart page where if an item is Real Estate Forms 2d then there will be a sales tax assessed. If it equals any other item there will be no sales tax assessed. The problem I am having is I can't get a sales tax assessed for any of the item with my current code. Can someone provide assistance in what I am doing wrong with the code below and what I can do to correct it. This is just part of my code: [CODE]bool blnNoCart = false; // get the user's cart if (Session["CartID"] != null) …

Member Avatar
Member Avatar
-1 forum 11

I am having a problem with the code below especially bolded part. I have built a shopping cart page where if they select the item 'Real Estate Forms 2d' there will be a sales tax added for that item. If they select any other item they will not have a sales tax. With my current code below it doesn't access sales tax for that one item or any other item. If I change the else part of the code to 0.06 it will show sales tax for all items. It is not recognizing the 1st condition of the if statement. …

Member Avatar
Member Avatar
+0 forum 3

The End.