473,395 Members | 1,762 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,395 software developers and data experts.

weblink

hi friends,

I am mailing a website link through my websites using vb and asp.net code.
everything is working but the problem is there whenever the website link is to longer then its break and some of the part of link goes down on the next line.
problem is that in this case the server explorer link only first line not for both line. there is continuation on link.
Code:
Message = Message & "To view Driver Information Pleace click link below " & vbCrLf
Message = Message & "http://videosearch.rediff.com/video.php?query=& Replace(Trim(Session("query") & ""), " ", "%20") & vbCrLf

Actual link is : http://videosearch.rediff.com/video_...&query=Milenge Milenge&val=http%3A%2F%2Fyoutube.com%2F%3Fv%3DRWvE-1h0vZU


I need how to make a link on both lines continued or that if link is make longer then do not break it in between, make a single line link.

can any one knows how to do then pls help me.

Thanks
Mar 31 '10 #1

✓ answered by CroCrew

Hello istiyaque,

Try formatting it like this:

Expand|Select|Wrap|Line Numbers
  1. Message &= "<a href='http://bytes.com/topic/visual-basic-net/answers/884623-weblink'>Bytes Website</a>" & vbCrLf
  2.  
or like this:
Expand|Select|Wrap|Line Numbers
  1. Message &= "<a href='http://bytes.com/topic/visual-basic-net/answers/884623-weblink'>http://bytes.com/topic/visual-basic-net/answers/884623-weblink</a>" & vbCrLf
  2.  
Hope this helps,
CroCrew~

3 1673
CroCrew
564 Expert 512MB
Hello istiyaque,

Try formatting it like this:

Expand|Select|Wrap|Line Numbers
  1. Message &= "<a href='http://bytes.com/topic/visual-basic-net/answers/884623-weblink'>Bytes Website</a>" & vbCrLf
  2.  
or like this:
Expand|Select|Wrap|Line Numbers
  1. Message &= "<a href='http://bytes.com/topic/visual-basic-net/answers/884623-weblink'>http://bytes.com/topic/visual-basic-net/answers/884623-weblink</a>" & vbCrLf
  2.  
Hope this helps,
CroCrew~
Apr 5 '10 #2
Thnaks CroCrew,

of your reply, its working fine. sorry for delaying in reply.
Now I'm facing one more problem, Actually i want to put value in datagrid through vb.net code and that is a asp page.
i want to first check the condition.
ex ; If dr.Item(111) = " " Then
datagrid coloumn value = "Incomplete"
Else
datagrid coloumn value = "complete"
End If
' I dont know how to display value 'Complete' or 'Incomplete' in datagrid for particular coloumn
others coloumns are filling using sql query and retriving data from database.
its working fine.
can you pls help me out. for writing that if condition code.
if u understood pls tell me. i'll try to explain you.
because my english is not good.

thanks
istiyaque
Apr 12 '10 #3
Hi friend,

add this line to ur Datagrid Source.....
then the datagrid allow the dynamic Coloumn and Dynamic value...
<asp:BoundColumn DataField="Status" HeaderText="Status" ataFormatString="{0:c}">

after this
in Ur Coding....

Dim myconnection As SqlConnection
Dim myda As SqlDataAdapter
Dim ds As DataSet Private

Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
myconnection=NewSqlConnection(
"Server=localhost;uid=sa;password=;database=northw ind;")

myda = New SqlDataAdapter("Select * from [TableName]", myconnection)
ds = New DataSet()
myda.Fill(ds, "AllTables")
Dim dc As DataColumn
dc = New DataColumn("Status", Type.GetType("System.String"))
dc.Expression = "Expression"
ds.Tables(0).Columns.Add(dc)
DataGrid1.DataSource = ds
DataGrid1.DataBind()

End Sub




If U have Any other Doubt then Verify the Following Link Also
htt://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(VS.71).aspx



Thanks,
Pandian
Apr 12 '10 #4

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

Similar topics

6
by: adams114 | last post by:
Ok, I'm trying to count the number of characters in a string. Once the count of character's reaches x I want to replace the rest of the string with an web site link. So here's what I've come up...
3
by: aaj | last post by:
SQL SERVER 2000 Hi all This is my first attempt at writing a stored procedure. I have managed to get it working but its unlikely to be the best way of handling the problem. While writing it I...
4
by: Ciar?n | last post by:
Hi all, I've go a little mailto: link on a page that when clicked opens an email form with the email address in the To field - all very simple. Problem is that in Netscape, a new blank window is...
0
by: Oriane | last post by:
Hi everybody, Has someone any knowledge about the WebLink product from Soluton Software (used to be X-Works) ? I can't find anything with Google. It works with CGI. Do you think I could reuse...
4
by: Sandy | last post by:
Hello - I have an application that pulls website addresses (amongst other things) from a SQL Server database via a search page. How do I display the website as a hyperlink that can be clicked...
2
by: adMjb | last post by:
Hi Any help would be fantastic I have a simple problem but I cant work it out... DOHH...., this is my XML: <?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/css"...
2
by: kabirhussein | last post by:
Hi am trying to do a Access form where users can paste a web link and then when needed they can go back to the specific file and click on the saved web link to go straight to IE I know there is...
0
by: RiskyHunter | last post by:
Hi; am using httpUnit in order 2 extract the source code of the websit but the problem is that the httpUnit respond is very slow, this is my code public String extractNewFile() throws...
1
by: Vikas | last post by:
Hi All, I have a password protected website. I want to put the link of my website in third party website and want the users to access my website without providing the username and password. ...
1
by: ykhamitkar | last post by:
Hi there, Could you please advice whats the code to check if the file exists on a website (HTTP) Thanks Yogesh
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.