|
Hi !
I need to create the HttpModule that will work not for specific application, but rather for the whole site, like ISAPI filter defined on the Web Site level.
How I can register it without application, and hence without web.config?
Seems to be simple question, but I burned away enough time looking for the answer in the internet (including CP site) with no luck. All examples end up in application and it's web.config.
May be it is evident, and I simply too dumb to see it?
Thanks in advance.
Regards,
Gennady
My English is permanently under construction. Be patient !!
|
|
|
|
|
hi
You should know how the native asp.net httpmodules were registered to
the websites and register your own like them
I think that they were registered in Machine.config file
Hope to be useful
Mohammad Khansari
modified on Thursday, January 7, 2010 3:11 AM
|
|
|
|
|
Hi !
Thanks for your response and sorry for delay - I had no access to the internet.
Yes, this is one of methodes that I thought about. Another is - place the short web.config
to the root of web site. I'm not sure that any one of these methodes is right, so I wanted to
get the "authoritive" answer. I'm new in this field, so when my first HttpModule will fail to
work, I'd like to exclude the registration mistakes. At least.
Regards,
Gennady
My English is permanently under construction. Be patient !!
|
|
|
|
|
My page uses an asp .net menu that is not enabled like this:
|
|
|
|
|
Hi,
You are using it correctly but just one mistake you have made is making the Menu disabled in server side.
Use
<asp:Menu disabled="true"
Rather than
<asp:Menu Enabled="False"
Because when you make a control disable from server side you will not be able to get it from client side.
Also try using getElementById only in place of getElementByIdWithReplaceCheck if it does not work out.
Hope it Helps.
Regards,
Kaushal Arora
|
|
|
|
|
|
<p>Hi,</p><p>Try this: <font face="Verdana">getElementByIdWithReplaceCheck("ctl00_Menu1").visibility= false;<br /></font></p><p><font face="Verdana">hope this helps.</font></p>
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 9:00am.
|
|
|
|
|
|
Do the following thing :
step 1 :load file
FileInfo fileinfo = new FileInfo(yourfilePath);
step 2 : open file using jet provider
string strSql = "SELECT * FROM [" + fileinfo.Name + "]";
string strCSVConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileinfo.Directory.FullName + ";" + "Extended Properties='text;HDR=No;'";
step 3 : load data set
OleDbDataAdapter oleda = new OleDbDataAdapter(strSql, strCSVConnString);
DataTable dtbCSV = new DataTable();
oleda.Fill(dtbCSV);
step 4 : wite to xml
dtbCSV.WriteXml()
|
|
|
|
|
yes u r right, when we are using datatable/dataset.
But i want any other way without using the datatable/dataset...b'coz it will consume much memory...
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
|
Hi All,
I want to to develop HTML editor in ASP.net page where user can write his template can make a define his own size own font
For this i m using tinymce but this is giving very weird behavior.
thanks and regards,
Amit Patel
|
|
|
|
|
Amit Patel1985 wrote: For this i m using tinymce but this is giving very weird behavior.
With this amount of information how do you expect anyone to help?
Bob
Ashfield Consultants Ltd
Proud to be a Code Project MVP
|
|
|
|
|
Hi All,
if any one used the FreeTextBox please help me to find out how to enable the print preview.
Thanks and regards,
Amit Patel
|
|
|
|
|
Hi all,
I have a ConfirmButtonExtender that I need to display only if a start time dropdown is later than an end time dropdown. i.e. Start time = 23:00 and the End time = 01:30. I need the ConfirmButtonExtender to display, but if Start time = 13:00 and End time = 14:00 then it should not display. Is there a way to do this in C#?
Thanks in advace for your help,
Lee
|
|
|
|
|
Make Use Of JavaScript..!
Use OnClientClick..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I forgot to mention this is in a wizard control and needs to run the time check on the next button click.
|
|
|
|
|
|
Thanks that's just what I wanted.
Lee
|
|
|
|
|
Any Time..!
All the best..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi Lee,
I thought the main purpose of the confirmbuttonexteneder is for client side questions and post back.. can't you just use javascript to check the datetime before showing the ConfirmButtondialog?
thanks,
Wilson
Still a newbie.. learning
|
|
|
|
|
Hi Wilson,
It is and it was to ask the question "Was the time selection intentional?", yu see this is for an online scheduler for conferences and if the end time is before the start time the conference goes into the next day.
Anyway, this is now working and a closed case.
Thanks anyway,
Lee
|
|
|
|
|
hello friends
i want to know what is diff between in these two way of adding item in cache.
cache["key"]= value;
and
cache.add("key",value,...);
thanks in advance
|
|
|
|
|
|
Hi findtango,
If you access the cache via the indexer, i.e.,
1. Cache["Key"] = value;
a. the value remains in the cache indefinitely.
Instead while you are using
2. cache.add():
a. It will accept some more parameters for expiration and all
b. Also, calling the Add method returns an object that represents the cached item.
If the key already exists in the Cache the method will fail.
Thanks & Regards,
Jeneesh k. v.
|
|
|
|