Jump to content
Xtreme .Net Talk

mr relaxo

Avatar/Signature
  • Posts

    53
  • Joined

  • Last visited

About mr relaxo

  • Birthday 11/15/1979

Personal Information

  • Occupation
    freelancer
  • Visual Studio .NET Version
    2003 academic
  • .NET Preferred Language
    vb.net/C#

mr relaxo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. That will return the index of the selected item which I dont think is what your looking for. use dropdownlist3.selectedvalue to get the underlying value of the listitem or dropdownlist3.selecteditem.text to get the actual text seen by the user. Also if selectedindex is returning 0 you probably dont have code like If Not Page.IsPostBack Then ' insert call to function/sub that loads your page here End If in your page_load event.
  2. hi everyone, im trying to create what seems like a pretty straightfoward little app. I basically want the user to be able to select text from listboxes etc from a form and then insert the text at the desired location in a word 2000 document. im using docvariables in the document and i have the following code Public Class Xdocument Shared wordapp As Word.ApplicationClass Shared worddoc As Word.Document Shared wordrange As Word.Range Shared wordbk As Word.Bookmark Shared wordpara As Word.Paragraph Shared fld As Word.Field Shared dv As Word.Variable Shared Function addsometext(ByVal text As String) As Boolean Try wordapp = New Word.ApplicationClass wordapp.Documents.Open("e:\vb\testdoc.doc") 'wordrange = wordapp.ActiveDocument.Range For Each fld In wordapp.ActiveDocument.Fields If fld.Type = Word.WdFieldType.wdFieldDocVariable Then 'if variables name is "something" then '"insert some text here" End If Next i can find the docvariables ok, what i cant figure out is how to access the docvariables properties via the field object. is some sort of cast required or what? I may be totally headed in the wrong direction here so please feel free to point me in the right one. Thanks, Kris.
  3. for web graphics, macromedia fireworks is pretty standard and easy to use. I do a mock page layout in it with all the menus/graphics, then export what i need as html/javascript. then just cut and paste the code fireworks generates into a user control. its quick and gives you more time to concentrate on the programming aspect. you can do more complex things in photoshop but the learning curve is a bit steeper, not to mention the pricetag.
  4. do you mean something like this?? String myvalue; foreach(ListItem li in ListBox1.Items) { if(li.Selected == true) { myvalue = li.text; } }
  5. you'll need to study up on .NET role-based security.
  6. Use the html <strike> tag.
  7. you could buy the book "windows xp hacks", theres a few performance tweaks in there. Though you're probably better saving your money and buying a better processor or more RAM. I find tweaks or apps that claim to "speed up windows" invariably provide no noticable performance increase and can stop things working properly anyways.
  8. you write an sql statement that attempts to retrieve a record matching the users input. e.g Dim strSQL As String = "select * from customers where CustomerCode = '" & (loginnamevariable) & "'" & _ "and password = '" & (passwordvariable) & "' ;" fill a dataset with the result. if the rowcount of the table in the dataset is 1 you've got a match so let them in otherwise kick them out.
  9. You can query datatables with the select method which returns an array of datarows. eg 'fill a dataset named ds with a column named "itemId" dim rows() as datarow rows = ds.tables(0).select("itemId < 5")
  10. Investigate the PagedDataSource class.
  11. I have an sql statement as a string like this: "Select sizeid, CONCAT (sizeid, " / ", description) as merge from sizes order by sizeid" I cant figure out how to get the " / " part to be taken literally. Can someone help me out? Thanks, Kris.
  12. it can be done with javascript. look here http://www.dynamicdrive.com/dynamicindex16/disableenter.htm
  13. Hi everybody, I have a website job coming up, the client wants to sell some merchandise online. I dont think they'll sell enough to warrant real-time processing so im basically wondering what the generally accepted practises for handling credit card are? I know you need a SSL certificate to establish a secure connection between client and server, but then what? Should you write the information to a database? email it to the processing department? Im basically just a bit nervous/confused about it and was hoping somebody could give me some advice on the best way to go about securing the information and transmitting it to the appropriate place. Thanks alot, Kris.
  14. http://www.homestarrunner.com
×
×
  • Create New...