-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: CareerRenu
Message 10 in Discussion

hi

i have an VB Script function in HTML page(aspx)

    <script language="vbscript">
            Function send(Url,Title)
        MsgBox("Hi")
        'if(Title = "ScoreCard") Then
        '       Parent.document.all("colframeset").cols = "0, *"
        'else
                Parent.document.all("colframeset").cols = "150, *"
        'end if

        senda.href = "header.asp?Title=" & Title
        senda.target = "headerframe"
        senda.click
        senda.href = url
        senda.target = "mainframe"
        senda.click
        senda.focus
           End Function

      Sub window_onload
        if (table1.offsetLeft + table1.offsetWidth) > 155 then _
                Parent.document.all("colframeset").cols = (table1.offsetLeft + 
t           
  able1.offsetWidth) & ",*"
        Parent.document.all("colframeset").noresize = false
        'send "Monitor/MCP2.exe", "Production Tracking"
    End Sub
    </script>

Now i have creted the table ,calling the exec(sp) data to the table with the 
link when it executes VBScript  function should call and exec

aspx.cs code where i am trying to call

          private void Page_Load(object sender, System.EventArgs e)
                {
                        string strUserName="rsetty";
                                SqlDataAdapter da=new SqlDataAdapter("EXEC 
usp_Warwick_UserLinks 
'"+strUserName+"'",sqlconn);
                        DataSet ds=new DataSet();
                        da.Fill(ds,"tbl_Warwick_Queue");

                        for(int i=0;i<=ds.Tables[0].Rows.Count-1;i++)
                        {
                                HtmlTableRow  row = new HtmlTableRow();
                                HtmlTableCell  cell = new HtmlTableCell();
                                string 
strLink=ds.Tables[0].Rows[i]["QueueName"].ToString();
                                string strURL 
=ds.Tables[0].Rows[i]["CellInnerHTML"].ToString();
                                cell.InnerHtml ="<img 
src=images/bullet_circle.gif>"+"<a target=main 
href = "+strURL+" OnClick=send("+strURL+","+strLink+")>"+strLink+"</a>";
                                   cell.Height = "50";
                                    cell.Width="100";
                                    row.Cells.Add(cell);
                                    row.Height = "50";
                                    Table1.Rows.Add(row);

                        }

when i call the vbscript function in cel.innerhtml its not calling the 
function

please can any one help me out.

Regards
Rekha

_________________________________________________________________
Catch all the cricketing action right here. Live score, match reports, 
photos et al. http://content.msn.co.in/Sports/Cricket/Default.aspx



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to