Jump to content

eng.mohamed_elqpany

Members
  • Posts

    20
  • Joined

  • Last visited

eng.mohamed_elqpany's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. hello, every bodyi have a problem with IE7 i designed a page with a flash but I can't work with it before click once on it and then work on it. it was working fine at IE6 so i thought if i focus on the embed flash at the load of the image it will work, but the problem i can't do a script to load pages so can you help,thanx
  2. Hello every body, Firstly, thanx for every one helped me before. and now i have a problem with this code. It works fine when running it from visual studio.net but when i run it from IIS it geives me an exception.this is the code: OleDbConnection con = new OleDbConnection(); con.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data source= |DataDirectory|\\MaillingList.mdb"; try { con.Open(); string str; str = "Insert Into news (NewDate,Title,Brief,Cate,news,imageUrl) values ('" + date + "','" + title + "','" + brief + "','" + category + "','" + news + "','" + ok + "')"; OleDbCommand cmd = new OleDbCommand(str, con); cmd.ExecuteNonQuery(); } catch (Exception ex) { Response.Write(ex.ToString()); } finally { con.Close(); } and this is the exception i have.System.Data.OleDb.OleDbException: Operation must use an updateable query. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at news_Default.Button1_Click(Object sender, EventArgs e) in c:\ProLight Site\news\contents.aspx.cs:line 176line 176 us the line of excute comandcmd.ExecuteNonQuery();i need ur help.with regards;..
  3. hello every body. i just have a problem. I worked on a site was done using frontpage " html & java script" and i began to develop it adding aspx pages using asp.net 2 and i finished these pages. It works fine when i run the site from visual studio.net 2005 so i decided to publish it " i have no experience in publishing sites " so i put them at the site directory using FTP but when i'm tring to open it i have this error.The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------------------------------------------------------A name was started with an invalid character. Error processing resource 'http://www.prolight-tech.com/LogAdmin.aspx'. Line...<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LogAdmin.aspx.cs" Inherits="LogAdmin" %>-^And i tryed to open it on onther pc with no IIS installed and the result is the source code of the aspx page .i don't know the exact problem. and i just need help plz.with regards,..
  4. hello every body. i just have a problem. I worked on a site was done using frontpage " html & java script" and i began to develop it adding aspx pages using asp.net 2 and i finished these pages. It works fine when i run the site from visual studio.net 2005 so i decided to publish it " i have no experience in publishing sites " so i put them at the site directory using FTP but when i'm tring to open it i have this error.The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------------------------------------------------------A name was started with an invalid character. Error processing resource 'http://www.prolight-tech.com/LogAdmin.aspx'. Line...<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LogAdmin.aspx.cs" Inherits="LogAdmin" %>-^And i tryed to open it on onther pc with no IIS installed and the result is the source code of the aspx page .i don't know the exact problem. and i just need help plz.with regards,..
  5. so what will hapen when i publish it? will it work fine?..
  6. the page.aspx.cs code is jsut like that. using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class Admin_news : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } } and when i run it from .net it works fine but when trying to call this page from another html page it gives me this error.thanx for your response.
  7. i'm using asp.netand i need to create a new page.html through code.thanx for your response and i hope you comlete.
  8. why ? and would you just give one way to do that.or the way to convert to html directly.thanx
  9. i have the path for a doc file. and i want to save it in a folder in my site path but with htm extention.can i ? and how ?thanx..
  10. i designed a news letter page to display my company news and inform my subscribers about these news.my problem is that my admin need to add and delete and edit the news personally so i had to design a page that support that. The Idea is to put each new in a single html page but i don't know how to create it dynamic.i know there is a class called page class but i can't work with it.i need your help as soon as you can.thanx...
  11. sorry there are missunderstanding it's just a default page.this the code : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ad.aspx.cs" Inherits="ad" %><!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"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> </div> </form></body></html> thanx for ur response and i hope you answer me again to find a solution...
  12. no this script is in the other page where i'm calling the asp page and iis is already installed.thanx for ur response and i hope u answer me again to find the problem
  13. hi every body,this is the first thread for me in your forums and i hope i find help and i hope to be able to help you later.My problem is that i'm working on a project somebody started it before me. and i just try to fix it. My problem now is that i'm tring to access a mdb database i build my page using asp.net with c# so the extention is .aspx and i just pass the prameters to this page from a .htm page using this small script <script type="text/javascript" language="JavaScript">function Redirect(mail,status){ if(mail=="") alert("mail is not in valid format") else location.href = 'as.aspx?Email=' + mail + '&status=' + status}</script> when i'm running it from visual studio it works, but when tring to run it with IE i got this error:**********The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------------------------------------------------------A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/Admin/Desktop/Mo...<%@ Page Language="C#" AutoEventWireup="true" CodeFile="aa.aspx.cs" Inherits="aa" %>-^**********and when i tried to run it on a network with virtual directory i got this error****Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. ****i just need your help but as quick as you can please.with regards..
  14. what the exact problem and how to fix it please?thanx for ur answer
×
×
  • Create New...