52,566 Archived Topics
Remove Filter ![]() | |
I have looked around this site but have not found anything to help me. I have a jsp page which takes user input, the page is then posted to a servlet using ajax, the servlet then sets a bean value. My problem is that when i go back to the … | |
Hello, I have problem with this:\ $conn = db_connect(); $query = "select * from albumy, ciste_media where EAN_kod='$EAN_kod'"; Is this syntax good, when I used two tables? Because when I used one table its go correctly and when I used two tables, its doing problems Web Development php | |
I am trying to implement an example of the built in login and createuser wizard. the ony problem is, (and this may be really retarded of me) is that when i publish it out to a web server it doesn't work. Of course, it works perfect locally. Does the aspnetdb.mdf … Web Development asp asp.net sql web-server | |
Hello there! I don't know if this is the right place to post this question. If not, I apologize. I'm developing a web application that at some point of its processes has to update a table in a remote database. Now, this remote database is located in my client's office … Web Development asp | |
hello, I have a problem : What is it? Warning: Unable to jump to row 0 on MySQL result index 2 in c:\apache\htdocs\cd_shop\funkcie_s_databazou.php on line 899 | |
Hi, this is driving me crazy so hope you can help. It seems quite simple. Basically I have a simple site consisting of an index.php page that loads in the other pages using php switch case. This all works great. The trouble I'm having is cleaning the url with mod_rewrite … Web Development php | |
Hi every one, Why I am getting wrong time when I am using date('H:i:s').I am working on localhost. Please help how to get correct time. Thanks and Regards, Aravind Kishore.P Web Development php | |
[CODE]<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function view(ss) { if(ss.options[ss.selectedIndex].value!="none") { window.location="http://jesus.freehyperspace2.com/desc.php"; } } --> </script> </head> <body> <form method="get" target="frameright" action="http://jesus.freehyperspace2.com/desc.php"> <?php $hostname="localhost"; $username="jesus_jesus"; $password="jesus"; $dbid="jesus_jesus"; $link=mysql_connect($hostname,$username,$password); mysql_select_db($dbid) or die("unable to connect"); $result=mysql_query("select * from career"); if($result) { print "<select name='IndustryType' language='javascript' onChange='view(this);' size='15' tyle='width:250px'>"; print "<option value='none' selected>Choose Industry … Web Development career javascript php | |
how to show error message whenever the person enters wrong or empty text fields in th login form itself rather than linking to other error page? error message should be displayed just above the login text fields... please pass me the codes so that i can understand. thank you Web Development php | |
the user posts from time input box.. now i need to check is that in time format or not ... how??? if he doesnot input time ... then i have to inset null time in db with time datatype .. how??? pliz help .. thanks in advance Web Development php | |
Does any body know how to configure a wamp server or any related web help available for it? Web Development php web-server | |
what will be the type for salary field? should i use decimal or integer? please let me know which is the appropriate one. Web Development php | |
why we use these files in php? please tell me why they have been used and how they work? Web Development php | |
hi all... this is my Table CREATE TABLE `client` ( `client_id` tinyint(4) unsigned NOT NULL auto_increment, `client_name` varchar(255) NOT NULL, `client_email` varchar(255) NOT NULL, `client_phone` int(20) unsigned NOT NULL, `client_mobile` int(20) unsigned NOT NULL, `client_country` varchar(255) NOT NULL, `c_billing_address` text NOT NULL, `modified_date` int(11) NOT NULL, `edited_date` int(11) NOT NULL, … Web Development php | |
Anyone having experience in MySQL and REGEXP ? I have 1 input field, "what" Now, the value from the "what" field can contain several substrings and I like each of them to be searched. Can this be done by using REGEXP or do I need to split the "what" input … Web Development asp | |
On this code `$appendPath` was created for `myFieldName['filename']` How would I add `$appendimagePath` to this code for `myFieldName['visual']` ? $result = mysql_query($sql); //print $sql; if($result){ $line = mysql_fetch_assoc($result); $myFile = $line[$myFieldName['filename']]; if(file_exists($myFile)){ pushfile($myFile, $action); } else { echo ("&retval=error 1 : file doesn't exist"." ".$_REQUEST['theID']); } } else { echo … Web Development php | |
Im wondering how i change the colour of my invisionfree forum. If anyone here knows how and has done it before could you please let me know how. Thanks in advance! ;) Web Development | |
I have searched for a tab menu script for a long time but none of them was flexible enough,then i created one for me. The algorithm is nice so the script is not too long although being flexible. your tab menu is in an html table row as follows : … Web Development algorithm javascript | |
Menu is about three things : 1) Position 2) Show-hide 3) Content the Positining function is this : function elementPosition(obj) { var curleft = 0, curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft; curtop = obj.offsetTop; while (obj = obj.offsetParent) { curleft += obj.offsetLeft; curtop += obj.offsetTop; } } … Web Development javascript | |
Greetings all, I have multiple list options linked, like Country, city, town, when e.g france is selected it gives all the cities in france in the following option list. and when say paris is selected it gives you all the towns in paris and third category. I have found an … Web Development javascript linked-list php | |
When you assign a source to an image via javascript, it will take sometime to load the image. To get around this problem you can preload the images creating virtual images via javascript as follows : if(document.images) { // create a virtual image var img1 = new Image(); // preload … Web Development javascript | |
private DataTable CategoryNames(DataTable myTable) { DataTable dt = new DataTable(); dt.Columns.Add("ColumnName"); foreach (DataRow row in myTable.Rows) { string s = row["ColumnName"].ToString(); DataRow[] drx = dt.Select("ColumnName= '" + s + "'"); if (drx.Length == 0) { dt.Rows.Add(new object[] { s }); } } return dt; } Web Development asp.net | |
Create Ajax Enabled WebSite. Set EnablePageMethods property of the ScriptManager to true : <asp: ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" /> In the CodeBehind of the page, register System.Web.Services namespace. Create a Method as follows : [WebMethod] public static void DoSome() { } the method must be static and tagged as WebMethod. … Web Development asp.net c# javascript | |
protected void gridview1_RowDataBound(object sender, GridViewRowEventArgs e) { if(e.Row.RowType == DataControlRowType.DataRow) { LinkButton db = (LinkButton)e.Row.Cells[0].Controls[0]; db.OnClientClick = "return confirm('Are you certain you want to delete the item?');" } } Web Development asp.net | |
I created 5 .aspx pages with Response.Write(DateTime.Now.ToString()); in the Page_Load event handler, and with <%@ OutputCache Duration="300" Location="Any" VaryByParam="none" %> added after the @ page directive with different versions of location. When i refreshed the page, client and downstream locationed ones refreshed the time as well, this proves that output … | |
I havent tried the EnableSortingAndPagingCallbacks property of the GridView before. Appearantly it doesnt do anything different than the updatepanel. It only reduces the mark up used to create the updatepanel, in other words, it encapsulates the functionality. Web Development asp.net | |
Markup : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Server Info</title> </head> <body> <form id="form1" runat="server"> <div> <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Caption="Environment Variables"> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#EFF3FB" /> <EditRowStyle BackColor="#2461BF" /> <SelectedRowStyle … Web Development asp.net web-server | |
Modify the web.config as follows : <configuration> <system.web> <authentication mode="Forms" /> </system.web> <location path="myRestrictedPage.aspx"> <system.web> <authorization> <deny users="?"/> <allow users="*" /> </authorization> </system.web> </location> </configuration> Web Development asp.net | |
Create a Web form : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkerProcessInfo.aspx.cs" Inherits="WorkerProcessInfo" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>WorkerProcessInfo</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager runat="server" ID="scrpt"></asp:ScriptManager> <asp:UpdateProgress runat="server" ID="uptPrg" AssociatedUpdatePanelID="upt"> <ProgressTemplate> Loading... </ProgressTemplate> </asp:UpdateProgress> <asp:UpdatePanel runat="server" ID="upt"> <ContentTemplate> <asp:GridView AutoGenerateColumns="false" ID="GridView1" … Web Development asp asp.net web-server | |
In c# there is a built-in split method with which you can create a substring array seperated by one character from a string as follows : // string seperated by colons ';' string info = "mark;smith;123 csharp drive;toronto;canada"; string[] arInfo = new string[4]; // define which character is seperating fields … Web Development asp.net | |
When working with reference types, sometimes you want to add some items to one list which has been assigned another list by reference. When you add new items to your new list, the previous list also gets added the new items since they refer to the same object collection in … Web Development asp.net | |
in the Page_Load event of the content pages remove the attached eventHandler if there is any, register new eventHandler to the specified event of the controls. in the content page : protected void Page_Load(object sender, EventArgs e) { WebControlType myControl = (WebControlType) Master.FindControl("WebControlID"); // Removes the Handler myControl.SpecifiedEvent -= theDefaultEventHandler; … Web Development asp.net | |
I have an updatepanel control in the middle of a page, and i have a link at the top of the same page. I refresh the updatepanel by clicking the link ;however, i want the updatepanel to scroll intoview as well. My javascript scrollintoview method didnt work because updatepanel tries … Web Development asp.net javascript | |
When you use datalist setting its repeatColumn property to a constant number, its height depends on its datasource. Sometimes we want to display 10 item in one column and start a new column next to it. For these occasions i created a function as follows : // in my case … Web Development asp.net | |
For small applications it is proper to use AccessDataSource object in order to access the database directly from asp.net page. When i first used it for inserting data with formview, it generated the following error : "You tried to assign the Null value to a variable that is not a … Web Development asp.net ide visual-studio | |
Im using VS 2005 for web application.Im using message boxes but they are not working.i dont know what's the problem with my code. [CODE] if (drff.Read()) { Button_Assign.Attributes.Add("onclick", "javscript:alert('Data saved successfully.')"); } /*else { //Button_Assign.Attributes.Add("onclick", "javscript:alert('Data not saved.')"); } [/CODE] my data is saved successfully but im not getting the … Web Development asp.net | |
sql cache dependency allows for cached data to be evicted and refreshed when it becomes stale. Basically ASP.NET checks for the changes in the datatable in sql server, if it finds one, it refreshes the cached data. Polling based sql cache dependency is very easy to configure as follows : … Web Development asp.net caching sql visual-studio web-server | |
Today I came across to one thread asking for a help to scroll the page so that it displays error Panel. then i decided to create two generic methods in the utility class of my project as follows : if the button is a postback button : public static void … Web Development asp.net | |
Today i learned an amazing facility of asp.net 2.0 dropdownlist's. In the past( last year actually ) when i wanted to insert a static item having a text "please select something" i used to follow two ways : either insert an item to dropdownlist's datasource or directly insert an item … Web Development asp.net | |
Hello everyone, I was wondering if anyone could tell me how to connect and query sql databases in ASP.NET Using C# code I try to use this code, but there is some mistake in the code lead to an error message You must first withdraw from sqlDataadapter toolbar to connect … | |
How to create watermark image at runtime in c#? I dont want any unnecessary codes, i want easy, clear and short block of code if possible. Thanks in advance. | |
hi i am doing a proj in jsp and oracle 9i. i want to read data from oracle and show it in the text boxes in html/jsp. i know how to read the data from oracle, but i cannot put it into text boxes. can anyone tell me how to … ![]() | |
i search for a ready script for smooth scrolling but i couldnt find any. So i did it myself as follows, it works perfectly function elementPosition(obj) { var curleft = 0, curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft; curtop = obj.offsetTop; while (obj = obj.offsetParent) { curleft += … Web Development asp.net javascript | |
I have a form that is classic asp that basically collects some info and sends it to an email account. What I really to do is have an email reminder option added. The form is a monthly report and the idea is to have an option for the reminder. The … | |
hi, im using VS.net 2005 for developing a web application.im using stored procedure for inserting records into database.i want to insert time and task for a selcetd employee but its not working. kindly help me.her's my stored procedure: [CODE] create PROCEDURE [dbo].[AssignAndStore] -- Add the parameters for the stored procedure … Web Development asp.net | |
I have a database of over 900 products. What i am hoping to create is a website that pulls the Product information from a database using its Product ID. The products are displayed according to their sub category: [CODE]SELECT `Product_ID`, `Product_picurl`, `Product_Name`, `Product_Description`, `Product_price`, `Product_Category`, `Product_Pdf`, `Product_Cart`, `Product_Features`, `Product_subcat`, `Key` … Web Development php | |
I'm not sure it this is a post for PHP or the database forum, but since my question deals with php functions, i put it here. In the past when i would page results i do the following: 1) get the count of my full resultset 2) calculate limit and … Web Development php | |
I am a beginner in JSP, I am just wondering will it be possible to create a pie chart in jsp without installing new classes and stuff? If yes, how can I do it? Or else will it be possible if I retreieve the data from mysql and display it … | |
My code below don't show me any name and address (only show <d> ) : [CODE] <html> <body> <H1>Testing</H1> <table border="1"> <tr bgcolor="Blue"> <th>Name</th> <th>Address</th> </tr> <?php $db = array( array("Binladen","los anger"), array("Harry","NY"), array("Ghost","lust caution") ); /** * return string * params int $i * return 'white' even and 'yellow' … Web Development php | |
Hi all, I am new to PHP.. I want to paginate the result of a search query... can any one give me an example of the concern codes... u can post it on daniweb or u can send it on [email]jinojoseph07@gmail.com[/email] Please help me.. Jino.. Web Development php |
The End.