Forum Array

Warning: Copy() [function.copy]: Open_basedir Restriction In Effect

Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/oeaivcom:/usr/lib/php:/usr/local/lib/php:/tmp) I am trying to create a form that someone can submit a file to an ftp location. I found a script online and it is giving me this error. Could anyone point me in the right direction? I have set the permission code of user_submissions to 777. /public_html is inside /home/oeaiv <form id="form1" name="form1" method="post" action="enter_check.php"> <input name="ufile[]" type="file" id="ufile[]" size="25" /> </form> [code].....

View Answers

Very Similar Questions

Adjusting PDF Restrictions To Not Allow Printing, Copying?
stackoverflow.com
I have a user uploading a PDF to my server, is it possible to adjust the PDF restrictions via PHP to not allow printing, copying, etc?

C# - Copy Several Textboxes Data Into Target Textbox Calling Same Function
stackoverflow.com
I have several input textboxes with different id and class name. I want to track changes in any of the input textboxes, and reflect it into target textbox, but don't want to replicate the function for every individual textbox. Is it possible to use one function for all?

Link Files Instead Of Copying
www.sitepoint.com
to execute the following command into a Solaris 5.11 system. cp -al ...... The problem is that either -a or -l works on Solaris. Man pages are not installed and all I can get is: Usage: cp [-f] [-i] [-p] [-@] f1 f2 cp [-f] [-i] [-p] [-@] f1 ... fn d1 cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [-@] d1 ... dn-1 dn What I want to achieve is link files instead of copying and also keep permissions on files.

General :: How To Copy Symbolic Links
superuser.com
I have directory that contains some symbolic links: user@host:include$ find .. -type l -ls 4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include 4737415 0 lrwxrwxrwx 1 user group 14 Dec 9 13:49 ../k0607-lsi6/linux -> ../../../linux [code]....

Warning: Unlink() [function.unlink]: Permission Denied In C:Program
www.phpfreaks.com
i'm getting this error when i try to upload an image- Warning: unlink() [function.unlink]: Permission denied in C:Program Filesxampphtdocsepeopleupim.php on line 79 Does this mean i need to change the directory permission to allow php to move/copy an image into the directory?  if so, can i right-click on directory folder (i use windows xp) and go into properties and change the permissions in there? If so, what do i change it to? Code:

Copy-Paste Command
www.xtremevbtalk.com
What VB code should I use to get a program to copy a file and paste the copy in a certain location?In really bad pseudocode, I'm guessing it would be:Copy <filename> To ClipboardPaste <filename> To <location>I know what I've put here is probably wrong, but my experience with VB in terms of both internal and external clipboard functions is hovering just above 0 - in other words, I know that a clipboad function exists...Thanks.

Use Copy-paste Command
www.vbforums.com
Hi.How can I do for use copy & paste command for a grid, dbgrid and flexgrid to a office application using a clipboard command.Any answer let me know.Thanks a lot.

Copy, Rename And Open A File Through Command Button
www.vbforums.com
hey all!i need help plz!i have an access file .mdbi need a command button code that copies, renames and open dat mdb file.the user should enter the name of the new file through a textbox on the form.can anybody help plz!

Warning: File_get_contents() [function.file-get-contents]: URL File-access Is Disabled In The Se...
stackoverflow.com
i got an error message when i try to do file_get_contents() function Warning: file_get_contents()[function.file-get-contents]: URL file-access is disabled in the server configuration in /data/20/1/112/111/1927437/user/2100551/htdocs/cti-dev/admin/my path My site is https.

Copy File From Website
www.vbcity.com
Is it possible to copy a gif from a website and save it local with VB6. Or do i need to get VBnet?/Anders

Sony Ericsson Xperia X10 :: Copy Contacts From Sim To Phone
talk.sonyericsson.com
I got my new Xperia X10 yesterday, and when i went into the phone book for the first time to copy contacts from Sim i made the mistake of coming out of the setup wizard, and now i cant see how to copy from sim. Someone please help, i have no contacts on my phone!

HTC Desire :: Copying Contacts From SIM - Multiple Numbers Per Contact
androidforums.com
I've just got my Desire (loving it already!) and have copied over my contacts from my SIM to Google. On both my SIM view, and when copied over, however, only 1 number is showing per contact when for some of my contacts I have 2 numbers (e.g. home and mobile). These showed up as SIM contacts on my old phone (Nokia) and have definitely not been left behind so they must be on the SIM somewhere. Anyone know how to access these on the Desire and copy them over?

How To Give Full Path For Two Required Parameters Of Copy Method
www.vbforums.com
I have already create special folder to copy default picture for new user and put it inside that folder. I have used copy method (system.io.file) to do that and works fine but I have to give full path for two required parameters of copy method for example: I want to pass sourceDir = "~xyzdefault.gif" destDir= "~xyz" + userId + ".gif" can anyone guid me to another method to do that without write full path?

Security :: Avoid Copy Query String?
forums.asp.net
I have a java application that send to a aspx page the user name and password in a Query String. How can I authenticate the user in this aspx web page, and how can I avoid that a user copy the link in the internet explore and acces to the page.

Forms Data Controls :: Copy From One Textbox To Another In Gridview
forums.asp.net
I have 2 text boxes and a button within an EditItemTemplate field in a simple GridView: <asp:TemplateField HeaderText="Text"> <EditItemTemplate> <asp:TextBox ID="txtText1" runat="server" /> <asp:Button ID="bntCopy" runat="server" Text="Change" /> <asp:TextBox ID="txtText2" runat="server" Text='<%# Bind("text") %>' Enabled="false" /> </EditItemTemplate> <ItemTemplate> <asp:Label ID="lblText" runat="server" Text='<%# Bind("text") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> how I can transfer the text from the txtText1 Textbox to the txtText2 one when I press the btnCopy button, but preferably in the codebehind so that I can change the text before actually copying?

Multi Dimension Array Copying
forums.asp.net
i have a two dimensions array: [Code].... but it require to specify the second dimension; im missing something...

ADO.NET :: How To Copy Data?
forums.asp.net
I have Linq  to display data in gridview These data are: Id, FirstName etc ... 1, FirstName1 2, FirstName2 3, FirstName3 How this data copied and stored as follows: 4 FirstName1 5, FirstName2 6, FirstName3

Quickest Way To Copy SQL Data
stackoverflow.com
I wrote a console application that queries all data from a table in MS Access (I know, but I inherited it) to a SQL table. It runs every morning as a scheduled task. The fields between the two tables are not identical. Currently I select all data from the MS Access table, loop through the dataset and insert each row into the SQL table. I also write a quick log file in the process. It works, but it's not fast. I would appreciate any ideas that you may have to improve the process.

Forms Data Controls :: How To Copy A Set Of Data From The Existing Data In UI
forums.asp.net
How can I copy a set of data from the existing data in UI.

Forms Data Controls :: How To Copy Data From Formview
forums.asp.net
i have a formview <formview> ,,,,, </formview> in the formview i have  a lot of fields , ID , Name , Email ,,,,,, etc  how can i copy the name to textbox ,?! i have try this : protected void Page_Load(object sender, EventArgs e) { TextBox txt = FormView1.FindControl("Email") as TextBox; Tetbox1.text = txt.text ; }

How To Copy Too Many CSV Data To Excel Worksheets
forums.asp.net
I have multiple csv files. I need to copy all of them into 1 Excel file with multiple worksheet for each ... how can I acheive this by writting C# .EXE application?

Copy Data From DataTable To ArrayList
forums.asp.net
I am trying to implement ajax auto complete control using a standard webservice. inside webservice a table adapter is called which will return a dataTable containing a single column. this table adapter uses a stored procedure with following script

ADO.NET :: Copy Data In GridView With LINQ?
forums.asp.net
How to copy the displayed data from grid view with LINQ? Example: In the GridView I have a data: ID, Surname 1,   Surname1 2,   Surname2 3,   Surname3 How to copy this information in the same GridView and to add new IDs. Finally, the copy must look like this: ID, Surname 4,   Surname1 5,   Surname2 6,   Surname3

How To Copy Data From A DataTable To A Custom Class
forums.asp.net
i have a custom object class called UserInfo.  this object is used to bind user info details to some data bound controls.  right now in my BLL i am getting the user info in a data table, then converting it to this object with code like this [Code].... this works but its a lot of code and i was just wondering if there was a way to copy the whole data table to the object without having to go column by column and matching them up with properties.  also i cant just use a data table directly (well i can) but a lot of data bound controls rely on this object and the object also holds some additional data that is many : 1 relationship with the UserInfo object.  So it would be a better fit to see if there is a way to copy the info from DT to object rather than just excluding the object and using DataTables.

Possible To Copy Display Data From Another Website Page
forums.asp.net
Is it possible to copy display data from another website page?Display data means ,data that is displayed in page.For example,http://www.ndtv.com/convergence/ndtv/pollution.aspxI am alien to this website,but I want to copy data .that is shown in above link page to my website page.

C# - Copying The Entire Telerik Docklayout From One Page To Another Page
stackoverflow.com
I'm trying to copy the docklayout from one page and try to recreate it in another page. Here is my code- protected void dockLayout_SaveDockLayout(object sender, DockLayoutEventArgs e) { List dockState = dockLayout.GetRegisteredDocksState(); JavaScriptSerializer ser = new JavaScriptSerializer(); Session["dock"] = ser.Serialize(dockState); } protected void btnSave_Click(object sender, EventArgs e) { Response.Redirect("receivingPage.aspx"); } receivingPage.aspx.cs public partial class receivingPage : System.Web.UI.Page { private List dockStates; private RadDockLayout dockLayout; protected override void OnInit(EventArgs e) { dockLayout = new RadDockLayout(); dockLayout.LoadDockLayout += new DockLayoutEventHandler(dockLayout_LoadDockLayout); JavaScriptSerializer ser = new JavaScriptSerializer(); dockStates = ser.Deserialize>(Page.Session["dock"].ToString()); for (int i = 0; i < dockStates.Count; i++) { RadDock dock = new RadDock(); dock.ID = string.Format("RadDock{0}", i); dock.ApplyState(dockStates[i]); dockLayout.Controls.Add(dock); } this.Controls.Add(dockLayout); } protected void Page_Load(object sender, EventArgs e) { } void dockLayout_LoadDockLayout(object sender, DockLayoutEventArgs e) { foreach (DockState state in dockStates) { e.Positions[state.UniqueName] = state.DockZoneID; e.Indices[state.UniqueName] = state.Index; } } } But I'm getting emtpy docklayout in receivingPage.aspx.

Forms Data Controls :: How To Copy Only Filtered Rows From GridView Into Datatable
forums.asp.net
I am working with GridView/TelerikGrid control. It is having filter option. When I filter the data, I need to copy only filtered rows into Datatable for further processing. Suppose I am having total 10,000 records. and when I filter on column say Dept="IT", I get 1000 records in grid. So these 1000 records only should get copied into Datatable. So How to achieve this ? Cwhat can be done over this ? I tried number of properties for grid. But there is no property which will return fileterd data source. Also I am not able to go every page of Datagrid and collect the data. I can get data for first page only. If I need to collect the data by going to every page of gridview, what is the way for this ?

Check If File Is Finished Copying?
stackoverflow.com
I'm writing an ASP.NET webapp that will copy the contents of a CD to a network share. I need to check periodically if the copy job is finished. One way of doing this is checking the network share folder to see if the file size has changed since the last check, but that seems kind of dodgy. Does anyone have a better idea how to do this? EDIT some more explanation: Basically I'm calling a JsonResult action method every 5 seconds, called getStatus(source,destination). This method needs to check the following: - if the source dir is still empty, copy cannot start --> return status "waiting" - if the source dir contains files, copy can start -_> call copy method + return status "copying" - if the destination dir contains files, and file size stays the same, copy is finished --> return status "finished"

IPB And VBulletin: Who Copied From Whom?
bytes.com
Somebody said IPB 1.2 copied code from vB 2.0.... Now IPB is in 2.0 and vB is in 3.0 How could a script be offered in a free version IPB and paid version vB, while features and underlying codes are similar. What is the MySQL problem IPB has to crash database but vB does not? Why can IPB fix it?

Serialization - Side Effects Of Serialize As Hash Function?
stackoverflow.com
I'm looking to create a sort of HashMap class in PHP. For the sake of being able to build upon PHP's associative array functionality, I have a hash function, which should be able to take any variable (primitive or object) and turn it into a string for use as an array key. For this hash function, I am thinking of using serialize(), but I noticed that PHP calls __sleep() on an object when that function is called. I'm assuming this could be problematic. Am I right? If so, what can I use to get a hash of either a primitive data type or of an object? I did look at spl_object_hash(), but its results seem less than unique, as it uses reference locations, which appear to be reused? Update: If anyone's interested, this is (roughly speaking) what I ended up with. The Collection interface can be ignored. Any improvements welcome, of course. Oh, and there isn't a remove method yet. <?php include_once 'Collection.php'; class HashMap implements Collection { private $data; private $hashes; [Code]...

Width Of Copy Inside An Element?
stackoverflow.com
How can I find the width of an element in JavaScript/jQuery without counting the part that is trailing whitespace. The result for the example below would be 16px because it is only one character, and the font size is 16px. <div class="styled" style="width: 1024px; margin: 5px; border: 100px solid lemonchiffon;"> 0 [code].....

Send Form Copy To Applicant?
www.phpfreaks.com
I created a application for my client and I need to find a way to get the script that supports the form to send a copy to sender. So basically it will send the client an email and the applicant would also get a copy emailed. this is what i have so far: <?php //--------------------------Set these paramaters-------------------------- // Subject of email sent to you. $subject = 'Haiti Operation Application'; [Code].... Right now it send the email to just the client... I dont know how to send it to the applicant... im a graphic designer and dont know much on php, just very basic php..

Copy Of PHP.INI - 4.4.8
www.phpbuilder.com
My hosting company is running PHP 4.4.8. I need to get a copy of the PHP.INI for 4.4.8 so that I can modify the default timezone (timezone manipulation functions were not added to PHP until 5.2, so PHP.INI is the only way until then). Can anyone post a 4.4.8 PHP.INI file that I could download?

Problem With Copy
bytes.com
I don't understand why this script want work if($_POST['students'] == true) copy("$file" , "/students/$file_name") else echo "no check"; Parse error: parse error, unexpected T_ELSE

Create/copy
forums.devshed.com
what i want to do is have it when someone signs up it creates a folder with their username on the server and copyies files to that folder....

Making Copies Of A Bmp Image Or Gif Image
www.vbforums.com
hello,can anybody suggest on how to make multiple copies of a bmp or a gif image.cheers.Dinesh.

SetInterval Of Function - Called From Function - Display And Update
www.codingforums.com
I'm trying to make a time script for an app I'm making (this is not an HTML document; it's a .js file to be used with Titanium) however I'm having trouble getting the function to display and update. function updateClock() { setInterval ( 'kiTime()', 1000 ); } function kiTime () { //Get current date and time [Code]... If I use kiTime() under the text field I will get the current time (or at least the time the app was opened), however if I call updateClock() it's blank.

Access Function Argument In Different Function?
stackoverflow.com
I have this function: <?php myWidget() { ?> <div id="<?php echo $args['widget_id']; ?>"> <p>Something</p>[code]... (widget_id is Wordpress core function so I have no direct access to that, it just simply generates widgets name)I wanted to add my widget as a shortcode so needed to create another function: function myWidget_shortcode( $atts ) { extract( shortcode_atts( array( /* attributes here */ [code].... the_widget just simply calls widget called myWidget.The point is, everything works good, but id=" " is always empty when I use the second code.I know it's a Wordpress question, but I believe this has more to do with my PHP code.

Any Hosting Without File Number Restrictions
www.webhostingtalk.com
Is there any hosting providers without file number limits? Or higher limits... I've been using dreamhost, but found that they have a 500k file number limits. So now i'm using less than 2 gigs of disk and still have 370+ worthless free gigs of disk space

Copy Entire Row By Range &amp; Suppress 'Cannot Edit Links' Message
www.ozgrid.com
I have 10 workbooks which have various calculations and have several links to each other. We use Excel 2003. For each of these files, I have the following code in the Auto_Open module Range Range(“TodayComp”) is a date taken form a link in another spreadsheet. It is on Column 3, but the row changes every day as more rows are inserted before it This sub looks at Range(“TodayComp”) and checks the date on the cell directly above. If say Range(“TodayComp”) is 6/25/2008, and the cell above is 6/22/2008, it will insert three rows right above Range(“TodayComp”). These rows need to be copied with formulas from the current row above Range(“TodayComp”) Issue One: The following code works (it copies the rows), but it takes forever to run, as you can see in bold, I copy and paste each cell, instead of the entire row. Is there a way to copy and paste the entire row? Remember that I have only a named range to refer to, no cell address as it changes every time. Public Sub Auto_open() Update_Dates() End Sub Public Sub Update_Dates() Dim tdy, prev As Date Dim index, i, j, yr, no_inserts As Integer Sheets("Comparison Computation").Activate

CentOS 5 Networking :: Samba Share Access Restriction?
www.centos.org
cannot restrict share access to a single user. I've played with the security and valid users options in the smb.conf and I can get it to mount if I remove the valid users option, but this does not provide the access restriction I need. I also left it open and tried making the folder permissions rwx for backupadmin only and that didn't work. I'm using a credentials file which I include below, but I've tried manually entering them in the command too. [root@aaphst02 /]# mount -t cifs //aapsan01/aapxen01 /mnt/aapxen01 --verbose -o credentials=/root/smbcreds mount.cifs kernel mount options: unc=//aapsan01aapxen01,ip=10.0.1.34,user=backupadmin,ver=1,rw,credentials=/root/smbcreds,pass=******** [Code].....

Create A Function That Will Use The File Read Function But Not Read The Codes Inside That File
www.phpfreaks.com
What I want to do: What I want to do is create a function that will use the file read function but not read the php codes inside that file. e.g. <?php print "hello"; ?> would just send out the word hello, php codes that get information from a database would do the same, it would print out the information being written by the php code. Example of the database php codes: <?php $sql = "SELECT * FROM TABLE"; $res = mysql_query($sql); if($mysql_num_rows($res)){ while($row = mysql_fetch_array($res)){ print $row["table_data"]; } } ?> Lets say $row["table_data"] equals the name "Bob", that php code will send out the name Bob plus other names that could be printed from that php code and leave the php coding out so it does not get printed after  being put through the ReadFile function. [Code].... All the function above does is reads the file and that means the text between the <? & ?> tags also get read, what I want to know is how I could make a function that calls the page as it is ment to be shown. E.G. - If I wanted to get the current year and on the "footer.inc" page I write <?=date('Y');?> what fopen does is read that as it is but what I need it to do is to run the code as it would normaly do and for example it would print out "2010" and thats what fopen would read. So <?=date('Y');?> on the footer.inc file will print out 2010 after going through the ReadFile function.

Help: How Do You Make A Command Button Copy?
www.xtremevbtalk.com
-=Help=-How do you make a command button copy a textbox to your computer's clipboard?

HTC Droid Eris :: Copy Phone Contacts To Gmail Contacts?
androidforums.com
When my girlfriend got her Eris about 4-5 months ago Verizon was kind enough to copy her contacts from her Razor phone to her new Eris. However she now needs to return the phone for service (silent call bug) and she went to G mail to ensure all her contacts was backed up... they are not. It seems the contacts are stored on her phone (Eris) and not in g mail. How can we import all of her contacts from the phone memory into G mail?

Copy A Zip File From Remote To Local System?
stackoverflow.com
I want to copy a zip file from remote to my local system using SCP. I have a php file where i use php function exec(); if i run upload.php like [URL]. The zip file should copy to my local linux folder my path is /var/www/html/mydirectory/ How can i do this?

Copying A File From A Remote Server Via URL To A Local Folder?
www.phpfreaks.com
So my hosting server does not allow fopen anymore, so I was wondering if anyone had an alternative to copying a file from a remote server via a URL to a local folder?

Calling Pushing Effect Of Command Buttons Through Code
www.vbforums.com
i have a command button also a label control on a form . now i want ( as i click at label contol command button giving me a pushing effect ) as it did when we click at command button .

Sony Ericsson Xperia X10 :: How To Copy Contacts From Pc To Phone?
talk.sonyericsson.com
How to copy contacts from Pc to xperia x 10?

Sony Ericsson Xperia X10 :: Copy Contacts - Messages From W595 To Phone / Fit Memory Card In New?
talk.sonyericsson.com
I just got my new X10 mini today, but my memory card from my old phone (W595) doesn't fit in the new one!? What can I do?

Android :: Disable Orange Circle Effect When Clicking On A Link In A WebView
stackoverflow.com
I'm trying to catch the mouse click location so I wrote an onClick in the body tag, but every time I click on the page the whole page turn orange for a little while. Is there any setting can disable this effet?

Hosting Without Number Of Email Restriction
www.sitepoint.com
I have a custom made server side bulk email application. My current hosting service does allow unlimited emails (most restrict to around 3-500 per hour) but im having other problems with them. As such I need a new host for this tool. I send around 45,000 emails as newsletters to my site members about 10 times a year. I know that a dedicated server is a obvious solution but I dont want the management headaches and higher costs that go with it. Has anyone got a shared hosting solution that doesn't restrict email numbers or atleast has much higher limits?

No Restrictions On IP Addresses Anymore
www.webhostingtalk.com
Having been away from the hosting field for a few years returning back I notice some hosts are offering IPs with, for instance, personal basic plans. Some are even offering 15 IPs to anyone. And 350GB disk space and 1TB data transfor for $3.95, but that is another question. I wonder how they get butter on the bread with these prices. As for IPs how do these companies get their IPs? Are there no more Icann restrictions?

Domain Restrictions For .co.uk Domains
www.sitepoint.com
any restrictions on owning a .co.uk domain if one lives in the usa or should i have my uk friend register it?

Yahoo Server Restrictions On Upload
forums.devshed.com
im using old htm pages work with php which works on localhost, but upon upload to yahoo server i need to upload a revised .htaccess which yahoo restricts how can i read my htm pages in yahoo to work or read php in it? other options that will work in yahoo?

Restrictions On Windows 2003 Web Edition!
www.sitepoint.com
getting a dedicated server and wanted to know what the differences are between Windows 2003 Web and Standard editions? to run some activeX DLL's I have compiled on one of my websites that will be hosted on the dedicated server - can I do this on the web edition?

Check /etc/named.conf For Recursion Restrictions
www.webhostingtalk.com
I'm getting this warning from check server security option in csf : -------- You have a local DNS server running but do not have any recursion restrictions set in /etc/named.conf. This is a security and performance risk and you should look at restricting recursive lookups to the local IP addresses only -------- I saw named.conf but In fact I didn't understand what should I do Can somebody tells me what should i do and what this warning trying to tell me?

Free Management, Internet Relay Chat (IRC) Relaxed Restrictions
www.webhostingtalk.com
can anyone direct me to a host that allows me to run an IRCd with IRC bots and bouncers? The webspace should be 5 gigs or over and the bandwidth should be 20gigs/m or over. Free management (like offered on web intellects) would be great aswell. I have a 40-50$/m budget.

Configuration :: Deployment Error -Failed To Generate A User Instance Of SQL Server Due To A Failure...
forums.asp.net
 I have created roles and users using ASP.NET configurations for login validations, it works fine if I run my application within project but when I publish my site and try to run from my Inetpub it giving this error. I tried all shorts of solutions posted in website but nothing worked for me. "Failed to generate a user instance of SQL Server due to a failure in copying database files. The connection will be closed"

Forms Data Controls :: Add Gridview Value Row To A Textbox?
forums.asp.net
I am Trying to get the value displaying in a row a Datagrid view and copy it to a textbox

Forms Data Controls :: Copy Data From Excel Row To Gridview Row?
forums.asp.net
I need to copy data from excel to asp.net gridview. I have to select a row and press Ctrl+C to copy from excel, then I have to paste it in Gridview.

Forms Data Controls :: Copy Data From Db To Textbox?
forums.asp.net
I have a web page like this default.aspx?id={0-n} default.aspx?id=5 for example  how can i copy this number to textbox !? i mean the 5  or any another number  i must use it in text box

ADO.NET :: Copy Data From Excel File To Sql Db?
forums.asp.net
i trying to copy data from excel file to sql db I am using sql BulkCopy for this pruposein c# the following statement keep producing an error: for(i=0;i<DataSetRows;i++) { SqlBulkObj.ColumnMapping.Add(MappingDataSet.Tables[0].Rows[i]["Source"],MappingDataSet.Tables[0].Rows[i]["Source"]); }

SQL Server :: Copy Data From Multiple Columns Into One Column?
forums.asp.net
My View has four columns with years, none of the rows have complete yearly data. Current View Columns 1-10, FY, Expr1, Expr2, Expr3 Some data, 2010 NULL,NULL, NULL Some data, NULL, 2010, NULL, NULL Some data, NULL, NULL, 2010, NULL Some data, NULL, 2010, 2010, 2010 Some data, 2010, NULL, 2010, 2010, Some data, NULL, NULL, 2010, NULL Some data, 2010, 2010, NULL, 2010 Some data, NULL, NULL, NULL, 2010 A new column needs to relfect 2010 for each row in the View. Goal New View Columns 1-10, FY_NEW Some data, 2010 Some data, 2010 Some data, 2010, etc. for each row in the view I can not hard code the data as time moves forward next year rows will have 2012, etc. How can I get lthe year, in this case 2010, into a new column regardless of the year?

C# - How To Insert A Copy Of A Row (with A New Identity) Using LINQ To SQL
stackoverflow.com
I have a number of tables that together make up a "Test" that somebody can take. There are multiple types (scripts) of Test a person can take. I'm working on an Edit function that will allow somebody to edit the Test Questions. I want these edited questions to show up on all new Tests of that type, but still show the old questions when viewing past test scores. To do this each "Test" has a TestId auto-increment identity (along with its name). When a test is edited I want to make a copy of the test with a new TestId and present the questions for editing. So what is the best way to make the copy and insert it into my table using LINQ to SQL? This: DataContext db = new DataContext(ConnectionString); //Copy old test into identical new test but with a different script ID var oldScript = db.TestScripts.Single(ds => ds.TestScriptId == oldScriptID); var newScript = oldScript; db.TestScripts.InsertOnSubmit(newScript); db.SubmitChanges(); of course tells me that I Cannot add an entity that already exists. Is the only way to do this to go through every column in the TestScript and copy it manually, then insert it, and the database will give it a new Id?

C# - Importing Name Space Without Use Effect Performance?
stackoverflow.com
Is there any deficiency performance if import a lot of name space in Web.config or in every single cs file while it's not necessary to be in all classes ?

Mouseover Effect - User To Move Their Mouse Over A Word And A Description Should Appear
www.sitepoint.com
I am wanting the user to move their mouse over a word and a description should appear. Like this: [URL], move your mouse over copyright symbol, which is down in the right hand corner of the photo. Could someone please tell how to do this? I know this would need JavaScript, but not sure what to search for in a search engine.

JQuery :: How To Move DIV And Resize It With Animation Effect
stackoverflow.com
How can I both move a div and resize it with animation effect at JQuery? i.e. div will be at the middle of screen and it will go to the left side and will have %50 of its height and %50 of its width after it completed its move.(It will have for example %75 of its size at the middle of its way) I tried that: $(".block").animate({"left": "-=100px", "height": "-=30%", "width":"-=30%" }, 1000); However it disappears? This works: $(".block").animate({"left": "-=100px", "height": "30%", "width":"30%" }, 1000); However it makes my square more bigger, I try =-30% but doesn't work. What should I do getting smaller instead of getting bigger?

S3 / Cloudfront Download Restrictions
stackoverflow.com
I'm using S3 and Cloudfront for an application deployed on EC2. The permissions seem (in my limited knowledge of AWS) to be either public or private. How can I make files accessible from Cloudfront / S3 to requests from my EC2 instances, but not elsewhere? I'm sure I'm probably just missing something in the AWS console.

Put Restrictions On Input Data?
www.phpbuilder.com
I'm looking for codes on how to restrict input data? For example for the price it should be number then it will return error if any character will be inputed..

E-mail Relay Restrictions?
www.phpbuilder.com
I have a website(NewsPaper), where there is an option to send an e-mail from php script using php mailer function through SMTP server ( exchange windows 2003).but it seems that ammers are routing SPAM through the server.I need to restrict the mail relay, in order to grant permissions for those who are sending mails through our site using our PHP Form only. what shall i put in the relay settings..?? How can i do that to deny spammers from passing spam through our server???

What File Type Restrictions Should Use
www.phpfreaks.com
I have a question regarding file type restrictions when uploading to a database . I am currently using the MAMP program rather than an actual online server and the MySQL version is: MySQL 5.1.44. I want to have one column in a table for virtually any type of file a user would wish to load, .mov, .jpg, .doc, .pdf, etc. you should add restrictions on what the user is allowed to upload. The idea is that they can actually upload anything they want. Is security really a threat by doing this? And what would the threat be? As I don't really know much about security. If so, should there be any types of files that I would be wise to restrict?, would it be wise for example to restrict uploads that are .php scripts as that is what I have written the website code in. It would change the whole concept of this aspect of my website if I were to only allow certain files so I would prefer to limit the users as little as possible. Sorry if this is a silly question, like I say I don't really know much about security. I've only gone as far as encrypting passwords as there won't be any sensitive data being stored.

Access Restrictions And Inheritance?
www.dreamincode.net
I'm not sure if this is possible at all, but I've come across a situation where it would be neat to be able to encapsulate a field of a class that it get's from it's parent class (declared protected) so that any child classes won't be able to access it.A little diagram: Class A: declares the field protected ^ || [code].........

Change Status With Restrictions?
stackoverflow.com
I'm working on a status changing implementation for records. For example, when a record is created, it commences in a 'pending' state until a administrator changes its state to either 'active', 'rejected' or 'revoked'.The thing is, if a status has been changed from pending to active, the status cannot be changed back to pending or rejected. A rejected status can be changed back to active. A revoked status cannot changed to active, pending or rejected. At the moment I have a series of if/else statements to detect this but I wondered if there was a more logical and standard approach.

Image Upload - Dimension Restrictions
www.webmasterworld.com
I have an image uploading system in place on my site but I need to put a size restriction on the uploads (I have a file size restriction but not dimensions now). I've been searching and searching but all I can find is creating thumbnails and cropping with GD, I just want somthing simple though, if the dimensions are over say 500x500 they will get an error.

Regex - Execute Code With Restrictions?
stackoverflow.com
We have a CMS editor where php is allowed to be used inside it, however we need to restrict access some commands such as file_get_contents, file(), and global. boolean response regex for that? The text from the template is stored in a string.

Getting Around Email Restrictions With Hosting Providers?
stackoverflow.com
So my hosting provider is limiting emails sent out to 2 at a time, which means no array of emails.Right now I'm using Pear to send html emails to multiple users who sign up together.Is there a solution to loop through the mail() function multiple times ultimately sending out multiple emails? How will the performance be? The hosting company actually suggested we look for some solution to by pass their restrictions, but i don't know where to look.

JQuery :: Regex - Copy Input Val To Other Input And Replace Characters?
stackoverflow.com
I have to input fields: "label" and "url".When you write something into the label field it should be duplicated into the url field.This works like a charm, but I need the url field to be (url_encoded or sanitized) rather it would like to replace special characters with customized ones e.g. 'ä' with 'ae' or ' ' with '+'.I figured I could just use a RegEx function to replace things like ä or é but I do not get it right.

Jquery :: Drag N Drop Mouse Over Effect?
stackoverflow.com
I'm trying to emulate the behavior of this drag n drop found here How do I change the following code to get the mouse over effect with the rectangle outline? Also is it possible to have it sortable like the example above? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <style> .demo { width: 320px } ul { width: 200px; height: 150px; padding: 2em; margin: 10px; color: black; list-style: none; } [Code]...

Jquery :: Prevent Flashing Effect In Menu Animation?
stackoverflow.com
I have a rolldown menu that has an undesirable flashing effect. At the top of the page I hide the menu to animate it later with a roll down effect. The problem is that the hiding isn't done fast enough. This causes all the roll down menus to flash before being hidden. What is the way to fix that? At the top of the HTML page I have this to hide the menus. code...

How To Make DIV With Glassy And Semi Transparent Effect
stackoverflow.com
I want to give a div glassy reflection appearance as well as semi transparent effect. How to combine this two effects so that the div will look like a glassy transparent gadget. Is there a way to do this? (The div's bgcolor is lightskyblue and no background image is set yet).

Deleting Files Using Unlink [function.unlink]: Permission Denied
www.sitepoint.com
I have a record in the db and a picture file name recorded with that record. I am writing a deletion routine which checks that file name and is supposed to delete it using unlink. Although it reports the correct directory and file name, I received the following: Warning: unlink(/home/pab/html/pics/test.jpg) [function.unlink]: Permission denied I checked my permissions and the file is set at my user name and 666. Does anyone know why this won't work or maybe another way to delete the file?

Adding A Function To A Command Button.
www.vbforums.com
I'm developing an atm simulation for my college project and I'm trying to assign the delete funtion to a command button so that when a user presses the 'cancel' button using a mouse (there is no keyboard on an atm only a numberpad) it deletes the last number entered.Can anyone help me on how I can assign the delete funtion to a comman key?Mark.Added [RESOLVED] to thread title and green "resolved" checkmark - Hack

Process An Array In Function With External Formatting
stackoverflow.com
I want to pass an array to a function and iterate through it in this function. But I would like to be able to change the way the single entries are displayed. Suppose I have an array of complicated objects: $items = array($one, $two, $three); Right now I do: $entries = array(); foreach($items as $item) { $entries[] = create_li($item["title"], pretty_print($item["date"])); } $list = wrap_in_ul($entries); I would like to do the above in one line: $list = create_ul($items, $item["title"], pretty_print($item["date"])); Any chance of doing that as of PHP4?

Write Function To Retrieve Contents Of Webpage?
stackoverflow.com
I want to write a function to retrieve the contents of a webpage so it works like: $url = "example.com"; $pageContent = RetrievePageContent($url); What would be the easiest way to do this?

Output Current File Contents Without File Reading Functions?
stackoverflow.com
I have an interesting task here.. is it possible to read the current file contents without file reading functions? (without file_get_contents, fopen etc.) so if i have <? echo 'hi'; // function to output this file code ?> the output of the php file should be same as the code (BUT without the file reading functions)

Building A Function
www.xtremevbtalk.com
I am trying to learn to write a function. When I click a button to call the function I get an "Argument not optional" error with SelDate(Mon & Da & Yr) highlighted. Here is my code. Could someone point to what I am doing wrong? Thanks Code:Public Function SelDate(Mon As Double, Da As Double, Yr As Double) As Double Mon = Val(Form1.Monthtxt.Text) Da = Val(Form1.Datelb(SD).Caption) Yr = Val(Form1.txtYear.Text) SelDate = CDate(Mon & "/" & Da & "/" & Yr) End FunctionPrivate Sub Command1_Click() Dim Mon As Double Dim Da As Double Dim Yr As Double Dim Datex As Date Mon = Val(Form1.Monthtxt.Text) Da = Val(Form1.Datelb(SD).Caption) Yr = Val(Form1.txtYear.Text) Datex = SelDate(Mon & Da & Yr) MsgBox Datex End Sub

Command Button: Call Function And Wait Till It&#039;s Done
www.vbforums.com
How can I wait till a function if dome then continue i.e.Private Command1_Click() FirstThingToDo 'Wait till the first is done 'Then SecondThingToDoEnd SubThanks in advance.

Command Button: Call Function And Wait Till It&#039;s Done
www.vbforums.com
How can I make a command button wait till a function it called is done, only then continue?I.E.:Private Command1_Click()check-something-long()'wait till it's done then carry onmore things!End SubThanks in advance!

Calling Function For Command Button
www.vbforums.com
hi, i'm a newbie on programming. i am using smart card reader and have the sdk(gsdkpcsc.dll) for programming.then, i already wite down all the declaratiion for the module.i also have made the command button.my project is, i) when click at the READ button, it will start communication with smart card in the card reader, then it'll get the identification number from the smart card, 12 digit.then, the number appeared at text boxii) by clicking verify buuton,the 12 digit number is compared with the database with m Accessiii) if matches with databse, then it will send a unique charachter such as AEI at the serial port of my microcontrooler. this project is for 2 user.iv) if not match, then it says, access is denied.my problem s, i need help on the code lines for READ and VERIFY..can anyone help?READ > open session, commnubication, get dataVERIFY > match with database and send AEI(user 1), IOU(user 2) to serial port i need to get 12 digit numb for this function Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _my module code :/********************************************************Option Explicit'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' General Declaration'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@VB Code:Declare Function OpenReader Lib "gsdkpcsc.dll" Alias "_OpenReader@0" _() As Integer    ' open communication session with the card reader Declare Function cardConnect Lib "gsdkpcsc.dll" Alias "_CardConnect@12" _(ByVal port As Integer, ByVal Rdrname As String, ByVal nRdrLen As Integer) As Long' open communication session with the card in the reader Declare Function CardDisconnect Lib "gsdkpcsc.dll" _Alias "_CardDisconnect@0" _() As Integer' Closes communication session with the card in the reader Declare Function CloseReader Lib "gsdkpcsc.dll" Alias "_CloseReader@0" _() As Integer' Closes communication session with the card reader Declare Function CardDetect Lib "gsdkpcsc.dll" Alias "_CardDetect@4" _(ByVal pcExplanation As String) As Integer' Checks if card is in card reader Declare Function ResetCard Lib "gsdkpcsc.dll" Alias "_ResetCard@0" _() As Long' Reset the card Declare Function GetError Lib "gsdkpcsc.dll" Alias "_GetError@0" _() As Integer' returns information on last error that occured Declare Function SelJPNApp Lib "gsdkpcsc.dll" Alias "_SelJPNApp@0" _() As Integer' select JPN to read JPN data Declare Function SelJPJApp Lib "gsdkpcsc.dll" Alias "_SelJPJApp@0" _() As Integer' select JPJ to read JPJ data Declare Function SelIMMApp Lib "gsdkpcsc.dll" Alias "_SelIMMApp@0" _() As Integer'Select IMM to read IMM data '*************************************************************************'                            JPN section'************************************************************************* Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _Alias "_JPN_OrgName@4" _(ByVal pbOrgName As String) As Integer'original name in 150 bytes Declare Function JPN_MyKadName Lib "gsdkpcsc.dll" _Alias "_JPN_MyKadName@4" _(ByVal pbMyKadName As String) As Integer' 3 lines of name stored in blocks 0f 30+30+20=80 Declare Function JPN_KPTName Lib "gsdkpcsc.dll" _Alias "_JPN_KPTName@4" _(ByVal pbKPTName As String) As Integer' KPTName is 40bytes , 2 lines of name stored in blocks of 20+20=40 Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _Alias "_JPN_IDNum@4" _(ByVal pbIDNum As String) As Integer' ID number in 13bytes Declare Function JPN_Gender Lib "gsdkpcsc.dll" _Alias "_JPN_Gender@4" _(ByVal pbGender As String) As Integer' Gender is 1 byte(L for lelaki , P for perempuan) Declare Function JPN_OldIDNum Lib "gsdkpcsc.dll" _Alias "_JPN_OldIDNum@4" _(ByVal pbOldIDNum As String) As Integer' Old ID Number is 8 bytes Declare Function JPN_BirthDate Lib "gsdkpcsc.dll" _Alias "_JPN_BirthDate@4" _(ByVal pbBirthDate As String) As Integer' Date of birth is 4 bytes (numeric) Declare Function JPN_BirthPlace Lib "gsdkpcsc.dll" _Alias "_JPN_BirthPlace@4" _(ByVal pbBirthPlace As String) As Integer Declare Function JPN_DateIssued Lib "gsdkpcsc.dll" _Alias "_JPN_DateIssued@4" _(ByVal pbDateIssued As String) As Integer Declare Function JPN_Citizenship Lib "gsdkpcsc.dll" _Alias "_JPN_Citizenship@4" _(ByVal pbCitizenship As String) As Integer Declare Function JPN_Race Lib "gsdkpcsc.dll" _Alias "_JPN_Race@4" _(ByVal pbRace As String) As Integer Declare Function JPN_Religion Lib "gsdkpcsc.dll" _Alias "_JPN_Religion@4" _(ByVal pbReligion As String) As Integer Declare Function JPN_EastMsian Lib "gsdkpcsc.dll" _Alias "_JPN_EastMsian@4" _(ByVal pbEastMsian As String) As Integer Declare Function JPN_RJ Lib "gsdkpcsc.dll" _Alias "_JPN_RJ@4" _(ByVal pbRJ As String) As Integer *******************************************************/Edit: Added [vbcode][/vbcode] tags for clarity. - Hack

Calling Function For Command Button
www.codeguru.com
hi, i'm a newbie on programming. i am using smart card reader and have the sdk(gsdkpcsc.dll) for programming.then, i already wite down all the declaratiion for the module.i also have made the command button.my project is, i) when click at the READ button, it will start communication with smart card in the card reader, then it'll get the identification number from the smart card, 12 digit.then, the number appeared at text boxii) by clicking verify buuton,the 12 digit number is compared with the database with m Accessiii) if matches with databse, then it will send a unique charachter such as AEI at the serial port of my microcontrooler. this project is for 2 user.iv) if not match, then it says, access is denied.my problem s, i need help on the code lines for READ and VERIFY..can anyone help?READ > open session, commnubication, get dataVERIFY > match with database and send AEI(user 1), IOU(user 2) to serial port i need to get 12 digit numb for this function Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _my module code :/********************************************************Option Explicit'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' General Declaration'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Declare Function OpenReader Lib "gsdkpcsc.dll" Alias "_OpenReader@0" _() As Integer ' open communication session with the card readerDeclare Function cardConnect Lib "gsdkpcsc.dll" Alias "_CardConnect@12" _(ByVal port As Integer, ByVal Rdrname As String, ByVal nRdrLen As Integer) As Long' open communication session with the card in the readerDeclare Function CardDisconnect Lib "gsdkpcsc.dll" _Alias "_CardDisconnect@0" _() As Integer' Closes communication session with the card in the readerDeclare Function CloseReader Lib "gsdkpcsc.dll" Alias "_CloseReader@0" _() As Integer' Closes communication session with the card readerDeclare Function CardDetect Lib "gsdkpcsc.dll" Alias "_CardDetect@4" _(ByVal pcExplanation As String) As Integer' Checks if card is in card readerDeclare Function ResetCard Lib "gsdkpcsc.dll" Alias "_ResetCard@0" _() As Long' Reset the cardDeclare Function GetError Lib "gsdkpcsc.dll" Alias "_GetError@0" _() As Integer' returns information on last error that occuredDeclare Function SelJPNApp Lib "gsdkpcsc.dll" Alias "_SelJPNApp@0" _() As Integer' select JPN to read JPN dataDeclare Function SelJPJApp Lib "gsdkpcsc.dll" Alias "_SelJPJApp@0" _() As Integer' select JPJ to read JPJ dataDeclare Function SelIMMApp Lib "gsdkpcsc.dll" Alias "_SelIMMApp@0" _() As Integer'Select IMM to read IMM data'*************************************************************************' JPN section'*************************************************************************Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _Alias "_JPN_OrgName@4" _(ByVal pbOrgName As String) As Integer'original name in 150 bytesDeclare Function JPN_MyKadName Lib "gsdkpcsc.dll" _Alias "_JPN_MyKadName@4" _(ByVal pbMyKadName As String) As Integer' 3 lines of name stored in blocks 0f 30+30+20=80Declare Function JPN_KPTName Lib "gsdkpcsc.dll" _Alias "_JPN_KPTName@4" _(ByVal pbKPTName As String) As Integer' KPTName is 40bytes , 2 lines of name stored in blocks of 20+20=40Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _Alias "_JPN_IDNum@4" _(ByVal pbIDNum As String) As Integer' ID number in 13bytesDeclare Function JPN_Gender Lib "gsdkpcsc.dll" _Alias "_JPN_Gender@4" _(ByVal pbGender As String) As Integer' Gender is 1 byte(L for lelaki , P for perempuan)Declare Function JPN_OldIDNum Lib "gsdkpcsc.dll" _Alias "_JPN_OldIDNum@4" _(ByVal pbOldIDNum As String) As Integer' Old ID Number is 8 bytesDeclare Function JPN_BirthDate Lib "gsdkpcsc.dll" _Alias "_JPN_BirthDate@4" _(ByVal pbBirthDate As String) As Integer' Date of birth is 4 bytes (numeric)Declare Function JPN_BirthPlace Lib "gsdkpcsc.dll" _Alias "_JPN_BirthPlace@4" _(ByVal pbBirthPlace As String) As IntegerDeclare Function JPN_DateIssued Lib "gsdkpcsc.dll" _Alias "_JPN_DateIssued@4" _(ByVal pbDateIssued As String) As IntegerDeclare Function JPN_Citizenship Lib "gsdkpcsc.dll" _Alias "_JPN_Citizenship@4" _(ByVal pbCitizenship As String) As IntegerDeclare Function JPN_Race Lib "gsdkpcsc.dll" _Alias "_JPN_Race@4" _(ByVal pbRace As String) As IntegerDeclare Function JPN_Religion Lib "gsdkpcsc.dll" _Alias "_JPN_Religion@4" _(ByVal pbReligion As String) As IntegerDeclare Function JPN_EastMsian Lib "gsdkpcsc.dll" _Alias "_JPN_EastMsian@4" _(ByVal pbEastMsian As String) As IntegerDeclare Function JPN_RJ Lib "gsdkpcsc.dll" _Alias "_JPN_RJ@4" _(ByVal pbRJ As String) As Integer*******************************************************/

Samsung Fascinate :: Setting Up The Facebook Function?
androidforums.com
i've having a really tough time getting my phone to link up to the facebook widget thingy.... i've tried all sorts of things but it wont link up...

Sony Ericsson Xperia X10 :: Importing Address Book In Phone Email Function
androidforums.com
I have set up my sky.com email address as the default email within the function of the phone. All working fine other than I don't seem to be able to import my address book into the phone email function.

Android :: Link To Another Package's Function?
stackoverflow.com
I've got two android apps, one with a public void. How would the other app call this function?

ActionScript 2.0 :: What Does Prototyping A Function Do
www.kirupa.com
What does prototyping a function do?i got this from the tile based games site. game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1;[code]....

Web Forms :: Are Server.Htmlencode,Urlencode Useless Functions!
forums.asp.net
For protect against  XSS  we should make all input from textboxes thoht Server.Htmlencode function. 1) If i let a input go thorgh Server.Htmlencode and save it in database. But what happen if i letter show this input data from database on browerser ...if database input data have <script> it will then make Xss!!!!.  2) I use Server.Htmlencode.. and the user write <b>ss<b>...  (label.text = userinput.text;)  and i WANT to show ss in browser. What shuld i do for make this happen ?? 

Call Javascript Function From Code Behind After Server Side Code Executes
stackoverflow.com
I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.

How To Enable These Functions
www.webhostingtalk.com
My site is running with php scripts It's work fire at bluehost but get some error when i move to new VPS . Quote: Warning: fputs(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 171 Warning: fclose(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 173 Warning: fputs(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 225 Warning: fclose(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 227 I want to enable these functions fopen(),fputs(),fclose(),fputs(),fclose() but i don't know how to enable them .Could you tell me details

Javascript - Callback Function With Parameters
stackoverflow.com
I'm using AJAX Page Methods, but I can't seem to be able to pass the needed parameters: function getFavStatus() { //favs is a list of DOM <imgs> that I want to modify their img.src attribute for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt,setFavImg(favs[i])); } } function setFavImg(fav, response) { fav.src = response; } The problem that I can't figure out is how to use the "response" from PageMethods, AND pass the DOM object to the callback function. I've also tried doing something like this: function getFavStatus() { for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt, function (response) { favs[i].src = response;}); ); } } In this case, the response works properly, but i is always > favs.length, because it has already iterated through the loop... Edit: My PageMethods.isFavorite signature is: [System.Web.Services.WebMethod] public static string isFavorite ( string p_id )

Web Forms :: Doesn't Support The Format() Function?
forums.asp.net
var date1 = new Date(document.forms.a1.startDate.value); alert(date1.getDate() + '...' + date1.getDay() + '...' + date1.getMonth() + '...' + date1.getYear()); The startDate field has 10/18/2009 and the alert() gives 18...0...9...2009Why does getMonth() return 9 instead of 10??When I type in 101809 in the startDate field, how can I convert it to 10/18/2009?I google and see example of the format() function. I try date1.format('mm/dd/yyyy') but it gives error.It doesn't support the format() function.

How To Pass ID To A Vb.net Function Or Sub
forums.asp.net
I have on my aspx page a lots of controls that have runat = "server" on them...like<div id="mydiv1" runat="server"/>In the code behind I want to pass this ID to a vb.net function or sub ?like Private sub mycode(mydiv as ???) end subSo i would do this : mycode(Me.mydiv1)HOws this done ? NOTE: I have posted three times, and the other two never got into the forum !