4,124 Topics

Member Avatar for
Member Avatar for kausar4u

[code=asp.net]singlecourse = Session("singlecourse") ename.Text = singlecourse.CourseName Session("testname") = singlecourse.CourseName Seclist = que.GetSection(singlecourse.CourseCode) Qnolist = que.GetQnumber(singlecourse.CourseCode) Session("totsec") = Seclist Session("totqno") = Qnolist Session("queslist") = queslist t1.Text = Profile.Ttime pos = InStr(t1.Text, ":") h1.Value = t1.Text.Substring(0, pos - 1) 'h2.Value = t1.Text.Substring(pos, 2) h2.Value = Right(t1.Text, t1.Text.Length - pos) End If Else …

0
68
Member Avatar for MDGM

Hi all, I have a shopping basket feature on my website which saves the product's primary key in the session array called 'cart', each one seperated by a comma, so example: '123,456,789'. Now in order to get each item from my shopping basket to paypal I need to write 2 …

Member Avatar for MDGM
0
122
Member Avatar for drjekil

I ve to Write a Python program that prints a random DNA sequence in Fasta format. That program should ask for the length of the sequence and suggest a reasonable sequence name. The session should look something like: > python randomdna.py Length: 34 >MySequence TGCGCATATTGTCTAACTATGGCTGTGGCCGGA The output must be in …

Member Avatar for drjekil
0
160
Member Avatar for kapil.tandon

[code=aspnet] private void AddRecordToGrid() { try { datatable dt = new datable(); if (Session["SampleDataTable"] == null) { dt.Columns.Add(new DataColumn("ID", typeof(string))); dt.Columns.Add(new DataColumn("Qtr", typeof(string))); dt.Columns.Add(new DataColumn("Exp", typeof(string))); dt.Columns.Add(new DataColumn("Partner", typeof(string))); dt.Columns.Add(new DataColumn("Net", typeof(string))); dr = dt.NewRow(); } else { dt= (DataTable)Session["SampleDataTable"]; } dr = dt.NewRow(); if (dr.IsNull(0)) { //dr = dt.NewRow(); …

0
73
Member Avatar for isotope

Hello everybody, I'm trying to write a php script to read rss feeds. Since I began, I found it is much harder than I expected, because the xml structures are very different, and they need to be interpreted differently everytime. I'm using [CODE]simplexml_load_file()[/CODE] to read the xml code easily and …

Member Avatar for isotope
0
150
Member Avatar for foggy_coder

Hello, I'm pretty new to C++ and I've been trying to this program to open a file and check if it exists for the last two hours. It seems like it should be so simple but it keeps eluding me. Here is the code in main that starts to run. …

Member Avatar for foggy_coder
0
260
Member Avatar for Microaa

I need to draw a use case diagram for the following: [LIST=1] [LIST] [/LIST] [/LIST]Each member carries a membership card, which is date stamped every time they attend a training session. Their attendance is also recorded in an attendance ledger. Members pay a small fee for attending any session. [LIST=] …

Member Avatar for Microaa
0
104
Member Avatar for Chaster

Hello, How can I get a reference to a session? I have a page, which forms a query string, and in another page I would like to display the attributes of it. I don't want to introduce scriplets, so I am trying to do this in a pure Java file, …

Member Avatar for ~s.o.s~
0
105
Member Avatar for Seamus McCarthy

I'm trying to append the end of the file treatments.txt but am unsure how to use the while loop correctly!! Any suggestions?? I tried boolean with the whiles aswell but can't seem to get it to work either. Like asking do you want to continue adding treatments and if yes …

Member Avatar for Seamus McCarthy
0
130
Member Avatar for SoHotSoCalGirl

Help, I'm trying to burn 4.7 GB DVD+R discs using Nero 7.2.0.3, on Windows XP Pro SP2, and I don't want to burn the whole DVD at once, I want to keep adding a few files at a time. The only problem (and it's a big one) is that I …

Member Avatar for caperjack
0
459
Member Avatar for WarriorOfLight

Hello, experts! On my machine I have installed Windows Server 2008 DataCenter Without Hyper-V SP1 with TS Session Broker role. On two other machines installed Windows Server 2003 Enterprise SP2 with Terminal Server role. All configured on combined action without using of the NLB. The request to WMI-class Win32_SessionDirectorySession returns …

0
25
Member Avatar for danielpataki

Hi everyone! I'd like to ask a simple question to which I can't really find a definitive answer. If I condense my code a lot, will this mean an increase in loading times which is significant enough? I like having my code spaced out, readable, but I would also like …

Member Avatar for danielpataki
0
214
Member Avatar for itzzmeyoyo

Iam not able to pass a value from servlet to jsp using setAttribute and getAttribute. My test code : Test1.jsp ======= [code] <%@ page language="java" contentType="text/html" %> <html> <head><title>Login Example</title></head> <body> Enter Your Text <hr><p> <form name = login action="../servlet/TestServlet1" method=POST> Your Text : <input type=text name=yourText><br> <input type=submit value=LogIn> …

Member Avatar for ~s.o.s~
0
3K
Member Avatar for dwdish

Hi, I successfully send email with the following code in English. However, if the message and the subject title are in other characters, everything becomes question marks and the subject title says something like ...ANSI...3F=3F=3F... How do I set the character encoding to utf-8, for example? Thanks. I have this …

0
60
Member Avatar for ArtChess

Here's my scenario Workstation *ironic* it's not really working! But anyway. Workstation = XP service pack 2 Dell GX260 tower. Issue when remoting STart>RuN> 'mstsc' I key in the computer name and click enter and receive the error The remote computer disconnected the session because of an error in the …

0
84
Member Avatar for afroz282004

I try to retrive the doc file from sqlserver,when i execute the code ask me Do you want to open save file? when i click open button the doc file open with error "System.Byte[]" Dim sql As String Dim strcon As New Configsetting Dim cnn As New OleDb.OleDbConnection(Configsetting.ConnectString) Session("Req_SeCode") = …

Member Avatar for Teme64
0
117
Member Avatar for kfrivera

Hi! Can you help me with this matter? The client session expired when its system date is advanced than the server. The client can no longer login in the program. This happens in Internet Explorer browser. Thanks in advance!:)

Member Avatar for jbennet
0
48
Member Avatar for kevin wood

i am trying to set session variable using a form but i ahve never done this before and i am unsure of how this is done. i have had a look at a few examples on line but still i am not clear on how this works. here is what …

Member Avatar for kevin wood
0
80
Member Avatar for Jesi523

Hello, I am used to VB.Net, and I recently starting using ASP.Net 2.0 with VB.Net. What I do not understand is how to keep my variables. Everytime the page goes back to the server I lose information. It gets lost. I've looked everywhere and read a lot of information and …

Member Avatar for dickersonka
0
106
Member Avatar for AdventureX

Hey people, I'm at uni and we have lab sessions for Java. In my lab session I have been given an exercise to complete however I need help because I don't know where to start!! Can anyone help me? If you can I will post back with the task to …

Member Avatar for dickersonka
0
79
Member Avatar for kxh29

Hello Team: I have users who use Reflection-X (we are on AIX 4.3)when execution our application software. If they do not "back out" of the application (... Select X on the various menu screens...) gracefully, and just "click" on the "RED X", in the upper right hand corner of the …

Member Avatar for krisoccer
0
138
Member Avatar for priti_s

Please tell me message driven bean can be public or private? also for session bean, it can be public or private? Thanks

0
57
Member Avatar for shwick

Running ubuntu 8.04. I'm using the recent module in two different chains SSH_PROTECT and FTP_PROTECT. What I want is for an ip to be allowed to make a new connection to SSH port 22 once every 60 seconds and FTP port 21 once every 30 seconds. [CODE]iptables -N SSH_PROTECT iptables …

0
79
Member Avatar for cctaco

I'm using joomla and sobi2, I don't like the layout and want to create a way for the site visitor to choose a category from the home page which should look like this. [URL="http://www.bidmyneeds.com/index.php?option=com_sobi2&Itemid=28"]http://www.bidmyneeds.com/index.php?option=com_sobi2&Itemid=28[/URL] Then I want them taken to this page. [URL="http://www.bidmyneeds.com/index.php?option=com_sobi2&sobi2Task=search&Itemid=28"]http://www.bidmyneeds.com/index.php?option=com_sobi2&sobi2Task=search&Itemid=28[/URL] Where the select catagory would be already …

Member Avatar for cctaco
0
274
Member Avatar for quax90

Hello, I am new here. I need urgent help so I am sorry if I don`t obey the rules of this coomunity - it`s just because I am new here, nothing else. By the way, If my subject is not for this forum, I will be happy if you can …

Member Avatar for LizR
0
137
Member Avatar for mrcniceguy

I`M CREATING A PHP SITE,AND THERE IS A MEMBER PROFILE(myprofile.php). AFTER MEMBER LOG IN SESSION ARE REGISTERED. NOW THE PROBLEM COMES,IF MEMBER MOVES TO ANOTHER PAGE AND IF HE WANT TO BE BACK TO HIS PROFILE BY CLICKING THE BACK BUTTON,IT SHOWS THAT U MUST REFRESH A PAGE. I TRIED …

Member Avatar for mrcniceguy
0
92
Member Avatar for Venom Rush

Hi there I'm new to using sessions and I'd like some input on what the best method is for my situation. The site I'm building requires a shopping cart. A very simple one I might add. There will be no credit card facility or login system (explained in next paragraph). …

Member Avatar for R0bb0b
0
83
Member Avatar for google503

[COLOR="Red"]When I open my page I get this error:[/COLOR] [code] Parse error: syntax error, unexpected $end in /home/a9617139/public_html/order2.php on line 215[/code] [COLOR="Red"]Here's all of the code for the page:[/COLOR] [code] <? session_start(); ?> <script language="JavaScript" type="text/javascript"><!-- function placeFocus() { if (document.forms.length > 0) { var field = document.forms[0]; for (i …

Member Avatar for R0bb0b
0
166
Member Avatar for google503

[COLOR="Red"]I have a code and it comes up with this error:[/COLOR] [code]Parse error: syntax error, unexpected T_VARIABLE in /home/a9617139/public_html/order2.php on line 1[/code] [COLOR="Red"]I don't know why it does. This is my code for that page:[/COLOR] [code] <?php session_start(); ?> <script language="JavaScript" type="text/javascript"><!-- function placeFocus() { if (document.forms.length > 0) { …

Member Avatar for cwarn23
0
137
Member Avatar for gparadox

These are the directions: Recursive Descent Parsing Consider the following BNF grammar: E -> T + E | T - E | T T -> P * T | P / T | P P -> I | (E) I -> a | b | ... | y | z …

Member Avatar for gparadox
0
119
Member Avatar for Venom Rush

Hi there I have a problem with sessions at the moment. My aim is to be able to use sessions with out getting those ugly url's. In my php.ini session.use_trans_sid is on and session.use_cookies is on. I'm using ini_set("url_rewriter.tags",""); to stop the server from creating url's with PHPSESSID=bunchofrandomnumbersandlettershere which works …

Member Avatar for cwarn23
0
190
Member Avatar for rajeesh_rsn

I am new to PHP I need a little help in my php login script... I had 3 pages 1. index.html (user type username and password ) 2. login.php 3. logout.php ie [B][U]index.html[/U][/B] <html> /Main Page /////// <body> <form action="login.php" method="post"> <input name="uname" type="text" id="uname" /> <input name="pass" type="text" id="pass" …

Member Avatar for Shanti C
0
119
Member Avatar for Robert72

I'd like to write a shell script that'd parse data from a pipe and then ask the user questions. ie: [code]echo "Ann Bob Charlie" | checkuser.sh checkuser.sh starting Ann is OK. Bob is not in the system. Add Bob? (y/n): [/code] I know a couple ways to read from a …

Member Avatar for JeoSaurus
0
155
Member Avatar for jazardezign

I am trying to get Google to show my title and meta description but it shows the description from dmoz.com. I have the meta data "noodp" in my <head> but it is under some JavaScript. Also the page redirects due to session id passing and cookie sessions for tracking purpose. …

Member Avatar for Dani
0
137
Member Avatar for stevejhon

Hello I had problem I want to delete row from my datatable through asp:linkbutton. How can I do this. I had the following code, but it adds another row to the table protected void delCart(object s, DataTableNewRowEventArgs e) { dt = (DataTable)Session["Cart"]; dt.Rows[e.Item.ItemIndex].Delete(); //dt.Rows(e.Item.ItemIndex).Delete(); int CartItem = (int)Session["cartItem"]; CartItem = …

Member Avatar for zezo
0
117
Member Avatar for 65!sesa

Hello pipo Iam pretty new at php.I implemented a log in page as shown below: <?php session_start(); include("./connect.php"); // start the session $errorMessage = ''; if (isset($_POST) && isset($_POST)) { //--------------------------------------------------------------- if (isset($_POST)) { // if form has been submitted //check out the fields if (isset($_POST) || isset($_POST)) { // …

Member Avatar for sDJh
0
81
Member Avatar for thehangner

Hi i am new here and trying to fix a relative's computer First it would not boot windows so i had to reinstall the boot files from winxp cd then once i was able to boot i ran over 6 scans from different companies (avg8, ad aware, pc doctor) i …

Member Avatar for thehangner
0
416
Member Avatar for Morty222

A user will select a tournament to register for, then add a team, then I store the following into a session: $teamID; $tournyID; $gatefee; $cost; When they click add to cart I update the session using this: $_SESSION['cart'][]['team'] = $teamID; $_SESSION['cart'][]['tournament'] = $tournyID; $_SESSION['cart'][]['gatefee'] = $gatefee; $_SESSION['cart'][]['cost'] = $cost; My …

Member Avatar for ShawnCplus
0
173
Member Avatar for kristenharding

So I am completely new to ASP .NET and my first page needs to be a log in page. I have a database in SQL 2000 that has a table called tblEmployee. This table holds usernames, passwords, and group security details. I need to grab quite a few fields from …

Member Avatar for cVz
0
65
Member Avatar for avsparmar

i am building a web chat application for mobiles. Registration form for new users currently includes username , password , re-enter password and a submit button to send all to a form bean. i am having problem to create a link or a button to send the input of 'username' …

Member Avatar for sbhavan
0
274
Member Avatar for shijunair

I am facing problem while retrieving values from the jsp page. my database structure is as follows: ----------------------------------------------------------------------- m_emp_no|from_date|to_date|approver|status| ________________________________________ 1002 | 22/9/2008 | 23/9/2008|1003 |pending 1004 | 29/9/2008 | 30/9/2008|1003 |pending 2044 | 15/9/2008 | 16/9/2008|3076 |pending -------------------------------------------------------------------------- I am retrieving values from database properly using the following sql …

Member Avatar for shijunair
0
239
Member Avatar for preethi_ga

Hello, Im using ASP.NET as front end and SQL Server as back-end. and i couldnt navigate the records. im not getting correct way. more over im having some doubts in the dataset also. normally im designing the dataset by picking the dataset from "Add New Items" only. because, if i …

0
102
Member Avatar for assgar

Hi I am having problems with sessions. When using Internet Explorer I can pass sessions to other pages. I cannot pass sessions when I use Mozilla Firefox. //at the top of the page session_start(); //value passed $last_login = $_SESSION['s_last_login'];//last user login history PHP.ini: //This is my PHP.ini file session configuration …

Member Avatar for R0bb0b
0
121
Member Avatar for SonxQ7

Always get warning when using raw type Lists/Sets/Iterators etc. [code] public java.util.List /* <-- Warning here */ getUsersByAge(int minAage) { org.hibernate.Query q = session.createQuery("from User u where u.age >= :minAge"); q.setInteger("minAge", minAage); return q.list(); /* <-- Warning here */ } [/code] I've chaged this by [code] public java.util.List<User> getUsersByAge(int minAage) …

Member Avatar for vite
0
190
Member Avatar for mohammed2raja

I want know more about session and cookies. How it maintain and what is it use using php. where all session variables are stored in differnet web server. How session is maintained in Apache server and ISS server. All depth information about server with example. Please give me some url …

Member Avatar for Shanti C
0
103
Member Avatar for keanan

I have a form where I am using an image as the submit button. When I click on the button the form submits however when I press 'enter' the page simply refreshes. In my PHP code I use the submitok_x value to check the x co-ordinate value - if it …

Member Avatar for keanan
0
157
Member Avatar for Doc Holiday

Hello All, I need to pass two session varaibles from gridview to open another page ("Detail.aspx") I got the session varaibles work with the "AutoGenerateSelectButton = true". But I need to use an image instead and not sure where to start. I got the images to display and open the …

0
47
Member Avatar for cybernaut09

I have a jsp page to take input from user and want to store values in database with the confirmation message on the same jsp page . But I already have stored an array list in session during processing of other pages of other modules of my project . Now …

Member Avatar for peter_budo
0
94
Member Avatar for cybernaut09

I read jsp tutorial by peter_budo on database connectivity using MVC model in jsp then I tried to create a registration page but I have errors on my page . Please help me correct them. I here have 1. registration.jsp - as interface for taking input 2. RegisterServlet.java - as …

Member Avatar for peter_budo
0
2K
Member Avatar for ocbphoto

Hi guys, Once again here i am asking for your wise knowledge, i am having porblems with deleting a record. I can update the record but when i am trying to delete it i cant it it does nothing here is my code [code] <?php require_once('Connections/hello.php'); ?> <?php if (!isset($_SESSION)) …

Member Avatar for ocbphoto
0
149

The End.