|
Turned out to be a lot easier than I thought, just had to google harder!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hi,
I am using an external css file in my webpage which contains classes defined at control type level.
for eg:
INPUT
{
font-size: 12px;
font-family: arial,verdana;
background: #ffffff;
border: 1px solid Gray;
}
This class gets applied for each and every input control over my page. What i want is some checkboxes on my form should not inherit this class( which it actually does by default) and have there default style. I cant change the external file, so the changes that i should make are in my file itself. Does any body here knows how do i achieve it???
When you fail to plan, you are planning to fail.
|
|
|
|
|
In our Intranet environment (IIS 6.0), we need to be able to start SQLServer agent jobs on remote servers on demand.
We have an option that works, sort of, but leave much to be desired.
Does anyone have a working environment they would care to share?
Available options here include regular ASP and ASP.NET.
Thanks in advance,
Tim
|
|
|
|
|
I think the easiest way to do this is to write a stored procedure which calls msdb..sp_start_job to start the job. You can easily call this sp from asp.net.
Wout Louwers
|
|
|
|
|
hi all,
i develope a web application in visual studio 2005, my problem is
when i click save button(server side) to insert data into database the insertion done,
but if i click F5 or (Refresh,Reload) for the page the insertion done another time( insert the data twice).
how i can solve this problem?
thanks to all
|
|
|
|
|
You need to check whether page is postback.
Put your database insertion code inside following condition.
if(!IsPostback)
{
}
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
i do that but the first time insertion in this case not done
|
|
|
|
|
Use a hidden field. Check the value of the field before you do the insert. If the field is blank, do the insert and set hidden field value to "inserted", else don't insert.
|
|
|
|
|
After saving the information in database simply redirect to the current page. For instance, if your page name is insert.aspx then after saving the record write :
Response.Redirect("insert.aspx");
This will prevent the page from raising postback on refresh.
|
|
|
|
|
Hello,
I am working on Classic Asp, using XMLDOM in javascript. This work perfectly with http , but when i try to use https, it throws error.
Please guide me, how can i solve this. Thanks.
|
|
|
|
|
I would start by learning how to ask a question. You could include the code that is not working for example. And instead of saying:
brijraj wrote: it throws error.
you could include the actual errormessage.
Wout Louwers
|
|
|
|
|
Hi,
Well i am getting Error below error using Microsoft.XMLDOM in javascript,
Interesting part is -- this working perfectly in http but not in https.
Error Number : -2146697208
Error Description : "The download of the specified resource has failed."
Thanks.
|
|
|
|
|
I am still missing the source of the script. You do not have to include the whole script, but if you include the lines where the error message occurs it could clarify things. So please include the source and tell us at which line the error occurs.
Wout Louwers
|
|
|
|
|
var source = new ActiveXObject("Microsoft.XMLDOM");
source.load(TargetUrl);
alert(source.parseError.errorCode);
alert(source.parseError.reason);
************in TargetUrl i am using asp page which return me xml.
Once source.load is done then i am getting error.
i am checking source.parseError.errorCode and source.parseError.reason to check error.
Thanks
|
|
|
|
|
And what happens if you open the TargerUrl in your webbrowser? does it return valid XML?
Wout Louwers
|
|
|
|
|
Yes, i had check the TargetUrl in https, it returns data.
But when i am using Microsof.XMLDOM, its not loading data.
Please guide me thanks.
|
|
|
|
|
could you also answer these questions?
The webpage fom which the javascript is run, dows it also use https?
Is the data valid XML?
What happens if you set validateOnParse to false ?
Wout Louwers
|
|
|
|
|
Sorry for late reply,
Well i found the issue.
i was using below vbscript in Asp page.
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
Due to this page was not displaying.
Its working fine now.. Thanks...
|
|
|
|
|
I am not sure if I am asking this in the right forum or not, so feel free to direct me to another one if I am in the wrong place.
How do I make a file viewing application that embeds into Internet Explorer just like Adobe Reader and some other applications does? I know that it has something to do with ActiveX but despite spending an awful lot of time searching for information about it I have not found what I am looking for. There is a lot of information around about making ActiveX controls but that is not really the same thing if I have understood it right.
What I would like to build is a simple image viewing application with a few basic editing commands like rotate and so on. The application should have toolbars and drop down menus and last but not least: It should open up embedded into Internet Explorer. How do I accomplish this?
/Urban
|
|
|
|
|
hi.
i m having problem with post back.
i m having my .vb file in which i got my edit button even sub and save btn event sub.
i m declaring ( dim flag as integer =-1 )on page load event. on clicking on edit button flag becomes 1
and in save btn event i got my condition
if flag=1 then
<my code="">
end if
when i hit edit flag becomes 1 and on clicking on save button, the button's postbck event is called and due to post back the flag is initialised to -1.
i know what is postback and how it works .but m not aware how to handle it..
can anyone help how to come out of this situation??
|
|
|
|
|
mominafiz wrote: i know what is postback and how it works .but m not aware how to handle it..
Methinks this seems like a contradiction.
|
|
|
|
|
Your page_load event will get called each time there is a postback. So when you click your save button it's setting your flag back to -1.
you should look at:
page.isPostBack
|
|
|
|
|
Hi,
I think I am trying to do something here that CSS doesn't allow, but would like to ask, anyway.
Just as CSS enables separation of style from content, I also like the idea that within CSS I could define a color table, and then use the names of those colors in the CSS styles applied to various DOM objects.
I've been studying the W3C CSS spec, consulting various CSS websites, but haven't found any way to do what I want : perhaps it's not possible ?
I have a nice color scheme cooked-up and exported using Petr Stanicek's great ColorSchemeDesigner site[^].
I can insert it into a CSS style sheet like so :
/* generated using http://colorschemedesigner.com/ */
.primary-1 { background-color: #956500 }
.primary-2 { background-color: #624D22 }
.primary-3 { background-color: #4D3400 }
.primary-4 { background-color: #AB7A12 }
.primary-5 { background-color: #AB7E20 }
.secondary-a-1 { background-color: #081865 }
.secondary-a-2 { background-color: #1A2143 }
.secondary-a-3 { background-color: #010A35 }
.secondary-a-4 { background-color: #172B86 }
.secondary-a-5 { background-color: #223386 }
.secondary-b-1 { background-color: #062763 }
.secondary-b-2 { background-color: #192741 }
.secondary-b-3 { background-color: #011333 }
.secondary-b-4 { background-color: #153C83 }
.secondary-b-5 { background-color: #1F4383 }
Where each color is now a "class."
But I can't use those class names as I thought I might :
a:link
{
color: silver;
background-color: .secondary-b-5;
}
a:link
{
color: silver;
background-color: secondary-b-5;
}
The above two examples will have no effect on link color. And I can't find any way to indicate that a:link should somehow "inherit" from the class ".secondary-b-5"
Is there any way to achieve the kind of abstraction I am trying for here ?
thanks, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
I have little knowledge about css class.
But you can try pseudo class of css.
Css Pseudo Classes[^]
If this one does not help you, I do not think there is any other way
to satisfy your requirement.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Thanks, Jinal, for your reply. I've gone through the CSS pseudo-classes, and, while there are many interesting things in there, I am afraid that addressing this issue is not implemented in any of them.
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|