|
Write a javascript function and u check there whether the checkbox is checked or not and then show the alert msg and add this
Button1.Attributes.Add("onclick", "Myfun();");
Hope this helps u??
|
|
|
|
|
Hi
try to put your Add attribute code to put under page load as given below and i am sure your prob got solved.and remove code from imgsub_click().
if (!IsPostBack)
{
ImageButton1.Attributes.Add("onclick", "javascript: return window.alert('Agree Terms & Conditions to proceed');");
}
thanks
bhavesh
|
|
|
|
|
Hello
I am storing images in SQL 2005 using the Varbinary(Max) type, however I am looking for a way to display the images on an Image within a template for a datalist.
So far the only suggestions I have found is to save the image then use the fiels URL to set the Image's ImageURL location but this defeates the point from my perspective of saving the Images in the DB.
If somebody could point me in the direction of the best way to do this I would be grateful.
|
|
|
|
|
There's really no other way. Your best bet is to store the images locally and store the paths in your database. You can do a BinaryWrite to pass a byte array that represents a single image back, if that's all you intend to display, but you can't do that for images in the middle of a page.
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 )
|
|
|
|
|
Hi All,
I am build a treegrid using Javascript and whenever I refresh the page or running it for the first time I get the error saying:
"A script on this page is causing Internet Explorer to run slowly, If it continues to run, your computer may become unresponsive.
Do you want to abort the script?"
and Yes No Buttons
Can anyone tell me what might be the problem??
Thanks in advance....
|
|
|
|
|
The problem is obvious. Your script sucks. It's taking too long and IE is reporting the fact.
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 )
|
|
|
|
|
Is there any way to remove that error??
|
|
|
|
|
You can probably tell your local IE that you don't mind if it takes 5 minutes to run. But, you can't stop others seeing it, no. You have to repair the script.
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 )
|
|
|
|
|
Hi,
Functional Requirement is this, We need to display the Data in gridview control in hirerchy.What exactly play on code projects of subject and messge grid in discussion page.
Expecting clue if Is Any.
Thanks & Regards
Tarini Singh
Sr. Software Engineer. (IT)
|
|
|
|
|
I dont know how much is this helpful but I think u r looking something like this. Check this:
http://www.codeproject.com/jscript/wsGridCtrl.asp
|
|
|
|
|
Hello all
I have two websites and both the sites have common userid and password but different databases i.e user created on one site is automatically created on the other site. now what i want is that if the user is logged in on one site and if he clicks on some link for the other site, he should not be required to log in on the other site. His session of the logged in site should be carried to the other site also. Is is possible
Regards
|
|
|
|
|
Do the sites run on the same server ? If so, you should be able to centralise your membership database so it tracks who is online for both. You could also use a cookie, but that is hideously insecure.
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 )
|
|
|
|
|
Yes, the sites are on the same server. Membership database? U mean to say that if a user is online it should be stored in the database or something like that........
Regards
|
|
|
|
|
sabby2006 wrote: U mean to say that if a user is online it should be stored in the database or something like that........
Yes, that's about the only way you will do it. The database is what the sites have in common, so it's where they can look for member info. They will have seperate sessions, which is what you'd expect and want. Unless you host one app, and the two actual apps are just subfolders of the main root.
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 )
|
|
|
|
|
can u suggest me some useful link for the complete help on this
Regards
|
|
|
|
|
No, I've never heard of anyone doing this, or read anything about it.
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 )
|
|
|
|
|
while clicking a submit button
it needs to pop-up a box based on checking a checkbox
i have added till here:
------------------------
imgbtnSub.Attributes.Add("onClick()", "window.alert('Agree Terms & Conditions to proceed');");
Thanks in advance,
Priya.
|
|
|
|
|
imgbtnSub.Attributes.Add("onClick", "window.alert('Agree Terms & Conditions to proceed');");
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
thanks, it works good.
Thanks in advance,
Priya.
|
|
|
|
|
Hi,
I am new to asp.net. I created two .aspx file which is liked with each other. And the solution have .html files also.
I trasfered all to the host. I HAVE PROBLEM in viewing the .aspx files from the hosting server. It is very good to display the .html files
U can see the erro from http://www.everesttent.com/LoginFeed.aspx but it is nice in http://www.everesttent.com/aboutus.htm.
Can U give me an idea to solve this problem.
Senthil S
Software Engineer
|
|
|
|
|
Your host does not support ASP.NET, so the pages are not being run through the framework, but just being served verbatim.
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 )
|
|
|
|
|
on which version of asp.net u are working ?
and yes please install framework for the same and then try to view your aspx pages
thanks
bhavesh
|
|
|
|
|
Hi,
I have a grid view and one of the templatefield header is for "delete image". I want to remove this TemplateField column for print purpose.
Please suggest
Pavas
|
|
|
|
|
Just have a 'print view' setting, and use that to dynamically include that column or otherwise. Not sure if the grid view will play nice with you, but I do this with repeaters all the time.
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 did not understand the concept. Could you please tell me what does dynamic means...
Is there a sample code where I can look at.
Pavas
|
|
|
|