|
I am adding a "links" page to a website, and thought that, instead of manually entering the links into HTML, I could use an ASP.NET Datalist bound to a database table; this way, the website owner could change the displayed links and descriptions in an admin page.
My question is: is there a way to make the database field (varchar) containing the URL display the URL as an active link when it is pulled up on the webpage? There may be some simple way to do this that I am too stupid to see...
Thank you for any advice.
|
|
|
|
|
Nostromo77 wrote: My question is: is there a way to make the database field (varchar) containing the URL display the URL as an active link when it is pulled up on the webpage?
Once you get the URL to the web page, I think that will be rendered to hyperlink automatically by browser if it is in correct format. So you can directly bind that to the datalist
|
|
|
|
|
Excellent, thank you - I will try this.
|
|
|
|
|
***** Current language, ASP.NET 1.1 with C#
How to create Multi-column Drop Down List ?
Have you any idea?
From,
Eva
|
|
|
|
|
You have to build your own, using DHTML.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks your reply.........
but i dun know how to do it..........
Can u help me?
From:Eva
|
|
|
|
|
Hi,
I have two web pages in one web page i have 5 check boxes. For example if the user checks the Checkbox1, checkbox2 and clicks on button.
On the button click I am storing the selected checkboxes value in database lke the following:
Year Options
xxx 1
xxx 2
in the above format( user selectes checbox1, check box 2).
And in the Second Web page I am showing the 5 checkboxes but in this web page I need to check the first and second checkboxes on the page load because user selectes those two check boxes in the first web page.
my select query returning the results like this:
Options
1
2
based on options I have to check those corresponding check boxes in the second web page.
How to achive this.
Thanks in advance
|
|
|
|
|
Make an array of references to the checkboxes:
Checkbox[] boxes = new Checkbox[] { Checkbox1, Checkbox2, Checkbox3, Checkbox4, Checkbox5 };
Now you can easily access the checkboxes using an index.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
Hello friends, can any body tell me what is serialization and what is the use of that..
alex.
|
|
|
|
|
Serialization is used to return results from Google, try it.
only two letters away from being an asset
|
|
|
|
|
On Putting a object instance into session or something like that...
|
|
|
|
|
Serialization[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
So after 7 hours you thought you would post the google search for him.
only two letters away from being an asset
|
|
|
|
|
hey Mark, I got from bed now only. now here it is early morning.
I just logged in to cp while i am checking the mail.
So replied to him.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Try reading the other replies first. If you have something of value to add, then reply.
only two letters away from being an asset
|
|
|
|
|
Mr. MVP needs to check his attitude at the door.
only four letters away from being an asshol*
|
|
|
|
|
I am doing a prototype webpage where i want to stream a video file from a sqlserver database. I already have a table with video files. I want to convert the file into a .flv file and stream it to the web page. I would really like to do it without creating the file in a file system, I mean i would like to do it on demand,i.e convert the file to .flv type and stream it when requested. I have never done any video streaming of any kind. I would appreciate any input and references,
thanks and best regards
Mahesh
|
|
|
|
|
|
Hey guys!
I've been Googling for about an hour now, and I can't seem to find any anwsers, hopefully someone here is able to help me.
What I want to do is set text on a gridview as a link to a local harddrive. I've provided a link to a picture of what I've set up, and under the "Files" column is where I'd like the link to be, so users can just right click and "Save Target As..." to get the file.
http://image.bayimg.com/ca/dl/ga/ab/g.jpg
Thanks,
aqzman
|
|
|
|
|
You need to have the folder must be part of the website in IIS. If it is then a link to file should work.
I didn't get any requirements for the signature
|
|
|
|
|
Is this what you're talking about?
http://image.bayimg.com/ia/dl/ia/ab/g.jpg
Also, thanks for the reply!
|
|
|
|
|
Yeah, just set that as the navURL or whatever the property is of the ASP Hyperlink control.
I didn't get any requirements for the signature
|
|
|
|
|
Hi, I've used a for-next loop to determine the item(s) of a listbox that the user selects and to insert the text of the selected item(s) into a database table like the following.
For i = 0 To ListBox1.Items.Count - 1<br />
If ListBox1.Items(i).Selected Then<br />
cmdInsert.Parameters.Add("@docDate", OdbcType.Date)<br />
cmdInsert.Parameters("@docDate").Value = DateTime.Now<br />
<br />
cmdInsert.Parameters.Add("@docTitle", OdbcType.VarChar, 30)<br />
cmdInsert.Parameters("@docTitle").Value = txtFileTitle.Text<br />
<br />
cmdInsert.Parameters.Add("@docType", OdbcType.VarChar, 30)<br />
cmdInsert.Parameters("@docType").Value = StrFileType<br />
<br />
cmdInsert.Parameters.Add("@docContent", OdbcType.Binary, 800)<br />
cmdInsert.Parameters("@docContent").Value = arrFile<br />
<br />
cmdInsert.Parameters.Add("@Professions", OdbcType.VarChar, 30)<br />
cmdInsert.Parameters("@Professions").Value = ListBox1.Items(i).Text<br />
<br />
End If<br />
Next<br />
The problem I'm getting is that if two items were selected, only the 2nd item is inserted. Please take a look to see what I did wrong, thank you in advance for your help.
|
|
|
|
|
Well, you need to put
conn.open<br />
cmdInsert.executenonquery<br />
conn.close
inside your loop, otherwise you are only inserting one record.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
If anyone can walk me through or at least give an example of how i can tackle this problem i will be very grateful.
Basically i am trying to create a log-in for a website in .Net 2.0 using SQL2005. Using a DataReader (using controls in VS2005) i have the datareader check for the occurance of a matching record based on username and password.
However i need to make sure only one matching record is found and then get all this users data adplace it into a cookie or session, and update the page accordingly.
How do i check only one matching record is found?
Please dont direct me to some complicated lengthy Microsoft solution page as i never find these to be helpful. I could really do with someone explaining this to me as best as possible.
Thanks in advance.
mike
|
|
|
|