Member Avatar

how do i display the data for 1st page onwards? the allowpaging is set to true this is the pageindexchanging code Protected Sub solist_PageIndexChanging(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles solist.PageIndexChanging solist.PageIndex = e.NewPageIndex solist.DataBind() End Sub this is the data code Protected Sub solist_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles solist.RowCommand If e.CommandName = "SendEmail" Then Dim sendMail As New EmailModule Dim SO_No As String = e.CommandArgument.ToString() Dim dtTemp As New Data.DataTable Dim daTemp As New Data.SqlClient.SqlDataAdapter Dim cmd As New Data.SqlClient.SqlCommand cmd.Connection = New Data.SqlClient.SqlConnection(solist_SqlDataSource.ConnectionString) cmd.CommandText = "SELECT DISTINCT Master_Customer_PIC.CustPIC_Email FROM SO_Main, Master_Customer,Master_Customer_PIC …

Member Avatar
0
25
Member Avatar

How to get the imgbtnView image button in gridview to display the row of data? i try to use modelpopupextender but the targetid is invalid because the image button is in the gridview. when click on imgbtnView, solistPanel will be display now i cant display the solistPanel. please help <table cellpadding="5" cellspacing="5"> <tr> <td> <asp:GridView ID="outstandingList" runat="server" CellPadding="2" AutoGenerateColumns="False" DataKeyNames="Cust_No" DataSourceID="outstandingList_SqlDataSource" AllowPaging="True" EmptyDataText="No Outstanding Found" PageSize="20"> <Columns> <asp:BoundField DataField="Cust_No" HeaderText="Customer No" SortExpression="Cust_No" /> <asp:BoundField DataField="Cust_Name" HeaderText="Customer Name" SortExpression="Cust_Name" /> <asp:BoundField DataField="Cust_CreditLimit" HeaderText="Credit Limit" SortExpression="Cust_CreditLimit" /> <asp:BoundField DataField="Total Cost" HeaderText="Total Cost" SortExpression="Total Cost" /> <asp:BoundField DataField="Outstanding" HeaderText="Outstanding" SortExpression="Ouststanding" /> <asp:TemplateField> <ItemTemplate> …

Member Avatar
0
12
Member Avatar

how do i convert this code to VB? i am new in VB.Pls help. ABC (int xyz) { If xyz==0 { return(0) } else { return (xyz + ABC(xyz-1)); } }

Member Avatar
0
18
Member Avatar

i have two forms on 1 page. but the 2nd form keep going to 1st form action.. 2nd form suppose to go to approve.php..how do i solve this? when i click Approve it suppose to go to approve.php and execute the query there..but now when i click it give errors: Notice: Undefined index: odate in /home/lh026/public_html/COMP1161/astockoutlet.php on line 7 Notice: Undefined index: outlet in /home/lh026/public_html/COMP1161/astockoutlet.php on line 8 here is astockoutlet.php <?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->_authenticate(); $date = date("Y-m-d",time() + (8 * 3600)); $orderdate=$_POST['odate']; $outlet = $_POST['outlet']; $con=mysql_connect("studb.cms.gre.ac.uk","lh026","fizztm7F"); mysql_select_db("mdb_lh026", $con); $id=$_SESSION['admin_login']; $result2 = mysql_query("SELECT orderdb.odate,orderdb.itemcode,orderdb.quantity,orderdb.saiz,orderdb.remark, pstaff.outlet FROM …

Member Avatar
0
29
Member Avatar

I want to display pdf file in browser. odo1.php has the file to select the date. read.php will read the date from odo1.php. i have this files 2013-03-26_SAP.pdf, 2013-03-05_SAP and more to come. the name of this file is combination of date and outlet. when i change the `readfile($filename);` to 2013-03-05_SAP.pdf it work well. pls help. file:odo1.php <form id="contact-form" action="read.php" onsubmit="return validate()" method="post" enctype="multipart/form-data"> <fieldset> <h4> Order Date: <input type="date" name="orderdate"> </h4> </fieldset> <p></p> <input type="submit" name="submit" value="View Delivery Order" /> </form> read.php <?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->_authenticate(); $con=mysql_connect("#","#","#"); mysql_select_db("mdb_lh026", $con); $id=$_SESSION['admin_login']; $outlet=("SELECT outlet FROM pstaff WHERE …

Member Avatar
0
43
Member Avatar

How to solve the undefined index error? i have tried to make hidden field but not working also.. <?php if($nume==0) { echo "You currently have no item to show"; } else if(isset($_GET['msg'])) { $msg = $_GET['msg']; if($msg!='') { echo '<table border="1"> <tr> <td><font color="red">'.$msg.'</font></td> </tr> </table>'; } } ?></font></strong></p> <table width="680px" cellspacing="0" cellpadding="5"> <tr bgcolor="#ddd"> <th width="220" align="left">Date </th> <th width="200" align="left">Outlet </th> <th width="130" align="left">Status</th> <th width="70"> </th> </tr> <?php $start=(isset($_GET['start'])) ? (int)$_GET['start']:0; if(strlen($start) > 0 and !is_numeric($start)) { echo "Data Error"; exit; } $eu = ($start - 0); $limit = 5; $this1 = $eu + $limit; $back = …

Member Avatar
0
99
Member Avatar

I want to have this table and user will be able t delete row of data if they wish to with the checkbox. But the errors i don't know how to solve: *Notice: Undefined index: itemcode in /home/lh026/public_html/pro1/ostock.php on line 153* *Notice: Undefined index: saiz in /home/lh026/public_html/pro1/ostock.php on line 154* *Notice: Undefined index: quantity in /home/lh026/public_html/pro1/ostock.php on line 155* *1 Records deleted Successfully.* The data is not deleted in database but message show *1 Records deleted Successfully.*..Please help. <form name="form1" method="POST" action=""> <div id="content2" class="float_r"> <h1> </h1> <h4><a href="addstock.php"><img src= "img/add.png" /><strong> Add Items</strong></a></h4> <p><strong><font color="red"> <?php if($nume==0) { echo "You …

Member Avatar
0
60
Member Avatar

I am building a web for ordering stock for a small company. I wanted to add data into a table for user to view before confirm the order. Tried to use excel but can only display data and not add data on the website. I'm currently using Dreamweaver to develop this website. How to add a data then user click next to go next data and at the same time the first data will be shown in a table on the same page? This process will be repeated until user decided to stop. Any help will be highly appreciate.

Member Avatar
0
12
Member Avatar

How to show image for the drop down list? have tried a few alternative but dont work. Thanks <tr> <td class="label"><label for="kelas">Kelas:</label></td> <td class="field"> <select id="kelas" name="kelas" > <option value="Pilih kelas" selected="selected"></option> <option value="1 Tekal" >1 Tekal</option> <option value="1 Tekad" >1 Tekad</option> <option value="1 Tekun" >1 Tekun</option> <option value="1 Tabah" >1 Tabah</option> <option value="2 Tekal" >2 Tekal</option> <option value="2 Tekad" >2 Tekad</option> <option value="2 Tekun" >2 Tekun</option> <option value="2 Tabah" >2 Tabah</option> <option value="3 Tekal" >3 Tekal</option> <option value="3 Tekad" >3 Tekad</option> <option value="3 Tekun" >3 Tekun</option> <option value="3 Tabah" >3 Tabah</option> <option value="4 Tekal" >4 Tekal</option> <option value="4 Tekad" …

Member Avatar
0
10
Member Avatar

![photo](/attachments/large/4/photo.PNG "photo") how can i build a calendar like this? Year View and can choose a day to view the event? i just need a simplest version. any help will be appreciate. thanks in advance.

Member Avatar
0
2
Member Avatar

this is the function <SCRIPT TYPE="Text/JavaScript"> <!-- Beginning of JavaScript - function changecolor(code) { document.bgColor=code } // - End of JavaScript - --> </SCRIPT> this is the code <a href="" onmouseover="document.bgColor='turquoise'">C</a> <a href="" onmouseover="document.bgColor='pink'">h</a> <a href="" onmouseover="document.bgColor='blue'">o</a> <a href="" onmouseover="document.bgColor='red'">o</a> <a href="" onmouseover="document.bgColor='yellow'">s</a> <a href="" onmouseover="document.bgColor='green'">e</a> <a href="" onmouseover="document.bgColor='white'">your</a> <a href="" onmouseover="document.bgColor='greem'">o</a> <a href="" onmouseover="document.bgColor='seagreen'">w</a> <a href="" onmouseover="document.bgColor='magenta'">n</a> <a href="" onmouseover="document.bgColor='fusia'">b</a> <a href="" onmouseover="document.bgColor='purple'">a</a> <a href="" onmouseover="document.bgColor='navy'">c</a> <a href="" onmouseover="document.bgColor='royalblue'">k</a> <a href="" onmouseover="document.bgColor='Skyblue'">g</a> <a href="" onmouseover="document.bgColor='brown'">r</a> <a href="" onmouseover="document.bgColor='almond'">o</a> <a href="" onmouseover="document.bgColor='coral'">u</a> <a href="" onmouseover="document.bgColor='olivedrab'">n</a> <a href="" onmouseover="document.bgColor='teal'">d</a> <a href="" onmouseover="document.bgColor='black'">color!</a> i want to change background color of the page. …

Member Avatar
0
4
Member Avatar

this is the html <cat> <ul> <li><span><a href="#">Sekolah</a></span> <ul> <li><a href="perutusan.html">Perutusan Guru Besar</a></li> <li><a href="sejarah.html">Sejarah</a></li> <li><a href="etos.html">Etos</a></li> <li><a href="#">Iklim Sekolah</a> <ul> <li><a href="falsafah.html">Falsafah Misi Visi</a></li> <li><a href="logo&bendera.html">Logo & Bendera</a></li> <li><a href="piagam.html">Piagam</a></li> <li><a href="lagu.html">Lagu</a></li> </ul> </li> <li><a href="peraturan.html">Peraturan</a></li> <li><a href="pelanevakuasi.html">Pelan Evakuasi</a></li> <li><a href="pelansekolah.html">Pelan Sekolah</a></li> </ul> </li> <li><span><a href="#">Pengurusan</a></span></li> <li><span><a href="#">PIBG</a></span></li> <li><span><a href="#">BKGS</a></span></li> <li><span><a href="#">Pengumuman</a></span></li> <li><span><a href="#">Murid</a></span></li> <li><span><a href="#">Pencapaian</a></span></li> <li><span><a href="#">Kurikulum</a></span></li> <li><span><a href="#">Ko-kurikulum</a></span></li> <li><span><a href="#">e-SEKOLAH</a></span></li> <li><span><a href="#">Rakan Sekolah</a></span></li> <li class="last"><span><a href="#">Calendar</a></span></li> </ul> </cat> this is the css cat { padding-bottom:37px; } cat { margin: 100px auto; text-align: center; } cat ul ul { display: none; } cat ul li:hover > ul { …

Member Avatar
0
4
Member Avatar

i have this problem for checking for duplicate username in database. this error appear whether the username is duplicate and does not duplicate. Please help. Warning: mysql_num_rows() expects parameter 1 to be resource, boolean in <?php include_once 'db/db.php'; include_once 'admin-class.php'; $admin = new itg_admin(); if(isset($_POST['Submit'])) { $con = mysql_connect("localhost","username","password","tablename"); if (!$con) { die('Could not connect: ' . mysql_error()); } //---Encrypt ---// $confirmcode=md5(uniqid(rand())); $password=md5($_POST['password']); //---Insert value to table---// mysql_select_db( 'tablename' ); $getduplicates = mysql_query("SELECT * FROM users WHERE username =$_POST[username]"); $duplicates = mysql_num_rows($getduplicates); if($duplicates){ echo "Username has been used.Please choose another username"; ?> <script type="text/javascript"> alert("Username has been used.Please choose another …

Member Avatar
0
5

The End.