17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for serkan sendur

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
0
264
Member Avatar for serkan sendur

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
0
58
Member Avatar for serkan sendur

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
0
49
Member Avatar for serkan sendur

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
0
69
Member Avatar for serkan sendur

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
0
67
Member Avatar for serkan sendur

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
0
94
Member Avatar for serkan sendur

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 : …

0
75
Member Avatar for serkan sendur

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
0
307
Member Avatar for serkan sendur

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
0
73
Member Avatar for serkan sendur

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.

Web Development asp.net c# image
Member Avatar for SheSaidImaPregy
0
589
Member Avatar for serkan sendur

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
0
259
Member Avatar for waterfall

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
Member Avatar for waterfall
0
102
Member Avatar for duttydea

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
Member Avatar for duttydea
0
106
Member Avatar for sagedavis

I know, this is a weird question, but... I am working right now on an inherited project, and finding this quite a bit. [code] $objSomething -> $object [/code] I have had it explained to me that this is similar to the dot in javascript's [code] element.style [/code] This concept in …

Web Development javascript php
Member Avatar for sagedavis
0
113
Member Avatar for vinithktp

Hi all, I doing a CMS project. I am using a rich text editor. Please guide me [B]how to upload images from rte to database[/B]. Thanking you.......

Web Development cms image java-jsp
0
66
Member Avatar for forzadraco

Helo... Thanks for read my thread... i have problem to make a web page like my.yahoo.com where a news click, a new pop-up window show and the web-page(background) become more darker and pop-up window willbe focuss... Anyone can help me...? Thanks, Ardy Satria H [email]forzadraco@gmail.com[/email]

Web Development php
Member Avatar for forzadraco
0
89
Member Avatar for naju

I have a string in my database as [B]in' out"[/B] now i need to show this in input textbox i did <input value='in' out"'> output only: in also <input value="in' out""> output only: in' out the real output should be in' out" Actually i need to do like this encode …

Web Development php
Member Avatar for naju
0
82
Member Avatar for lydia21

hi i have a form where the user will giva a key word ...based on the keyword i wabt the user to fetch all the rows in the table

Web Development php
Member Avatar for nav33n
0
68
Member Avatar for naju

i need to have null date from php and send to mysql how to make a null date so that i could insert it the database it should be in the format '00-00-0000';

Web Development php
Member Avatar for ryan_vietnow
0
89
Member Avatar for toadzky

I am trying to do a store page for my class. I have a perl script that generates simple HTML tables. The store pages uses ajax to load the tables into the form. The form has all the elements, but when I submit, there query string is empty. I tried …

Web Development javascript perl
Member Avatar for toadzky
0
80
Member Avatar for ebabes

I created a javascript function [B]FnNextQuestion()[/B] but I have a problem calling it in my C# class. Is there a way to call this function inside my aspx.cs class? I need help please...

Web Development asp.net javascript
Member Avatar for ebabes
0
106
Member Avatar for ericstenson

Hi, I was wondering if anyone has the solution to this. Let's say I have a dropdownlist. And if a particular value of that dropdownlist is selected, I display a textbox. So I set the dropdownlist to cause a postback event, and on the pageload (when postback), i check to …

Web Development asp.net
Member Avatar for ericstenson
0
100
Member Avatar for 3265002918

hey im really new with javascript. can someone tell me whats wrong with this? [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <title>calculate distance and slope between two points</title> <script language="javascript"> <!-- var x1=0; var y1=0; var x2=0; var y2=0; var xdif=0; var ydif=0; var …

Web Development javascript
Member Avatar for ~s.o.s~
0
100
Member Avatar for Scottmandoo

Alright this is my code, the error im getting is in red [CODE]<?php include("dbinfo.inc.php"); $tut_name = $_POST['tut_name']; $tut_link = $_POST['tut_link']; $tut_program = $_POST['tut_program']; $tut_category = $_POST['tut_category']; $tut_video = $_POST['tut_video']; $tut_download = $_POST['tut_download']; $tut_image = $_FILES['tut_image']['name']; function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) …

Web Development php
Member Avatar for Scottmandoo
0
84
Member Avatar for OmniX

I have a page that allows you to add images to the server. As of course you are able to add them to the server you should be able to delete them. Now the problem I have is that. I cannot delete the folder if there are contents in it. …

Web Development php
Member Avatar for OmniX
0
168
Member Avatar for majestic0110

hi hope you all ok. this block is in a for each statement. [CODE]TextBox tb = new TextBox(); tb.Text = rowData[key]; cell.Controls.Add(tb);[/CODE] I need these textboxes (which are created at runtime) to be required user entry fields. Bear in mind i know how to do this with asp.net, I am …

Web Development asp.net
Member Avatar for majestic0110
0
446
Member Avatar for lordx78

[code=php] echo "<td align=center style='width: 30px'><strong><a href='' . $link1 . '' style='color: red'>CID</a></strong></td>"; [/code] Is this part properly coded [code=php] <a href='' . $link1 . '' style='color: red'> [/code] I tried like [code=php] <a href="' . $link1 . '" style='color: red'> [/code] but not working. Pls advise.

Web Development php
Member Avatar for lordx78
0
112
Member Avatar for ajithraj

haii... pls help me to get the cursor position in javascript....from textArea thankzzzzzzz

Web Development javascript
Member Avatar for ajithraj
0
86
Member Avatar for cmhampton

Does anyone know how to create queryable collections in VB without using LINQ? I am working on creating a dynamic questionnaire system and need some help. Here's some background: The system needs to support parent/child questionnaires. I have the database model created, as well as a query that returns all …

Web Development asp.net vb.net
Member Avatar for SheSaidImaPregy
0
212
Member Avatar for Robtyketto

Greetings, I have 2 JSP files and a bean which are collectively used to delete a record from an access database. They run without errors, however the only value from the form that is required, that is passed as a parameter to the bean is Null (debugging showed value is …

Web Development apache java-jsp microsoft-access
0
89
Member Avatar for serkan sendur

how do i catch events of a datalist in a repeater? I need to use datalist's ItemDataBound event but i cant use it because it is inside a repeater control. Thanks in advance

Web Development asp.net
Member Avatar for serkan sendur
0
86
Member Avatar for justted

Hello everyone, For the navigation of my website I have decided to use a Drop Down Menu which I have inserted into the side menu template so it shows on every page. This is all fine except when you click on it the first time then its successfully loads the …

Web Development engineering javascript
Member Avatar for justted
0
52
Member Avatar for Ankita B

thispage.jsp displays user id and name in a table format with radiobutton attached to each row.... [CODE]while(enum.hasMoreElements()) { String upid = (String)enum.nextElement(); String upname = (String)enum.nextElement(); %> <tr> <td> <input type="radio" name="idradio" selected="false" value="<%= upid %>" /> </td> <td> <% out.println(upid);%> </td> <td> <%out.println(upname);%> </td> </tr> <%} %>[/CODE] nextpage.jsp needs …

Web Development java-jsp
Member Avatar for Ankita B
0
864
Member Avatar for SheSaidImaPregy

I am creating a site where normally I would store this kind of information in a database. It is information that will most likely never.. EVER be changed again unless it needs administrative modification. Just possibly deleted ^^ I was thinking about storing a link in a database that leads …

Web Development asp.net xml
Member Avatar for SheSaidImaPregy
-1
125
Member Avatar for foundsheep

My form was working fine in the past, and now it is not. I'm not sure why. I've been through the code several times and have yet to find anything. The form posts with the general error that is in the code. So, something is breaking, but I'm not sure …

Web Development career php
Member Avatar for foundsheep
0
119
Member Avatar for ebabes

I wish to create an application that displays a message in a label assume that the messages have been stored in a string of array. The message automatically changes every after 30 seconds. How can I do the change of the message every after seconds in ASP.Net using C# as …

Web Development asp.net
Member Avatar for ebabes
0
129
Member Avatar for ebabes

I have seen lately from this site a listing of all fields that can be inserted inside CSS. But I can't find it now. Can anybody give me the codes for all the fields in CSS?

Web Development asp.net html-css
Member Avatar for ebabes
0
146
Member Avatar for lordx78

[code=php] <?php // connect to database include("inc/connect.php"); // include auth and nav //include("inc/auth.php"); // begin content //include("inc/nav.php"); // close mysql connection //mysql_close(); // Check if the form has been submitted. if (isset($_POST['Submit'])) { $brandC = $_POST['brandC']; $typeC = $_POST['typeC']; $styleC = $_POST['styleC']; $frameC = $_POST['frameC']; $groupSetC = $_POST['groupSetC']; $errors = …

Web Development php
Member Avatar for lordx78
0
76
Member Avatar for yobehcor15

Are there any examples of Time and Attendance System, I would like to know how it works on the part where an employee logs in and the logs are being saved under his/her account when he/she views his/her logs. I am new in .NET programming using VB and I just …

Web Development asp.net
Member Avatar for SheSaidImaPregy
0
184
Member Avatar for lordx78

I'm looking for some PHP scripts that be able to search into the Database and retrieve all the records that matches the user input string in the search form. Please advise.

Web Development mysql php
Member Avatar for lordx78
0
273
Member Avatar for nikk

In my website, the pages where i allow the users to update their details(such as - change password and update contact details), i want to open them in new window, rather than the current one. Can you please tell me what should be the code for it? What i know …

Web Development java-jsp
Member Avatar for nikk
0
351
Member Avatar for kapil.goyal

i have a class in app_code folder which implements the Ihttphandler Interface.so when the execution enter in the Processrequest method i have to use the session variables created on login page.but there is no such Session Object present there. on login page i hav created session like this session("userid")=dr("user") i …

Web Development asp.net session user-interface
Member Avatar for Hausen
0
411
Member Avatar for sbv

Hello , i am new to AJAX. I don't know anything about AJAX. Can any one tell me What is AJAX. In which language we can use it.. and how.. , need of AJAX. Or any link to refer. Thanking You.

Web Development javascript
Member Avatar for sbv
0
133
Member Avatar for CelestialDog

Hi guys, I've been searching around trying to find a solution to this problem. Basically I wrote a simple php script to create an xml file of the information thats passed to it. Testing it locally works without a problem, but when I upload it to my web space I …

Web Development php xml
Member Avatar for CelestialDog
0
91
Member Avatar for serkan sendur

i output cached my .aspx page for a long period of time, now i want to change some markup on the page, how can i make it invalidate its cache(make it refresh it self)?

Web Development asp.net
Member Avatar for SheSaidImaPregy
0
110
Member Avatar for serkan sendur

Hi fellas, i got two applications running under the same iis server. I want to pass session variables between these two applications, i.e. authenticate users in one application and allow them access in the other as well. What are my options to achieve this?

Web Development asp.net session
Member Avatar for serkan sendur
0
771
Member Avatar for majestic0110

hi all I have a connection to a sql d/b that loads data into a gridview. now in this grid view I have edit buttons that process user onto the 'edit' page (a separate page). the data from the row that was selected for editing was sent to the next …

Web Development asp.net c# session sql
Member Avatar for majestic0110
0
255
Member Avatar for ryy705

Hello, I recently signed up with a free hosting provider(apache, mysql, php). When I login through ftp, I go to my root directory which is web accessible. So where do I hide the files that I don't want to be accessed through the web? Such as database connection files, user …

Web Development apache php
Member Avatar for Auzzie
0
135
Member Avatar for EduardoAndres

Greetings! I'm building a web page that in its master file has a treview navigation control. Now, this treeview has a root, a parent and leaf nodes. I'm having a problem with the post back of this control. Basically, I have set the "parent" nodes [B]not[/B] to be exapnded, so …

Web Development asp.net
Member Avatar for SheSaidImaPregy
0
120
Member Avatar for lordx78

[code=php] <?php //echo "You have been successfully logged out. echo "You have been Successfully logged out.<br><br> <img src='../images/goodByeC2.png'/> You will now be returned to the Main page. "; ?> [/code] Why line 4 is not working, please advise.

Web Development php
Member Avatar for lordx78
0
76

The End.