Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mack Ait Aoudia

@Mack Ait Aoudia
About
Posts
17
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using ADOX to chnage an MS Access query definition
    M Mack Ait Aoudia

    View a printable version of this message! Hi, I'm trying to change an MS Access query definition using ADOX in my ASP.NET 2.0 c# web site. Here is my function: public void ModifyQueryXDateFilter( string strConn, string strQryName, string strSQL) { ADOX.Catalog catDB = new ADOX.Catalog(); ADODB.Command cmd = new ADODB.Command(); catDB.ActiveConnection = strConn; cmd = (ADODB.Command) catDB.Procedures[strQryName].Command; cmd.CommandText = strSQL; catDB.Procedures[strQryName].Command = cmd; catDB = null; } the line: catDB.ActiveConnection = strConn; doesn't work. I get a typically microsoft error that means every thing except the right thing: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. Can anyone help with this?

    Just Relax And Keep It Simple.

    ASP.NET csharp help asp-net database question

  • logout problem
    M Mack Ait Aoudia

    this is the link: http://www.codeproject.com/useritems/go\_back\_refresh\_pages.asp enjoy and hope it helps!

    Just Relax And Keep It Simple.

    ASP.NET help

  • looking for google Analytics API
    M Mack Ait Aoudia

    hello Michael, It's exactly what I mean and I'd like avoid the third party tools. I find many on the net but I get some specifics needs to reach and I want to develop something to extract the information from logfiles and save it in a database. If you get any idea or any code snippet, I'll be great! thanks.

    Just Relax And Keep It Simple.

    ASP.NET csharp database json

  • logout problem
    M Mack Ait Aoudia

    I think the problem is more complicated than just clearing the cache and using session.abandon. I was facing a kind of this problem: click there to see the solution I came up with: http://www.codeproject.com/useritems/go\_back\_refresh\_pages.asp hope it helps!

    Just Relax And Keep It Simple.

    ASP.NET help

  • onclick event for data grid
    M Mack Ait Aoudia

    hello, If the data you want to display came from a binded data source, you could put your textbox in edititemtemplate section, bind it to right item to display and make a linkbutton (or a button) as itemtemplate. When a user click the linkbutton, use edititemindex in itemcommand event to make your grid in edit mode.

    Just Relax And Keep It Simple.

    ASP.NET csharp css asp-net learning

  • looking for google Analytics API
    M Mack Ait Aoudia

    Hello everyone, I was looking for an API to use on my website to decode the logfile and store data in my database. But it seems there anything available... If anybody get any samples or any c# code snippet dealing with logfiles, I'll appeciate and it will be helpfull... thanks.

    Just Relax And Keep It Simple.

    ASP.NET csharp database json

  • disable viewstate in query string
    M Mack Ait Aoudia

    try to use the page directive EnableViewState="false". It should disable the viewstate for the entire page!

    Just Relax And Keep It Simple.

    ASP.NET database tutorial question

  • Javascript : Textbox Disable
    M Mack Ait Aoudia

    hello, you could change the css class for the textbox: document.getElementById(textboxid).className ='thecssclass'; and write the thecssclass with any styles you want. Hope it helps!

    Just Relax And Keep It Simple.

    ASP.NET javascript help

  • download logfile from an ftp server using ftpwebrequest
    M Mack Ait Aoudia

    Hello everybody, I'm facing a weird problem in my asp.net 2.0 website using the ftpwebrequest class. I want to donwdload the logfile from an ftpserver and I get the following error: "the remote server returned an error:(530) Not Logged In" this is my code: protected void btnTestLF_Click(object sender, EventArgs e) { Uri ur = new Uri("ftp://ftp.mydomaine.com/"); Downloadlf(ur, "myname", "mypwd"); } private string Downloadlf(Uri serverUri, string name, string pwd) { // The serverUri parameter should start with the ftp:// scheme. if (serverUri.Scheme != Uri.UriSchemeFtp) { return string.Empty; } // Get the object used to communicate with the server. WebClient request = new WebClient(); request.Credentials = new NetworkCredential(name, pwd, serverUri.AbsoluteUri); try {//the next line is the problem: **byte[] newFileData = request.DownloadData(serverUri.ToString());** /*I tried also the following: byte[] newFileData = request.DownloadData(serverUri.DnsSafeHost); byte[] newFileData = request.DownloadData(serverUri.AbsoluteUri); byte[] newFileData = request.DownloadData(serverUri.AbsolutePath); **the problem still the same** */ string fileString = System.Text.Encoding.UTF8.GetString(newFileData); } catch (WebException e){ //call the ErrorManagement class to store the error in the database } return string.Empty; } Could anyone give me some help! I'll appreciate it very much!

    Just Relax And Keep It Simple.

    ASP.NET help csharp asp-net database com

  • namespaces in web site
    M Mack Ait Aoudia

    hello Christian, I don't have any DLL in my website. I don't need any and I don't use any! The BIZ.Blog is falling and BIZ is the directory who is the namespace of Blog class. thanks.

    Just Relax And Keep It Simple.

    ASP.NET csharp help asp-net database question

  • namespaces in web site
    M Mack Ait Aoudia

    Hello everyone, I developed a web site with asp.net 2005 (c#). I put in app_code three directories that conatin my classes: BIZ: contains bizuness classes DAL: data access layer MODEL: contains models of my database's table When I run the project locally on my computer everything is allright. But I published the site, I get this error: CS0246: The type or namespace name 'BIZ' could not be found (are you missing a using directive or an assembly reference?) This error is in a function like follow: private void DisplayBlogLaUne(){ BIZ.Blog o; o = new BIZ.Blog(); Model.InfoBlog info; ... } This site bugs on BIZ.Blog o; Could anyone tell me what's the problem?

    Just Relax And Keep It Simple.

    ASP.NET csharp help asp-net database question

  • string value
    M Mack Ait Aoudia

    I don't understand what you are trying to do. So, I'll give an exemple: Declare the hidden like that: Protected WithEvents hiddenWo As System.Web.UI.HtmlControls.HtmlInputHidden you this html in client side: In server side you could just use it like that: If hiddenWo.Value <> "" Then 'do something else 'do something end if In client side: document.getElementById("hiddenWo").value+=2 + "|"; Hope it helps!!

    Just Relax And Keep It Simple.

    ASP.NET csharp javascript asp-net tutorial

  • get the Documents and Settings directory
    M Mack Ait Aoudia

    Hello, Looking for a vb.net 2003 function to get the path of the "Documents and Settings" system directory for a windows app'. I think I already seen something like: Declare Function getDirectoryXX Lib "kernel32" Alias "getDirectoryXXA" (ByVal X As String, ByVal KeyXX As String, ByVal sString As String, ByVal sFileName As String) As String Thanks in advance!

    Just Relax And Keep It Simple.

    ASP.NET csharp

  • something is wrong in vb.net 2005
    M Mack Ait Aoudia

    Hello evreyone, Is anyone could tell me what's wrong with code snippet. I get an error in vb.net 2005: '1. Create 6 classes (I've removed all internal code since it is useless for the test) Public Class LockableDataObject End Class Public Class Business Inherits LockableDataObject End Class Public Class LockableDataManager(Of CustomType As LockableDataObject) End Class Public Class BusinessManager Inherits LockableDataManager(Of Business) End Class Module main Public Sub main() 'This line works Dim MyManager As LockableDataManager(Of Business) = New BusinessManager 'This line doesn't (Is this a bug? or is this wanted?) Dim MyManager2 As LockableDataManager(Of LockableDataObject) = New BusinessManager End Sub End Module Thanks a lot in advance. Jugurten.

    Visual Basic help csharp business question

  • logging off the user when moving from the application
    M Mack Ait Aoudia

    Hello everybody, I'm looking for a way to make a user logged off when he moved from the application. Actually, if the user signed out or if he closed the window's application (whatever the browser used)he is logged off. But the issue now is: if the user would navigate from my application to another site by writing a new url in the adress bar, his session still active. With the back button he could get the page visited and still logged on. At first, I disabled the cache of pages and the back button display an IE empty page. And if we refresh this IE page, we get the previous page and the user still logged. I'll appreciate any suggestions.

    ASP.NET help

  • disabling back button
    M Mack Ait Aoudia

    Hello, This is my problem. I'm looking for any way to avoid logging after the user moved from my app. Now, in masterpage I check if the session("user") is not nothing else redirection to login page. But if user moved from my app and with back button he get an IE page with a message inviting him to refresh the page and when he does so (F5 or refresh button) he still logged and get the previous page. How to avoid this? I'll appreciate any suggestion.

    ASP.NET question

  • disabling back button
    M Mack Ait Aoudia

    Hello everybody, I disabled the back button with disabling the page's cache. But when I refresh the previous page I get a postback and sessionid has the same value, so I still logged on. Is anyone could tell me why the session_end is not fired when I browse to another site from my application (by typing the url in the adress bar)? I get in web.config the sessionState set to mode="InProc". thanks.

    ASP.NET question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups