|
USe it Once
response.write("window.alert('Agree Terms & Conditions to proceed');")
|
|
|
|
|
this is not working , i tried
Thanks in advance,
Priya.
|
|
|
|
|
It's working ,Now I'm checked it in My prgm
|
|
|
|
|
where shud i give tat, inside code-behind or inline html
Thanks in advance,
Priya.
|
|
|
|
|
Response.write() is working in Code behind Only.So Place that coe in CodeBehind
|
|
|
|
|
nothing happens
Thanks in advance,
Priya.
|
|
|
|
|
Page.ClientScript.RegisterStartupScript(this.GetType(), "pop-up", "alert('Agree Terms & Conditions to proceed');");
Try this u got popup messge.
if your prob solved the let me know
thanks
Bhavesh
|
|
|
|
|
For something like this you should use a confirm dialog rather than an alert. Confirm gives you the chance to handle yes and no responses differently. I.E No to agreeing with terms, exits site, yes continues.
only two letters away from being an asset
|
|
|
|
|
Priya Cool wrote: Page.ClientScript.RegisterStartupScript(this.GetType(), "pop-up", "javascript: return window.alert('Agree Terms & Conditions to proceed');");
I think this will run when page will be loaded i.e. alert will be displayed as soon as the page will be loaded to the browser
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
i tried this, not pop-up ing,
just like that it writes, that too as:
javascript: return window.alert('Agree Terms & Conditions to proceed');
Thanks in advance,
Priya.
|
|
|
|
|
why want return value of this alert?
if u need return value then use confirm dialogue
try this if your prob not solved then please explain me your exact prob please
Page.ClientScript.RegisterStartupScript(this.GetType(), "pop-up", "doit();");
function doit()
{
if(window.confirm('Agree Terms & Conditions to proceed'))
{
//alert('OK');
return true;
}
else
{
// alert('Cancel');
return false;
}
}
THANKS
|
|
|
|
|
i tried, it says 'function' not found.
Thanks in advance,
Priya.
|
|
|
|
|
can please send me page in which you have written code and what u required
my email id is = bhavesh3184@gmail.com
thanks
|
|
|
|
|
This is how it should look:
Page.ClientScript.RegisterStartupScript(this.GetType(), "pop-up", "window.alert('Agree Terms & Conditions to proceed');", true);
The last parameter determines that a script tag is added around the code.
The javascript: protocol is only used when you put Javascript code in an URL. If you use it anywhere else, it's treated as a label instead.
You only use return when returning from a function.
---
single minded; short sighted; long gone;
|
|
|
|
|
I'm Getting Different XML files.So I want to Create a single XSL file For all those XML Files..How Can I do?
|
|
|
|
|
Best thing you can do is not cross post. You have already asked this question in the appropriate forum.
only two letters away from being an asset
|
|
|
|
|
hi
i am successfully uploading a image and that path is stored in label
Now what i want is to store that label path(image path) in database not image only path
regards
kishore
|
|
|
|
|
hi
You can store the path as one string.take ImagePath Column Datatype as String
dr["ImagePath"]=Lable.text
Jintal Patel
|
|
|
|
|
store it in a varchar field
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
Server.MapPath(Request.ApplicationPath)
FileUpload.PostedFile.FileName
using above two lines code you will get the image Path
|
|
|
|
|
Hi,
I am able to run an application from my local system. But when i keep the same application in the server, i am getting runtime error. Please help me.
Thank u
|
|
|
|
|
If you're moving the app to another system, it's obviously not an ASP.NET app. When yuo ask this in the right forum, try providing some more details. Is .NET installed on this machine ? What sort of error do you get ? Does the app run at all ( that is, do you see the UI ) ? etc.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
I am sorry for not being clear.
I placed my project in the server and now i am trying to run one of the asp.net page from some other system. Then i got runtime error. But when i do the same thing from my local system in which i developed the application, it worked fine.
And for ur information, .net is installed in the server also.
And the page which i am trying to open consist of datagrid and some coding to send mail.
Thank u
|
|
|
|
|
It is probably the version of .NET the web server is using.
In the IIS configuration, the ASP.NET tab, change the .NET version to 2.0.
NOTE: This may break older web pages on the server that need 1.1.
You will need to get into application pools in that case.
Edit: (Assuming of course you already have the site set up for ASP.NET.)
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
|
|
|
|
|
i m sending a link:
www.raisarplazaithub.com, this site is under construction.
ok first login with userid=abc,password=abc and then click on classified link and then place ur ad n thrn place ad after this a widow will open n now fill all entries, u will see at the mean time session will time out and page directecto home page.
plz follow these step ,
after this if u find the problem then plz n plz reply me.
this is web config file:
<configuration>
<appsettings>
<trace enabled="false" requestlimit="10" pageoutput="false" tracemode="SortByTime" localonly="true"> <sessionstate mode="InProc" stateconnectionstring="tcpip=72.36.151.90:42424"
sqlconnectionstring="data source=server;UID=uid;PWD=pwd"
cookieless="false" timeout="20">
<httpruntime executiontimeout="10000" maxrequestlength="6096" usefullyqualifiedredirecturl="false"
minfreethreads="30" minlocalrequestfreethreads="4" apprequestqueuelimit="100" enableversionheader="true">
<globalization requestencoding="utf-8" responseencoding="utf-8">
<pages validaterequest="false" enableviewstatemac="true">
<machinekey validationkey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902" decryptionkey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC"
validation="SHA1">
thanks.
-- modified at 7:49 Thursday 4th October, 2007
|
|
|
|