|
Javascript is case sensetive. Change Alert to alert .
---
single minded; short sighted; long gone;
|
|
|
|
|
friend,
Guffa is correct....change the "Alert" to "alert" this will definately help you...
(By mistake i was write "Alert")
regards,
koolprasad2003
If the answer is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
I hav written code using cookies
how to expire that cookie at the moment
please send me reply i will be helpful to you. confused:
multimedia9
|
|
|
|
|
multimedia9 wrote: how to expire that cookie at the moment
When user is logging out ? Or after some interval ?
|
|
|
|
|
Hi frnd,
thank u
but i want coding behind that signout
i will be happy if u reply to this
multimedia9
|
|
|
|
|
The best way the cookie to delete is expire it
Use this code.
cookie.Expires = DataTime.now.AddDay(Number of Day);
This will expire your cookie.
Here Number of Day is the Negative value this you priviously given To your cookie when you create..
Hope this will help you.
|
|
|
|
|
Hi frnd,
Thank you very very much, once again thanks.
i hav one more problem, i visited ur site thats nice. please help me by answering the next question in the forum.
multimedia9
|
|
|
|
|
Hi friend sorry but i didnt fine your question..
if you have problem then you can send it againg or mail me by to my email
|
|
|
|
|
static string conn="provider=microsoft.jet.oledb.4.0;data Source="+ Server.MapPath("/data/db1.mdb");
OleDbConnection cn=new OleDbConnection(conn);
please help me, where did i make wrong in the above instructions and please solve this.
it show error that:'System.Web.UI.Page.Server' denotes a 'property' where a 'class' was expected
www.mywebsite.com/data/db1.mdb
how to access the db1.mdb file using Asp.NET using c# please help me i will be thank full to you.
please answer me with above example
multimedia9
|
|
|
|
|
HI,
R u getting runtime error or compiletime error?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi
Iam getting compile time error
|
|
|
|
|
Hi friend sorry but i never got this type of error while connection string
you r doing right.
I just thinking where you done this coding is it in the class or out of class method??
May be that's only problem..
Sorry for this..
|
|
|
|
|
static string conn="provider=microsoft.jet.oledb.4.0;data Source="+ Server.MapPath("/data/db1.mdb");
OleDbConnection cn=new OleDbConnection(conn);
please help me, where did i make wrong in the above instructions and please solve this.
it show error that:'System.Web.UI.Page.Server' denotes a 'property' where a 'class' was expected
www.mywebsite.com/data/db1.mdb
how to access the db1.mdb file using Asp.NET using c# please help me i will be thank full to you.
please answer me with above example
multimedia9
|
|
|
|
|
|
Hi frnd
Thank u
They hav given the general connection strings,
these are used to connect to local host, but i need to connect to webserver.
if you reply with appr answer i will be very happy, & please try to know the answer by asking ur colleagues.
i will be thank ful to you if you consider this request.
multimedia9
|
|
|
|
|
Hi
1. After deploying your web application in server and link will be like: http://10.57.89.15/TestWebApplication/page.aspx
2. The Virtual directory (i.e 'TestWebApplication' as in the above code) you created in server can be modified using Web.Config. Add a key and value to store virtual directory name. Use this key in your code-behind file. ConfigurationSettings.AppSettings
3. If your .mdb file is in sub-folder of your web app i.e., in App_Data. Then that file can be accessed using the foll. code
<br />
string StrDataSource = Server.MapPath("\\TestWebApplication\\App_Data\\db1.mdb");<br />
Hope you got it.
Harini
|
|
|
|
|
hi
thank u
string StrDataSource = Server.MapPath("\\TestWebApplication\\App_Data\\db1.mdb");
this instruction gives an error that " 'System.Web.UI.Page.Server' denotes a 'property' where a 'class' was expected ".
Please solve this problem.
thank u
|
|
|
|
|
Hi
It was working fine for me when I give Server.MapPath.
Try change Server.MapPath to HttpContext.Current.Server.MapPath
Harini
|
|
|
|
|
ya
its working
thank u very very much for avoiding such error, by using HTTP.........
could u plz help me in another prob
My website contains
1)let me take my website ftp address 10.29.398.456 & http address www.mydomain.com
2)under which
/db /logs /wwwroot folders are there
3)under /wwwroot
/data /mail and some other folders
4)under /data
/db1.mdb is there
by using above example
please write
configurationSettings & connection string
bcoz even though it not showing error it shows error at runtime
thank u very much, I hope u will reply for this.
multimedia9
|
|
|
|
|
I'm just starting to get into ASP.net, so forgive my noob-ness. Normally, I use straight C# for client apps.
I have a little project I'm trying to start, but things aren't working right (even with VisualStudio).
What I want to do is this:
- a client C# app sends a string to an aspx page
- the aspx page sends the string to a server-side C# file
- the server-side cs file processes the string and sends back a string to the aspx file
- the aspx file sends the processed string to the client C# app
I have to have the server-side C# file because it won't let me use some Windows.Forms objects in just an aspx file.
Where do I start at accomplishing this?
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
I think you want to pass some string to the server and process it there and return to the client app ? If so no need to do like this. You can go for webservices. Create a webservice that accepts this string value. Do the processing inside the webservice method and return the answer.
Heritos Gger wrote: the aspx page sends the string to a server-side C# file
- the server-side cs file processes the string and sends back a string to the aspx file
When an aspx file is loaded, I think it will call cs file automatically. I am not getting what do you mean by sending string to a server side c# file ?
|
|
|
|
|
When I use VisualStudio, I add a class to the website project. It adds a cs file to an App_Code folder (or something similar).
You think I should use a webservice instead? I'll look into it. Thanks for the info!
Basically, the client app should pass a string to the server, and the server should process it and return another string. That's basically it (and I don't know how to do it). The whole thing about an aspx file and a cs file is from what I was able to figure out by myself. If there's a better way, I'm more than willing to give it a try.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
How add web control for printing ?
How Creare MessageBox for warning?
-- modified at 23:21 Wednesday 6th June, 2007
|
|
|
|
|
wongeva wrote: How Creare MessageBox for warning?
Do you mean alert("Message") in javascript ?
|
|
|
|
|
<asp:datalist id="DataList1" runat="server" datakeyfield="ProductID"
="" datasourceid="ObjectDataSource1" enableviewstate="False">
If there are 3 attributes key serve as the table's primary key. How can i put the DataKeyField with 3 attributes name?
Who can help me?.......please
THANKS
|
|
|
|