Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Help with and user editing and buttons

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,56441
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Help with and user editing and buttons
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Help with and user editing and buttons - 2/7/2008 3:46:52 AM   
  Rikki_UW

 

Posts: 4
Score: 0
Joined: 2/7/2008
Status: offline
Hello all. I have a few questions on basic things I am having trouble with.

First off and easiest, I have a Navigation Frame at the to of my site, with links to the rest of the site, but I want to use buttons instead, as they look better. How can I buttons to link to another page? I tried using teh NavigateUrl attribute like a normal HyperLink in asp.net but it doesn't work. Is there something I could add/modify in the behind code to accomplish this?

Second, I have a datagrid on a page of the site with two date columns that I want to be able to edit. I tried adding an edit column based on another chart with an edit column but it doesn't work properly. When I click edit to change a row, it changes to update or cancel options in that row like it should but it doesn't let me change what I want to. The only reason I can think of is that they are dates and I was basing on editing text. How can I change the code to allow me to edit them? The information is in a MS Access database.

Here is what I have at the moment:


      

Thanks!

--Rikki
 
 
Post #: 1
 
 RE: Help with and user editing and buttons - 2/8/2008 2:05:49 AM   
  Rikki_UW

 

Posts: 4
Score: 0
Joined: 2/7/2008
Status: offline
I have managed to figure out the problem with the buttons, but I still cannot figure out what is wrong with my code to edit the date columns.
Anyone have any ideas?

--Rikki

(in reply to Rikki_UW)
 
 
Post #: 2
 
 RE: Help with and user editing and buttons - 2/10/2008 5:58:30 AM   
  Matt1034

 

Posts: 2
Score: 0
Joined: 2/9/2008
Status: offline
Try using # between the date variables instead of single quotes.

Assuming Expires is your Date field...

Expires="# & objGlobal.ConvertDbStr(otxtExpires.Text) & #"

(in reply to Rikki_UW)
 
 
Post #: 3
 
 RE: Help with and user editing and buttons - 2/11/2008 12:09:05 AM   
  Rikki_UW

 

Posts: 4
Score: 0
Joined: 2/7/2008
Status: offline
Thank you for your reply, but it seems I have made a mistake. In the Access database where the info is coming from Expires and Note(now changed to Received) are text fields, but on the web page I want to use the text boxes to force the user to enter a date in a specific format so that everything ends up looking the same. How would I accomplish this? At the moment I am just editing them as text.

--Rikki

< Message edited by Rikki_UW -- 2/11/2008 2:38:30 AM >

(in reply to Matt1034)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Help with and user editing and buttons Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts