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
W

wildfiction

@wildfiction
About
Posts
20
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Unmangle DLL name in DotNetNuke
    W wildfiction

    I'm trying to compile a module that I've written for DotNetNuke. (Actual I have compiled it without problem.) When I generate the web site the DLL for that module has a wacky mangled name. Is there anyway to tell the compiler (VS2005) what the name of the DLL should be for a module that you are compiling? (For any cs or vb file that you're compling...) Thanks

    ASP.NET help question

  • error 404 rerouting
    W wildfiction

    I thought I had tried document.referrer last week and couldn't get it to work but just tried it again now and it seems to work okay. Thanks again!! Problem solved and a solution found thanks to all your help :)

    Web Development javascript html windows-admin help question

  • error 404 rerouting
    W wildfiction

    That makes sense. But I was under the impression that you could at least get to the page that linked to this one. Otherwise your log files wouldn't be able to tell you where your referrals came from right?

    Web Development javascript html windows-admin help question

  • error 404 rerouting
    W wildfiction

    Thanks Michael - I'll correct that. Any ideas about the history object?

    Web Development javascript html windows-admin help question

  • internet accelerator
    W wildfiction

    accelerators work by compressing the info that comes down the pipe and decompressing it at the other end: ... ... ... ... Depending on the accelerator you can configure it to send low quality images instead of the full image and leave out certain things from pages such as adverts. It's all about sending less info down the wire.

    Web Development performance help tutorial question

  • error 404 rerouting
    W wildfiction

    I'm trying to improve on this and also get the page which had the link to the missing page. I'm trying to use the history object: document.write("window.history.length=" + window.history.length + " "); etc... Problem is I can't work out how to access element n out of the history array. I tried window.history[1] etc. but that doesn't work and the w3 schools doesn't seem to have any more info on it. Anybody know the syntax for this? -- modified at 0:12 Friday 30th December, 2005

    Web Development javascript html windows-admin help question

  • error 404 rerouting
    W wildfiction

    Michael: You're a genuis - a millions thanks for your help. This works and does just what I want: var lostPage = window.location.href; window.location = "http://www.xxxxxx.com/pnf.aspx?lost=" + lostPage; Once I'm at the aspx page it becomes much easier to process and redirect the error. Thanks again!!

    Web Development javascript html windows-admin help question

  • error 404 rerouting
    W wildfiction

    Thanks for the links Michael. No, there is no querystring variable. I was under the impression that you could pick up the referring page (the missing page that generates the 404) from a java variable?

    Web Development javascript html windows-admin help question

  • error 404 rerouting
    W wildfiction

    Any resources that you could refer me to where I'd find the java script syntax to do that. I'm only acquintanted with java script in browsers and haven't been fully introduced so I'm not sure how I would retrieve the value of the page which cause the 404.

    Web Development javascript html windows-admin help question

  • Stripping out HTML code
    W wildfiction

    Thanks Mircea!! That will work because I don't have any script in the html. I'm reading through the Regex documentation and I can't find the syntax to use for the < ??? > part of the functions. How do you find <*>? Or how do you specify <*> in a regular expression? Thanks again for your help - much appreciated. -- modified at 20:53 Wednesday 28th December, 2005

    ASP.NET csharp html asp-net question

  • error 404 rerouting
    W wildfiction

    My web host has IIS setup such that the 404 error page is called error404.html and lives in the root of the web space. In my web space I have a number of web sites, each one in a different folder (except one which is in the root): www.eg1dotcom -> \ www.eg2dotcom -> \folder1 www.eg3dotcom -> \folder2 now if a page is not found then the browser is routed to error404.html in the root folder. This was fine while I had 1 web there. Now that I have several webs I'd like to add some javascript to the error404.html page and if the missing page comes from (say) www.eg3dotcom I would like the error404.html page to reroute to www.eg3dotcom/error404.html or aspx etc. Any ideas or pointers to where I should look? Thanks!

    Web Development javascript html windows-admin help question

  • Stripping out HTML code
    W wildfiction

    Hi, (Using C# in ASP.NET) I have a string that contains about 7K of HTML formatted text. I need to strip out all of the HTML codes and convert the   and > etc. codes to spaces and > etc. Now I can write this myself but I'm guessing that there is already a bit of well worn code out here somewhere that already does this OR it is already built into the ASP.NET library (but I can't find it). Anybody have any pointers for me? The reason that I'm doing this is because I wish to search this chunk of HTML for certain words and don't want to search the HTML codes but just what the user sees. Is there a more elegant approach than that which I'm taking? Thanks! -- modified at 19:48 Wednesday 28th December, 2005

    ASP.NET csharp html asp-net question

  • VB to C# SQL Server conversion error
    W wildfiction

    daniero - you are a genius. I knew it was going to be something simple like that that I'd overlooked and another pair of eyes would spot. That fixed the problem - thanks again daniero. Also thanks to Al for all the time and effort he put in helping me here. The solution was so simple it alluded us for an entire day.

    ASP.NET csharp database sql-server sysadmin help

  • VB to C# SQL Server conversion error
    W wildfiction

    I haven't tried that Al but will do - I'm about to crash as well. Thanks for all your help today. Perhaps tomorrow we'll crack it :)

    ASP.NET csharp database sql-server sysadmin help

  • VB to C# SQL Server conversion error
    W wildfiction

    I tried that before Al. That's how it was originally when it didn't work. Only when it didn't work did I move it into the code behind page to see if that would make it work. But I will try again anyway and report back...

    ASP.NET csharp database sql-server sysadmin help

  • VB to C# SQL Server conversion error
    W wildfiction

    The email is on its way. Thanks Al.

    ASP.NET csharp database sql-server sysadmin help

  • VB to C# SQL Server conversion error
    W wildfiction

    The VB and C# code is working side by side in the same project because it is in an ASPX file and not in the code behind file. In fact, when I initially tried to do this conversion from VB to C# there was no code behind file. I've subsequently tried all sorts of combinations: I've completely removed the ASPX file holding the VB code. I've used the C# code only in the aspx file (i.e. inline) and also in a code behind file but same results: SQL Server error with C# but not when using VB. As you can see from my initial post, the code is very simple and straight forward and should translate without a problem.

    ASP.NET csharp database sql-server sysadmin help

  • VB to C# SQL Server conversion error
    W wildfiction

    That didn't help either Al - exactly the same error. I've just had a thought. Remember with C/C++ you can choose the calling parameter convention and the order in which to push and pop parameters off the stack? i.e. PASCAL or CDECL or something like that? Well I'm just wondering if this is the problem now... What I'm doing to test this is switching between a testCS.aspx page as the start page and a testVB.aspx start page. Does the project need to know a calling convention or some other global setting to make one work? Or can you just mix and match VB and C# in a project. I'm aware that you can't mix C# and VB in a file but I was under the impression that an ASPX file can be in either or and you can mix the files together in a project. Thanks again for your help.

    ASP.NET csharp database sql-server sysadmin help

  • VB to C# SQL Server conversion error
    W wildfiction

    Thanks for the idea Al. I've tried that but no luck - unfortunately. Exactly the same error. Thanks again for taking the time to look at the problem!

    ASP.NET csharp database sql-server sysadmin help

  • VB to C# SQL Server conversion error
    W wildfiction

    Can anyone see what I'm doing wrong here? I have translated some (simple) VB code to C# but the original works while the C# doesn't. Here it is: VB Code: (works) Dim oDR as System.Data.SQLClient.SQLDataReader Dim oCom As System.Data.SQLClient.SqlCommand Dim oConn as System.Data.SQLClient.SQLConnection try oConn = New System.Data.SQLClient.SQLConnection ("server=MACH2\vsdotnet; initial catalog=tablexxx; uid=test2; pwd=test2") oConn.Open() ... C# Code: (Gives error: SQL Server does not exist or access denied) System.Data.SqlClient.SqlDataReader oDR; System.Data.SqlClient.SqlCommand oCom; System.Data.SqlClient.SqlConnection oConn; try { oConn = new System.Data.SqlClient.SqlConnection("server=MACH2\vsdotnet; initial catalog=tablexxx; uid=test2; pwd=test2"); oConn.Open(); ... Any ideas?

    ASP.NET csharp database sql-server sysadmin help
  • Login

  • Don't have an account? Register

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