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

gamerPotatoe

@gamerPotatoe
About
Posts
29
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Imap Proxy for windows - any suggestions
    G gamerPotatoe

    Hi guys I was wondering if there is anything such as an IMAP PROXY for windows. I checked the website www.imapproxy.org and was wondering if theres anything like this for windows platform.

    IT & Infrastructure

  • Need help on a fool proof signup system?
    G gamerPotatoe

    i Guys, Im working on a membership site where users sign up enter their information and then they are directed to the payment gateway website where the user enters their credit card information and thus the transaction is made after which they are redirected to a confirmation page. At the moment the mode of how the sign up process is implemented is as such: 1. Signup page - Users enter basic information - Basic information entered into our database 2. Users redirected to payment site. 3. Users enter payment information 4. Users directed to confirmation page This works in a situation where everything goes as according to an idela situation. HGowever there could be problems in the following situations. If at point 3 instead of making an entry for payment the user closes the browser - has a change of mind, in such a case we'll have an inactive user enteredin to our database who hasn't made a payment. Another sequence of events in which we could work on is as below: 1. Signup page - Users enter basic information - Basic information entered into Session Variable 2. Users redirected to payment site. 3. Users enter payment information 4. Users directed to confirmation page - User information from session variable is inserted into database. However in this case there is a problem of if before point 4 after the user has made a payment the browser crashes or something goes wrong then we have a user whose spent money but with no account. What would be the best way to implement a foolproof signup process?

    IT & Infrastructure help database question

  • What programming language is best for developing simple Vector Editing Gfx program
    G gamerPotatoe

    Hi I need some advice. I need to develop a simple graphics editing program, vector graphics editing program with capabilities to import a black and white bitmap and trace it creating vector shape of the image. What programming language would be best to start work in, I do know a good deal of Visual Basic 6 and a bit of C++ although I am more comfortable with Visual Basic, what prerequisites do I need to be aware of before I start this project, ie. any free controls I need to know of that can speed up things, or programming resources etc.

    IT & Infrastructure graphics c++ debugging performance

  • "Deleted row information cannot be accessed through the row." WHY!!
    G gamerPotatoe

    hi guys, I have a problem with my datagrid. My form is set up so I have two textboxes an add button and an editable datagrid. The datagrid is bound to a datatable which is in my cache.When I click the add button the contents of the textboxes are insertedinto the datatabel in teh cache and the datagrid is bound to it. However the problem comes when I delete a row from the database and then add and edit a row. Lets say my datagrid has only one row, I delete it and then insert a new row. WHen I click on the Edit button I get the following error Deleted row information cannot be accessed through the row. Heres my code for the editable datagrid Private Sub dgEditEducation_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgEditEducation.ItemCommand Select Case e.CommandName Case "Update" populateEducationQ() tblEducation = Cache.Get("tblEducation") Dim dr As DataRow 'find the row which has been clicked on dr = tblEducation.Rows.Item(e.Item.ItemIndex) '.Find(CType(E.Item.FindControl("lblEduID2"), Label).Text) dr.BeginEdit() dr("institute") = CType(e.Item.FindControl("txtEdEInstitute"), TextBox).Text dr("location") = CType(e.Item.FindControl("txtEdELocation"), TextBox).Text dr("eYear") = CType(e.Item.FindControl("ddEdEYar"), DropDownList).SelectedItem.Text dr("major") = CType(e.Item.FindControl("txtEdEMajor"), TextBox).Text dr("eType") = "q" dr.EndEdit() Cache.Insert("tblEducation", tblEducation) dgEditEducation.EditItemIndex = -1 BindEducationQ() Case "Edit" dgEditEducation.EditItemIndex = e.Item.ItemIndex BindEducationQ() Dim dr As DataRow tblEducation = Cache.Get("tblEducation") dr = tblEducation.Rows(e.Item.ItemIndex) Dim ddl As DropDownList = CType(dgEditEducation.Items(dgEditEducation.EditItemIndex).FindControl("ddEdEYar"), DropDownList) ddl.SelectedIndex = ddl.Items.IndexOf(ddl.Items.FindByValue((dr("eYear")))) Case "Cancel" dgEditEducation.EditItemIndex = -1 BindEducationQ() Case "Delete" tblEducation = Cache.Get("tblEducation")

    ASP.NET help database design announcement

  • How to Categorize Data in a datagrid
    G gamerPotatoe

    Hi guys I have the following tables. The student info table contains info on students, the grade info hold info on their classes or grades & the billinfo table holds info on each students fees. Tables studentInfo ----------- StudentId(PK) studentName gradeId (FK) GradeInfo ---------- gradeId(PK) GradeName BillInfo ----------- childId(FK) forMonth IssueDate DueDate The thing is that I want to be able to show the details In a SINGLE Datagrid Such that the students are divided - within the datagrid- on the basis of their respective grades. as in the diagram below ---------------------------------------------------- playgroup ---------------------------------------------------- Name ForMonth Issued Date Due Date xyxy ---------------------------------------------------- Nursery ---------------------------------------------------- Name ForMonth Issued Date Due Date yyxy I'm using ASP.NET, any ideas or code snippets would be greatly appreciated.:-D

    ASP.NET csharp asp-net tutorial

  • binding drop down lists in editable datagrids
    G gamerPotatoe

    I have an editable datagrid with some textboxes and a drop down list in editable mode. The thing is that I know how to bind data to the textboxes so that when ever I click the edit button on the datagrid the textboxes appear with the default data of the correspondiong cell. However I'm stuck with trying to implement the same for the drop down list. I would appreciate any form of help on this. :-D

    ASP.NET help wpf wcf tutorial

  • To loop thru controls on an ASP.NET page
    G gamerPotatoe

    I know I'm posting alot today but the project I'm working on seems to be giving me a real taste of basic asp.net. I need to like run a loop on my asp.net page and disable a number of textboxes on the page within the loop. I know how it used to be done in good old vb6 but its not working in the exact same way on an asp.net page. I get stuck when I try to disable the control. My code flow is like this for each ctl in page.controls if typeof ctl is textbox ctl.enabled = false ' This line doesn't work infact during design time ' the IDE doesn't even recognise ".enabled" as ' a property of the control endif next I really need all the help I can get:^)

    ASP.NET help csharp asp-net visual-studio

  • add values from one page into textbox on another
    G gamerPotatoe

    I have an asp.net page which contains a textbox and a hyperlink. When I click on the hyperlink it opens up a page with a list of hyperlinked values. I want that when I click on the hyperlink value on the other page, a value should be entered into the textbox on the original page basedupon the hyperlink I've clicked and the hyperlink list pages closes. Basically I want that my end user instead of having to enter in a string ID, instead selects it from the other page. Any ideas on how to do that guys :laugh:

    ASP.NET csharp asp-net tutorial

  • a datagrid that just won't stop Validating :(
    G gamerPotatoe

    I have an ASP.NET page with a couple of textboxes and a editable datagrid. A button on the page enters the contents of the textboxes into a datatable and then binds the datagrid to the datatable - no problems here. The thing is that I have associated a couple of requiredvalidators to the textboxes. And whenever I try to edit the datagrid by clicking on the update link of the corresponding row on the datagrid, the requiredvalidators on the external textboxes flare up preventing the form from being submitted. Is there a way to set up the datagrid so that it doesn't 'cause validation' when in editable mode. :sigh:

    ASP.NET csharp asp-net announcement

  • .NET, a datagrid & a roundhouse trip to a databse I could do without
    G gamerPotatoe

    Hi guys, I have an editable datagrid which loads values from a sqlserver database and also allows to edit & delete the respective elements when needed. I have currently also included a seperate add utility in the form of textboxes and an add button which enters all textbox values into the databse and binds the datagrid showing the newly entered row. The thing is this all doing very well BUT the problem is that these additions and updations all require a round trip to the database updating and deleting entries directly from the databse. I want that the datagrid allows editing and edition of values in the datagrid but doesn't upodate the database until I say so, like I could put a 'save all' button that updates the changed values in the datagrid to the database in ONE go. Any solutions , source code snippets would be greatly appreciated:D

    ASP.NET csharp database tools help

  • troubles with MS.Access & ASP.NET.
    G gamerPotatoe

    Hi guys I'm accessing MS Access database from an ASP.NET page but I can't seem to be able to delete, insert or update any row in the database. I'm tryin the ExecuteNonQuery Method of the Command bject but in all cases I get an error saying that "System.Data.OleDb.OleDbException: Operation must use an updateable query" However retrieving records from teh same access database using executereader works just fine. I really need to find out whats wrong here.

    Visual Basic database csharp asp-net help announcement

  • how 2 print only a portion of a form
    G gamerPotatoe

    I have a form and I want to like print only part of the form, lets say a rectangular area on the form. How can I do it in visual basic 6. Any comments will be highly appreciated ;)

    Visual Basic question

  • How to use a datagrid or flexgrid for user input
    G gamerPotatoe

    I want to know how to use a datagrid or a flexgrid to get input from the user. Basically I nee d to get information from teh user in a matrix arrangement like a grid but I'm not sure how to use these controls to do it. I haven't used these controls much and would gladly appreciate the help;)

    Visual Basic css help tutorial

  • Newbie: want to create instance of line control at run time through code
    G gamerPotatoe

    HI guys its me again I'm really stuck and I need the help. I want to create an instance of the line control on my form at run time. But some how the following code doesn't work DIm line1 as Line Set line1 = New Line 'setting line properties line1.visible = true I really need to knwo how to do this and I don't want to use any drawline functions as I don't want to draw a bitmap just want to be able to create an instance of the line control. I really need the help I'm using vb6

    Visual Basic help graphics tutorial

  • A little problem in ActiveX control programming
    G gamerPotatoe

    Actually when I declare teh public Properties for the Picture element of the activeX control what sort of object do I pass to the property like in the following declaration: Public Property Get Picture () AS ???? what do I get teh piucture as in what format a string or an image? I also have another simple problem on how to create instances of the line control at run time through code.

    Visual Basic help com question

  • A little problem in ActiveX control programming
    G gamerPotatoe

    HI guys I have a couple of questions on creating custom activeX controls. I have a customs activeX control with two constotutent controls An ImageBox and a label. I've exposed two properties namely Picture which corrsponds to the image boxes picture property and Caption which corresponds to teh labels caption. At the moment I'm like setting the picture property by just passing it a string. But that's seriously not how it should be working I mean when you set the Image controls picture property you choose from a file dialog. My code is as below: Option Explicit Public Event Click() Private Sub Image1_Click() RaiseEvent Click End Sub Private Sub UserControl_InitProperties() With Image1 ' .Picture = Nothing End With With lblRouterIP .Caption = "" End With End Sub Private Sub UserControl_ReadProperties(PropBag As PropertyBag) BackColor = PropBag.ReadProperty("BackColor", BackColor) With Image1 .picture = PropBag.ReadProperty("Picture", .picture) End With With lblRouterIP .Caption = PropBag.ReadProperty("caption", .Caption) End With End Sub Private Sub UserControl_WriteProperties(PropBag As PropertyBag) Call PropBag.WriteProperty("Picture", Image1.picture) Call PropBag.WriteProperty("caption", lblRouterIP.Caption, "") End Sub 'PROBLEM AREA Public Property Get picture() As String picture = Trim(Image1.picture) End Property Public Property Let picture(ByVal img As String) Image1.picture = LoadPicture(img) Call UserControl.PropertyChanged("picture") End Property Public Property Get Caption() As String Caption = lblRouterIP.Caption End Property Public Property Let Caption(ByVal str As String) lblRouterIP.Caption = str Call UserControl.PropertyChanged("Caption") End Property it doesn't make any sense to return a picture as a string. Also lets say that I want to create my own property for this active X control like uh the name of Status that can hold 3 values. How can I do that. I've been using vb6 for a while but this is my initial attempt at activeX programming. I'm using vb 6 and would greatly appreciate the help. :-D

    Visual Basic help com question

  • Want to create a custom line control that handles events
    G gamerPotatoe

    I want to customise a line control such that when I run myy application I can draw lines on the form by clicking and releasing the mouse AND I want that the lines I draw be susceptible to user events such as clicks and get focus. Kinda Like the line control in vb6 authroing environment except that the line control in vb6 doesn't respond to any events. I'm like stuck on how to make such a line control that can respond to user events like gettiung clicked and getting focus... very much like the line and connectors that are drawn in programs like rational ROse and Visio. I'm using vb6 This is a complex project and I'm pretty much stuck on a line :-D

    Visual Basic help tutorial workspace

  • How 2 drag and drop 'items' onto a screen as in visio
    G gamerPotatoe

    I'm not like totally raw in VB6 I've made & used simple classes and activeX controls.. I'm just a bit rusty in VB6 thats all :). My object oriented concepts are pretty good I should say cos I'm pretty fine in VC++6. The only thing is that the restriction on this project is that its hould be in VB6. I would like to know on how to start and where to begin.

    Visual Basic help graphics design sysadmin

  • How 2 drag and drop 'items' onto a screen as in visio
    G gamerPotatoe

    HI guys I'm working on a simple program. Its supposed to be a network simulator to simulate simple routing algorithms and it consists of a small network design module where the user can actually draw a network with nodes and connectors on the screen. I'm kinda stuck at the drawing part like I want to make a simple drawing environment like Microsoft visio, where you drag items like nodes and routers from a toolbox onto a main screen and connect them with lines that signify connections. The thing is that I've not done much in VB and I'd like some pointers on how could this be done i.e. just the drawing environment. I'm using vb6 and could really use the help.

    Visual Basic help graphics design sysadmin

  • Trouble with query
    G gamerPotatoe

    Hi there I habve a problem with a query on two relations I have two relations here: RESERVED_LEGS PNR|FLNO|FLDATE|RSRVDATE And Tickets_Purchased TKTNO|CLASS|DATEPURCHASE|PRICE|LEGID|PNR|WLR this is a simple flight reservation scenario. -When a passenger buys a ticket an entry is made in the tickets purchased relation - and if he makes a booking on that relation the ticket number is associated with an autogenerated PNR value (other wise null if no reservation is made on ticket) and updated in the tickets_PURCHASED relation - AND LIKEWISE an entry with the correposnding PNR is made in the RESERVED_LEGS TABLE where details of the flight number and date are added. There are 2 classes of tickets here namely -first -Third The problem is that I have to make a query which shows the number of resercvations made (in this case entries in the Reserved_Legs table) on the basis of class of tickets upon which reservations were made as well as broke up into months i.e. ------------------------------------------------ |Class |Jan|Feb|March|April|May|June|July|Aug..... ------------------------------------------------ ------------------------------------------------ |First |130|500|320 |112 |120|100 |145 |145| ------------------------------------------------ |Third |402|180|110 |510 |410|110 |128 |162| ------------------------------------------------ The thing is that I'm not sure how this can be accomplished by an SQL query, I've been hacking at it for a while and still have no luck. I tried some queries but the thing is that at anytime there is no guarantee that there will be a ticket of all teh classes booked in all the months. What would be the best way to do this. Any SQL that can create the above relation or is any PL required. I'm doing this for a project and I'm using SQL server 2000 :) and would like any suggestions.

    Database 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