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
G

Gavin Jeffrey

@Gavin Jeffrey
About
Posts
153
Topics
19
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Upload Big File
    G Gavin Jeffrey

    yes there is a limit on the size of the file, it can however be changed see - here

    ASP.NET question csharp

  • FSO read in?
    G Gavin Jeffrey

    are you using asp.net or asp 3? cause the code i have given you will only work in asp.net. if you wanted to do this in asp 3 you would have to have do something like: 'get the file path - Set txtFilePath = Replace(f1.name, right(lcase(f1.name),4), ".txt") 'then read the file using fso dim txtStream Set txtStream = fso.OpenTextFile(txtFilePath, fsoForReading) 'the write the string out Response.Write txtStream.ReadAll txtStream.Close im a bit rusty in this area but this should give you more or less an idea!

    ASP.NET question help

  • FSO read in?
    G Gavin Jeffrey

    i would do something like - foreach (string s in System.IO.Directory.GetFiles(@"c:\dir", "*.gif")) { string txtPath = s.Substring(0, s.Length - 3) + "txt"; System.IO.TextReader tr = new System.IO.StreamReader(txtPath); string text = tr.ReadToEnd(); tr.Close(); }

    ASP.NET question help

  • URGENT
    G Gavin Jeffrey

    Can you tell us what you are using to create the xml? Basically your problem is that an xml document can only have one root node so - is invalid. The valid way to store two nodes would be -

    XML / XSL csharp help visual-studio winforms xml

  • How to Deploy my Vb.net 2005 application on server ? [modified]
    G Gavin Jeffrey

    you should look into clickonce deployment. Basically all you need to do is right click on your project and click on publish. There is a lot of info from Microsoft on this. http://msdn2.microsoft.com/en-us/library/t71a733d.aspx

    Visual Basic csharp database oracle sysadmin

  • Access Id Returned From Stored Procedure
    G Gavin Jeffrey

    iSet.Tables[0].Rows[0][0].Tostring(); ??

    ASP.NET csharp database help tutorial

  • a couple of C# questions
    G Gavin Jeffrey

    - decimal decEuro = Convert.ToDecimal(txtEuro.Text.Trim()); - would throw an FormatException - I would say that double would be better for currency - returned is always object i.e. it is an Object of decimal - You could look at something like: System.Globalization.CultureInfo c = new System.Globalization.CultureInfo("en-ZA");//I think? i don't really know much about this so I can't really help. Or you could format your data in your query before it gets returned to the front end e.g. select convert(varchar(10),DateCaptured,101)... would return me my date already in the format i want - you could use response.redirect("pageb.aspx?txtFName=" + txtFName.Text + "); and then at page b you could use Request["txtFName"].ToString();

    C# question csharp css database sql-server

  • Unicode problem
    G Gavin Jeffrey

    if you know that the data in the columns doesn't exceed a length of 8000 you could try something like - update Table1 set test1=replace(convert(varchar(8000),test1),'x','a'), test2=replace(convert(varchar(80000),test2),'x','a') Otherwise you might have to go the code route.

    Visual Basic javascript database sysadmin help

  • SQL Writable Data
    G Gavin Jeffrey

    Well it depends on what your stored proc does - if it does an insert/update call registerCMD.ExecuteNonQuery(); If it return something you can either call registerCMD.ExecuteReader(); or use a SqlDataApabter

    Web Development csharp database help

  • Unicode problem
    G Gavin Jeffrey

    You could (should be able to depending on the database u r using?) do the entire thing at the database level, below is a mssql example - update Articles_production set Description = replace(Description,'junk character','replacement character'), Description_abtract = .... You may however have to run the update statement for each junk character.

    Visual Basic javascript database sysadmin help

  • Creating objects in IIS fails
    G Gavin Jeffrey

    This is just a total stab in the dark but if IIS is version 5.1 check out the link for a fix http://www.brooksyounce.com/xp_asp_fix.htm

    Web Development com windows-admin help question workspace

  • hide and show the textbox in the webform....
    G Gavin Jeffrey

    use javascript in the dropdownlist add something like onchange="showHide()" then with javascript - function showHide() { if(document.getElementById("txtboxID").style.display == "none") document.getElementById("txtboxID").style.display = "block"; else document.getElementById("txtboxID").style.display = "none"; }

    ASP.NET

  • Serial Ports in C#
    G Gavin Jeffrey

    This link might shed some light on the matter - http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/default.aspx

    C# csharp question visual-studio tutorial

  • ODBC Dataadapter - Error HY007 on update!
    G Gavin Jeffrey

    You need to specify the update command that the dataApdater should use i.e. the UpdateCommand.

    C# csharp database help sql-server sysadmin

  • diplaying data in datagrid without child table
    G Gavin Jeffrey

    hmmm...not sure really - what about setting the DataMember i.e. dg.DataMember = "parent"; or clearing all the relations on the dataset i.e. dataset.Relations.Clear();

    C# css help tutorial

  • diplaying data in datagrid without child table
    G Gavin Jeffrey

    Change your datagrids datasource property to be = parent table and not the dataset

    C# css help tutorial

  • positioning a web user control
    G Gavin Jeffrey

    Pretty much the same way you would position any other control. Either specify a top and left in the style or put it into a table/div

    ASP.NET tutorial

  • How to "post " form variable to another windows ?
    G Gavin Jeffrey

    You can use the Server.Transfer method to hide variables between pages check out - http://www.dotnetbips.com/displayarticle.aspx?id=79 for an example

    Web Development question csharp help tutorial learning

  • Session time out
    G Gavin Jeffrey

    Thats because the session hasn't ended and just timed out. If you close the browser window you should be able to see the event being fired.

    Web Development help question

  • Web based active directory login
    G Gavin Jeffrey

    Could you tell us more about your environment i.e. what version of iis you are using and what version of windows? Also post the code were the error is happening.

    Web Development help com sysadmin windows-admin 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