weblink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • istiyaque
    New Member
    • Feb 2008
    • 9

    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.red iff.com/video.php?query =& Replace(Trim(Se ssion("query") & ""), " ", "%20") & vbCrLf

    Actual link is : http://videosearch.rediff.com/video_...&query=Milenge Milenge&val=htt p%3A%2F%2Fyoutu be.com%2F%3Fv%3 DRWvE-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
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    #2
    Hello istiyaque,

    Try formatting it like this:

    Code:
    Message &= "<a href='http://bytes.com/topic/visual-basic-net/answers/884623-weblink'>Bytes Website</a>" & vbCrLf
    or like this:
    Code:
    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
    Hope this helps,
    CroCrew~

    Comment

    • istiyaque
      New Member
      • Feb 2008
      • 9

      #3
      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

      Comment

      • PandiarajanChellappan
        New Member
        • Apr 2010
        • 7

        #4
        Hi friend,

        add this line to ur Datagrid Source.....
        then the datagrid allow the dynamic Coloumn and Dynamic value...
        <asp:BoundColum n DataField="Stat us" HeaderText="Sta tus" 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.EventArg s) Handles MyBase.Load
        myconnection=Ne wSqlConnection(
        "Server=localho st;uid=sa;passw ord=;database=n orthwind;")

        myda = New SqlDataAdapter( "Select * from [TableName]", myconnection)
        ds = New DataSet()
        myda.Fill(ds, "AllTables" )
        Dim dc As DataColumn
        dc = New DataColumn("Sta tus", Type.GetType("S ystem.String"))
        dc.Expression = "Expression "
        ds.Tables(0).Co lumns.Add(dc)
        DataGrid1.DataS ource = ds
        DataGrid1.DataB ind()

        End Sub




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



        Thanks,
        Pandian
        Last edited by PandiarajanChellappan; Apr 12 '10, 07:12 AM. Reason: I didnt place my Name So only....

        Comment

        Working...