473,396 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

create hyperlink field from DB

23
I have a column on a grid view I read in froma DB. The field has 2 values true or false. Now if i click on the field i want the gridview and the DB updated to the new value. I click on true on a row and it changes it to false after it has reloaded the page just on that row.

In PHP you just make a field a hyperlink and send data to another page to update and automatically go back and refresh the page .


q1)how do i make a value clickable and i can get the whole row details from that?

PS I do not want to use the edit/select hyperlinks froma gridview. In fact no way do i want to. This is going backwards from a php solution.
Mar 18 '08 #1
2 1160
jagguy
23
1)ok i have got this far with some basic questions i need to ask.
when i code in the aspx.vb area (whatever you call the coding area in aspx using vb), can i create template field there instead of what i have below?

Expand|Select|Wrap|Line Numbers
  1.    <asp:BoundField
  2.         HeaderText="Fname"
  3.         DataField ="fname"
  4.         />
  5.         <asp:TemplateField >
  6.         <ItemTemplate >
  7.         <asp:LinkButton id="one" commandname="two" runat ="server" 'can i create dynamically in aspx.vb code?
  8.          CommandArgument='<%# Bind("id")%>' Text ='<%# Bind("id")%>' >
  9.         </asp:LinkButton>
  10.         </ItemTemplate>
  11.         </asp:TemplateField>
  12.  
2)what are the pros and cons of having autgenerated columns? I need to manually list all fields myself which seems a pain .
Mar 19 '08 #2
jagguy
23
I can do the link button now .

q1)could you pojnt me to an example of how i make a template field in the codebehind area rather than the form area?

q2)What if i have 2 link buttons? when the Rowcommand is raised how do i know which linkbutton raised it?

q3)many examples i see database fields written in the form page or html area. Why do this when you dont need to if you connect and bind to a DB in the codebehind?
Mar 19 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
3
by: Ray | last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new data into table via an input form. The form has one hyperlink field to contain a file path. In Access 2003, it appears...
4
by: Andreas Meffert | last post by:
Hello, How can I change the Type of a field in a table from Memo to hyperlink? I import a table from Oracle to Access 2003. After that, the field type of some hyperlink-fields is "Memo". How...
5
by: Gamesetal | last post by:
Have '97 and am trying to create a query on the underlying Hyperlink field - ie if xxx then else ... Can't find a way to do this and would very much appreciate some kind help - thanks - John
4
by: Greg Strong | last post by:
Hello All, Ok I've read it is not necessarily a good ideal to create a hyperlink field in a database, but I've tried. I've also read that a hyperlink field is a memo field with attributes of...
3
by: The Woo | last post by:
Can one programatically create a file folder which has the same name as a key field, using a command button? Or, Can there be a a command button which opens up a directory tree to a specified...
1
by: daniellee2006 | last post by:
I am creating a basic website to store people profiles and within this website i have a page that creates a table dependent on the number of records in mysql written in PHP within these tables...
13
ADezii
by: ADezii | last post by:
Recently, there have been several questions and much confusion concerning the Topic of Hyperlinks. Specifically, Users wanted to know how to retrieve a File Name from a FileDialog Box, copy the Name...
5
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
1
SBCUser666
by: SBCUser666 | last post by:
Form field (Text66) defined as Hyperlink. Access 2003 table field defined as Hyperlink. Using VBA I build the hyperlink and poke it into the form field. The field displays like it is a hyperlink...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.