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
Z

zitniet

@zitniet
About
Posts
7
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Screen Scraping + RDF
    Z zitniet

    Hi there, I can't help you out right now, but i saw some similairity in what you're looking for and what i'm looking for. See thread: http://www.codeproject.com/script/comments/forums.asp?forumid=1641#xx1200889xx[^] Like you i'm new to .NET (primairly focusing on C#, ASP.NET and SQL2000) and interrested in what you learn about these subjects. If i find something that could help you with your task i'll let you know. What is a RDF file anyway? Goodluck soldier! Just give me the blue pill...i dont want to go down into rabbitholes...

    C# csharp help tutorial learning

  • Configurable Webpage-scrapper with learning capabilities
    Z zitniet

    I like "The Code Project" site. A lot of articles have information and code that i don't need directly, but i already have a purpose for them in the future. So i like to keep those articles on my localdrive. The proces of storing all the wanted data of the article in the format and location i like is rather timeconsuming. -First i create a Worddocument -then i start scraping the header of the article from the screen and paste it in this Worddocument -then i scrape the content of the article from the top inluding downloadlinks to the bottom just after the author's profile (i dont want links of other interresting articles in this document) and paste it in this Worddocument. -then i save the worddocument in a subdirectory at a predefined location with the name of the title of the article (the subdirectory is also named after the title of the article) -then i start downloading the files on the top if any are included and place them in the subdirectory mentioned earlier. This problem is the same with other websites, mostly the way they present the data is different. Wouldn't it be great to have a tool where you can automate this task after you first explain the tool how to gather the data from a particular webpage, in which format and where to store it. It's pretty much how they program a robot in the car industry that has to paint the chassis of a car model (once programmed the robot does it exactly the same every time for that car model). The tool should eventually recognize if a presented page has been scraped before or that something has changed! The tool should also try to scrape the name of the files from the screen and use them instead of the suggested files in the download dialog. I would very much like to participate in a project for such a tool. Zitniet

    Article Writing help tutorial learning

  • Custom Datagrid Pager
    Z zitniet

    This is a great article about paging (large recordsets): http://www.codeproject.com/aspnet/PagingLarge.asp[^] or look here: http://www.dotnetjunkies.com/Tutorial/EA868776-D71E-448A-BC23-B64B871F967F.dcik[^] I actually implemented the temp table approach and i can tell you that it kicks ass! Goodluck soldier! Zitniet.

    ASP.NET help tutorial

  • DataGrid and a million records
    Z zitniet

    In below message reply i refer to a paging article which might be what you are looking for. I used the concept and gained asskickin performance! I use a phonebook with god-knows how many millions of records and page through them as if i am chopping unions... i litterally cry of happyness... ;-) Go here: http://www.codeproject.com/aspnet/PagingLarge.asp[^] Goodluck soldier! -- modified at 11:29 Saturday 18th February, 2006

    ASP.NET database sysadmin question

  • wanted to write an interpreter for a language of my own
    Z zitniet

    No i dont, but start looking here: http://home.earthlink.net/~huston2/dp/interpreter.html[^] or here: http://wiki.cs.uiuc.edu/patternStories/InterpreterPattern[^] i wish you goodluck soldier! Zitniet

    C# help tutorial question

  • How to create a Query builder through asp.net
    Z zitniet

    Hi, Start looking here: http://www.codeproject.com/vb/net/QuickWhere.asp[^] Goodluck! Zitniet.

    ASP.NET database csharp asp-net design help

  • DataGrid maniac
    Z zitniet

    If i understand your cry-out for help correctly then you have a DataGrid WebControl where you added a CommandButton in the last column (which will be shown in every row). When this CommandButton is pressed you like to get some PrimairyKeyID of the row in order to do some processing (in your case add it to a shopingcart). I will give you an idea of how you could do this. I have not tested the code below, it's just that you get the general idea. Below is a fragment of how your DataGrid statement could look like. It just shows the minimum statements you need (there is a lot more to configure). I assume your table has a PrimairyKey named "yourPrimairyKeyID" and the DataGrid is named "yourDataGrid" and your CommandButton is named "Add". ----your .ASPX file--------- //All your web statements before the datagrid<asp:datagrid id="yourDataGrid" runat="server" DataKeyField="yourPrimairyKeyID" AutoGenerateColumns="True" OnItemCommand="yourDataGrid_ItemCommand"> <Columns> //All your other column definitions here if you want the "Add" button in the last column (you will have to to setup the other columns manually) <asp:ButtonColumn Text="Add" ButtonType="PushButton" CommandName="Add"> </asp:ButtonColumn> </Columns> </asp:datagrid>
    //All your web statements after the datagrid ---------------------------- Below is a fragment of how your Command handler could look like in C#-code (You will have to figure out the VB-code for yourself). ---your .ASPX.CS file----------- private void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack ) { bindDataGrid(); } } private void bindDataGrid() { DataView dv=((DataView) createDataSource()).DefaultView; yourDataGrid.DataSource = dv; yourDataGrid.DataKeyField = "yourPrimairyKeyID"; yourDataGrid.DataBind(); } private DataTable createDataSource() { DataTable datatable; // code here to produce the datatable; return dataTable; } public void yourDataGrid_ItemCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int yourPrimairyKeyID; switch (e.CommandName) { case "Add": addToShoppingCart(Convert.ToInt32 ( yourDataGrid.DataKeys[e.Item.ItemIndex])); break; default: break; } } private void addToShoppingCart(int yourPrimairyKeyID ) { // Do what ever processing you want based on yourPrimairyKeyID // In your case you would add thi

    ASP.NET database algorithms 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