|
thanks to gave me a solution .
yes this in content placeholder but i alert this ID,its alert fine once when default page occrue.ut as i click on on next page of GridView alert is not fired ,means that second time java script not call.
adilkhan
|
|
|
|
|
Hello
first of sorry for the bad english but im dyslexic
im working on a simpel httpHandler at the momment but my problem is that i simply cant regiser it in my web.config, i have tryed adding a assembly name (im on the WWD so i dont think i can actly make assembys?) bouth whith my application name and whith the App_Code (bouth whith the handler in the App_Code folder And whith it in the root, and if is the App_Code folder DotNet wont let me build my page at all)
after 3 houres of forum searching im truey lost, i whent on the MSDN and copy pasted there helloworld exampel but its not working eather...
i tryed whith following in my Root web.config (not that i have any sub cfg's now.
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.sample" type="HelloWorldHandler,HelloWorldHandler"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpHandlers>
And whith:
<add verb="*" path="*.sample" type="HelloWorldHandler,HelloWorldHandler"/>
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'HelloWorldHandler' or one of its dependencies. The system cannot find the file specified.
=== Pre-bind state information ===
LOG: User = vexis\vexi
LOG: DisplayName = HelloWorldHandler
(Partial)
LOG: Appbase = file:LOG: Initial PrivatePath = C:\Users\vexi\Documents\webs\vxm\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\vexi\Documents\webs\vxm\web.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
i can see its trying to get the assimbly from my local web dir but WWD dont create a folder named bin whith the compiled code so im kind of lost for what to do now?
Help appreciated
Salomon B. Sumbundu
Denmark
|
|
|
|
|
Hi,
Ok thats fine do one thing, first create a simple app with Httphandler.
Follow simple steps below:
1.Create class and inherit it from "IHttpModule " interface
2.Imlement the below method
public void Init(HttpApplication context)
{
//context.BeginRequest += new EventHandler(context_BeginRequest);
}
void context_BeginRequest(object sender, EventArgs e)
{
//HttpApplication app = (HttpApplication)sender;
}
3. Add below code in yr web.config file
<httpModules>
<add name="yrclassName" type="classname"/>
</httpModules>
Regards
Anil Pal
|
|
|
|
|
thanks alot mate realy nice :]
but do the httphandler and moduels work the same way? im building a image handler (it is working if im targting it direct in the url), you think a modul are better sutted for such a job?
ways thanks agen
|
|
|
|
|
Found it!
i missed the IIS 7 changes >_<<br mode="hold" />
http://msdn.microsoft.com/en-us/library/bb515251.aspx[^]
Handlers are now defined in
<system.webServer>
<handlers>
<Handler here (whith name="" now)>
</handlers>
</system.webServer>
i guss i shod have looked harder but thanks for youre time thou ^^ (found it when googgling "httpmodule vs httphandler" 4 houres of random httpmodule didnt work, werd and imho MS shod revisit there tuturials)
|
|
|
|
|
is there anyone who can help me in developing web application...it's main feature is Online Custom
t-shirt designing...ie.,customer can create his own design by himself...If anyone has idea about it plz help.....thnx....!!
How to do Online Custom t-shirt designing using .net ?
|
|
|
|
|
what the problem .. .just create one .. .
you can use Silverlight, Flex etc to get your design done in the browser itself.
|
|
|
|
|
Thnx....bt I am new in this developing world..so,without example i cant understand it..dont mind to give me some source code for the same..
How to do Online Custom t-shirt designing using .net ?
|
|
|
|
|
What's importance of Security Cheek/text box.
Like facebook, For sign up at first have to submit user information, after that the user should fill up a security text box with some characters from a given picture. I want to know how does this text help me to develop my social network web site.
shahdat
modified on Friday, April 10, 2009 1:52 AM
|
|
|
|
|
MD. SHAHDAT HOSAIN wrote: What's importance of Security Cheek/text box.
what does it mean ? Do you want any validation ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
MD. SHAHDAT HOSAIN wrote: For sign up at first have to submit user information, after that the user should fill up a security text box with some characters from a given picture. I want to know how does this text help me to develop my social network web site.
Aha.. You are Talking about CAPTCHA Image. I am giving you two reference hope this will helps you to know about CAPTCHA and how to implement it.
CAPTCHA Image
A CAPTCHA Server Control for ASP.NET
Hope this will help you
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi,
I have be searching the forum for examples of code that allows you to get the FTP path information for a group of files that have the same file name but different date e.g. file12082009 and add then to a datatable so once I have the file information for each file in the datatable I can then download any new ftp file that is not in the datatable.
Basically every time I download a file I would like the file information only to be added to the datatable but only download files that are not in the datatable.
I currently have code that will download the file from the FTP using vb.net which works fine.
|
|
|
|
|
It's easy to do the property, but my brick wall here is using the property as an attribute in the markup tag for that control.
This markup:
tc:TypeUser runat="server" ID="me" DataType="System.Int32"
causes this error:
Cannot create an object of type 'System.Type' from its string representation 'System.Int32' for the 'DataType' property.
|
|
|
|
|
hello my question is that we use google maps , now i want to set up the pin point of my area of google map in my website.Is their any way to embed the link in my asp.net site
thanks in advance
|
|
|
|
|
|
|
|
this is limit crossing you are asking questions like you are going through topic of books without reading it and if you dont have money to buy a boook of asp why not you google or read asp.net /samples the site contains all the informations you need moron..
modified on Thursday, April 9, 2009 2:16 PM
|
|
|
|
|
If you allow the person to go back, you automatically allow the person to click in any link to another page. You can, of course, prohibit the person to see the other page, as you can check if the person is logged.
And, any type of authentication will help you with this problem.
|
|
|
|
|
Hey look, you have asked so many trivial questions that can be answered easily by reading a book or googling for answer. Do yourself a favour and step back and leave that freaking task to other competent people. You have shown no effort in learning, sign off and find your self suitable job that does not require programming.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
|
sara malik wrote: when i start my application 1st time ,an time out exception comes if the page loaded some data from sql server's database using (business object ) c# code in business layer. how i can remove this.
Because your code is not able to read data from Database and it is giving the timeout exception. Try to debug code , Connection string and Stored procedure.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
My code is reading data, i got the data from database , only first time when i opened any page retrieving values from data base this exceptions throws,only 1st time not every time
|
|
|
|
|
You need to figure out what part is slow and then change it...
|
|
|
|
|
there is nothing slow, i got the data from database , only first time when i opened any page of my application retrieving values from data base this exceptions throws,only 1st time not every time
|
|
|
|