|
I am haveing problems trying to install....
I can not get the .exe to install on my server 2003 box.
And i do not see an msi....
Got any suggestions for a php newbiee??
erik
|
|
|
|
|
I found a install site that looks promising..
will be back when i get this under control..
erik
|
|
|
|
|
Well i am php installed and ready....
I am now on my way to php land....
I have been meaning to get my hands a little dirty with php for a while and now is as good as any...
Lets rock!
erik
|
|
|
|
|
Do you know the basics of the language?
Brad
Australian
- bryce on "Problems with Code Project"
*sigh* Maunder's been coding again...
|
|
|
|
|
Hello, I want to write an ISAPI extension dll using MFC (in Visual Studio 2005). every book I read, said we should create an MFC ISAPI Server extension project from File->New menu. but my Visual studio has not this template. what should I do?
please help.
|
|
|
|
|
I m trying to develope a webpage that can extract information from a ibm db2 database. The hardcoding is in C# but the web design is in html (I am using Visual Web Developer)
This is the code for connection to IBM DB2 database using the ODBC driver. However there is no output (no error either).
Is there anyway I can link this output to display it in my website?
Thanks alot!!!
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data;
using System.Data.Odbc;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string connectionString =
"DSN=infofyp;" +
"UID=db2admin;" +
"PWD=palmolive";
IDbConnection dbcon;
dbcon = new OdbcConnection (connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
//connecting to the table info_db2
string sql =
"SELECT p_id " +
"FROM deepa.info";
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while (reader.Read()) {
string Identification = (string) reader ["p_id"];
Console.WriteLine ("Indentification: " + Identification);
}
//cleaning up
reader.Close();
reader = null;
dbcmd.Dispose();
dbcmd = null;
dbcon.Close();
dbcon = null;
}
}
|
|
|
|
|
Please do not spam the entire site. This is an ASP.NET question, so ask in that forum, and no-where else, please.
I take it this is hobbyist code, not for use in the real world ?
To display your output, you need to assign it to a DataGrid, or other repeating control, and format it to show your result.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It is actually a html problem. I need to display the output of my database in my website (hence the web development category)
I don't think DataGrid is a html function. I read somewhere that you can display your information with a database link. Is that possible and is it applicable in this case?
|
|
|
|
|
I recommend two things.
1 - buy a book
2 - when you're not sure, and someone gives you advice, google it.
You are not worried about HTML. If you were, you would not be using ASP.NET. ASP.NET worries about the HTML, by and large. A DataGrid, a GridView, or even a Repeater, are all controls that take a datasource and use it as the basis of rendering an HTML table, containing your data.
22teddy22 wrote: I need to display the output of my database in my website (hence the web development category)
This category is for all non ASP.NET web dev questions. You're using ASP.NET, hence my suggestion that you use the right forum. This is 'kind of' right, but more people will see it if you post in the right place.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: This is 'kind of' right, but more people will see it if you post in the right place.
Or at least, more people who have anything approaching an interest in replying...
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
please help me hixx...hixx
I'm carrying out a project "Testing system"
Problem appears when users press F5 button (or Right click/refresh page) in order to refresh the webpage.
How to block these things...
many thanks...
|
|
|
|
|
You can't, not really. you can try to fight the user if you like, but you'd do better to build an app that works the way people are used to a browser working.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
To protect the right click
In the Form Load set the properties
oncontextmenu=false
|
|
|
|
|
oncontextmenu=false
set this property in the form load
|
|
|
|
|
It IS possible to change the way a client browser behaves - but you REALLY REALLY SHOULDN'T DO IT....NO REALLY...I MEAN IT!!!!!
As Christian mentioned above, it's a really REALLY bad thing to do, and all you'll end up with are p1ssed off users....
If you're running into problems that require this kinda solution, I'd suggest looking again at your design...these problems can generally be made to "go away" with the correct design.
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi,
I have this problem. I'm using Windows authentics and using this code:
Page.User.Identity.Name.Split('\\')[1] and I get Login name but I'm Not supposed to use Loginname I'm supposed to use username is there anyway I can Do it
Thanks
|
|
|
|
|
i have problem in retrieving morethan one file my app. does not show all files togation when i call them on page from database even i stored them from app.
|
|
|
|
|
|
When my page load in client. i want run load again a file javacript so dont reload page on server.
How can i do that by javacript.
|
|
|
|
|
Please read Chris Maunder's post above and then repost.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I think what you mean is:
You have a load function in a javascript file that runs when the page loads. You want to run this function again without reloading the page? (I am psychic )
You have to call the function..... either with an event handler on some element on the page or you can use setTimeout to run it after a certain amount of time.
|
|
|
|
|
Hi everyone!
I've got the following:
function setup_event(elem, eventType, handler)
{
(elem.attachEvent ? elem.attachEvent("on" + eventType, handler) : ((elem.addEventListener) ? elem.addEventListener(eventType, handler, false) : false));
}
function detach_event(elem, eventType, handler)
{
(elem.detachEvent ? elem.detachEvent("on" + eventType, handler) : ((elem.removeEventListener) ? elem.removeEventListener(eventType, handler, false) : false));
} This works perfectly in all browsers.
Trying to "shorten" things:
function setup_event(elem, eventType, handler)
{
(elem.addEventListener || elem.attachEvent)((elem.attachEvent ? "on" : "") + eventType, handler, false);
}
function detach_event(elem, eventType, handler)
{
(elem.removeEventListener || elem.detachEvent)((elem.detachEvent ? "on" : "") + eventType, handler, false);
} This works in MS IE; in Forefox & Opera it doesn't. Why?
-------------------------
Don't worry, be happy )
|
|
|
|
|
The zip file of this is at http://gpssharing.com/cookie.zip.
The test is at
http://gpssharing.com/cookie.php
Run the prog, then refresh the page, so the cookies will be read after being set.
can you see the two cookies 'fred' and 'test'?
Works fine on 4.4.6 under windows and 4.4.4 under Linux
Thanks in advance.
document.cookie = 'test=hello world; path=/';
_COOKIE Array<br />";
print_r($_COOKIE);
echo "_COOKIE['test'] " . $_COOKIE["test"] . "<br />";
echo "_REQUEST['test'] " . $_REQUEST["test"] . "<br />";
echo "_SERVER['HTTP_COOKIE'] " . $_SERVER["HTTP_COOKIE"] . "<br />";
echo "";
//phpinfo();
?>
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
Mate that s trivial stuff... it will work.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Bradml wrote: it will work
Want to bet!!!!
I just had a reply from my ISP,
I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted.
It looks like one thing has been fixed, breaking something else!
Hopefully other will 'learn' from this, at least my ISP did check out my test prog and admit to the problem, and have given me a solution.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|