Saturday, March 31, 2012

the asp.net equivalent of the "Request.Form" in asp

i am having problems with a simple web service i am creating in asp.net using C#. does anybody know what Request.Form is in asp.net.
cheers
much appreciatedI've never done classic ASP code, but I think what you're looking for is Request.Params[]

Should still be Request.Form. What is the problem that you are having?


Hi,
Request.Form method was used in classic ASP(3.0)
<form action="hello.aspx" method="post">
Your name: <input type="text" name="fname" size="20">
<input type="submit" value="Submit">
</form>
<%
dim fname
fname=Request.Form("fname")
Response.Write("Hello " & fname)
%>
As in Asp.net forms are posted to itself So Request.Form was not actively used in asp.net.
Iam still now able to understand why you require this in web services.


You can still use Request.Form, but you'll have to make sure the value exists before trying to use it. In Classic ASP, if the value didn't exist it would return an empty string, but in ASP.NET you get Nothing (in VB.NET, which I believe is null in C#).

the asp.net application doesnt compile it self under the /bin directory, where it is?

I want to use my custom control (.cs) in my web application. Custom control
is in the same assembly as my application. I want to know the name of the
assembly (.dll) file so i can add it's <@dotnet.itags.org.Pegister Assembly="abc.dll"> name.
But in asp.net 2.0 i can't find the assembly. It is not compiled under the
/bin folder. Where it is, or how can i give a reference to it?re:
> I want to use my custom control (.cs) in my web application.

Custom controls aren't located in *.cs files.
Classes are included in *.cs files.

Can you clarify what you are looking for ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Umut Tezduyar" <umut@dotnet.itags.org.tezduyar.com> wrote in message
news:uxcKX7t6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> I want to use my custom control (.cs) in my web application. Custom control is in the
> same assembly as my application. I want to know the name of the assembly (.dll) file so
> i can add it's <@dotnet.itags.org.Pegister Assembly="abc.dll"> name. But in asp.net 2.0 i can't find the
> assembly. It is not compiled under the /bin folder. Where it is, or how can i give a
> reference to it?
I mean, not the *.ascx (User controls), custom control.

Let me ask my question in this way: I can't add my custom control in a web
page because i don't know what to write in the <@dotnet.itags.org.Page Assembly=''> register
tag.

"Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> wrote in message
news:Oo7QLKu6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> re:
>> I want to use my custom control (.cs) in my web application.
> Custom controls aren't located in *.cs files.
> Classes are included in *.cs files.
> Can you clarify what you are looking for ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Umut Tezduyar" <umut@dotnet.itags.org.tezduyar.com> wrote in message
> news:uxcKX7t6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>>
>> I want to use my custom control (.cs) in my web application. Custom
>> control is in the same assembly as my application. I want to know the
>> name of the assembly (.dll) file so i can add it's <@dotnet.itags.org.Pegister
>> Assembly="abc.dll"> name. But in asp.net 2.0 i can't find the assembly.
>> It is not compiled under the /bin folder. Where it is, or how can i give
>> a reference to it?
OK...

For that, check out :
http://support.microsoft.com/defaul...kb;en-us;321749

The proper tag is :
<%@dotnet.itags.org. Register TagPrefix="Custom" Namespace="CustomControlNamespace" Assembly= "CustomControl" %
Custom is an alias that you associate with a namespace.
CustomControlNamespace is a namespace in which classes of an assembly are enclosed.
CustomControl is the name of the assembly file without an extension (.dll).


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Umut Tezduyar" <umut@dotnet.itags.org.tezduyar.com> wrote in message news:uI%23L45u6FHA.1000@dotnet.itags.org.tk2msftngp13.phx.gbl...
>I mean, not the *.ascx (User controls), custom control.
>
> Let me ask my question in this way: I can't add my custom control in a web
> page because i don't know what to write in the <@dotnet.itags.org.Page Assembly=''> register
> tag.
>
>
> "Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> wrote in message
> news:Oo7QLKu6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>> re:
>>> I want to use my custom control (.cs) in my web application.
>>
>> Custom controls aren't located in *.cs files.
>> Classes are included in *.cs files.
>>
>> Can you clarify what you are looking for ?

>> "Umut Tezduyar" <umut@dotnet.itags.org.tezduyar.com> wrote in message
>> news:uxcKX7t6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>>>
>>> I want to use my custom control (.cs) in my web application. Custom
>>> control is in the same assembly as my application. I want to know the
>>> name of the assembly (.dll) file so i can add it's <@dotnet.itags.org.Pegister
>>> Assembly="abc.dll"> name. But in asp.net 2.0 i can't find the assembly.
>>> It is not compiled under the /bin folder. Where it is, or how can i give
>>> a reference to it?
On Wed, 16 Nov 2005 10:52:05 -0800, "Umut Tezduyar"
<umut@dotnet.itags.org.tezduyar.com> wrote:

>I want to use my custom control (.cs) in my web application. Custom control
>is in the same assembly as my application.

Is this 2.0? (I assume so based on your previous questions). Your
custom control must be in App_Code, correct?

Something like this:

namespace OTC
{
public class MyCustomControl : WebControl
{
protected override void Render(HtmlTextWriter writer)
{
writer.Write("This is my custom control");
base.Render(writer);
}
}
}

>I want to know the name of the
>assembly (.dll) file so i can add it's <@dotnet.itags.org.Pegister Assembly="abc.dll"> name.
>But in asp.net 2.0 i can't find the assembly. It is not compiled under the
>/bin folder. Where it is, or how can i give a reference to it?

ASP.NET builds App_Code as a separate assembly, and the runtime will
recognize "App_Code" as an assembly name in a reference directive.

<%@dotnet.itags.org. Register Assembly="App_Code" TagPrefix="otc" Namespace="OTC" %
...

<otc:MyCustomControl runat="Server" id="boo" /
--
Scott
http://www.OdeToCode.com/blogs/scott/

the asp.net application doesn't compile it self under the /bin directory, where it is

I want to use my custom control (.cs) in my web application. Custom control
is in the same assembly as my application. I want to know the name of the
assembly (.dll) file so i can add it's <@dotnet.itags.org.Pegister Assembly="abc.dll"> name.
But in asp.net 2.0 i can't find the assembly. It is not compiled under the
/bin folder. Where it is, or how can i give a reference to it?re:
> I want to use my custom control (.cs) in my web application.
Custom controls aren't located in *.cs files.
Classes are included in *.cs files.
Can you clarify what you are looking for ?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Umut Tezduyar" <umut@dotnet.itags.org.tezduyar.com> wrote in message
news:uxcKX7t6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> I want to use my custom control (.cs) in my web application. Custom contro
l is in the
> same assembly as my application. I want to know the name of the assembly (
.dll) file so
> i can add it's <@dotnet.itags.org.Pegister Assembly="abc.dll"> name. But in asp.net 2.0 i c
an't find the
> assembly. It is not compiled under the /bin folder. Where it is, or how ca
n i give a
> reference to it?
I mean, not the *.ascx (User controls), custom control.
Let me ask my question in this way: I can't add my custom control in a web
page because i don't know what to write in the <@dotnet.itags.org.Page Assembly=''> register
tag.
"Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> wrote in message
news:Oo7QLKu6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> re:
> Custom controls aren't located in *.cs files.
> Classes are included in *.cs files.
> Can you clarify what you are looking for ?
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Umut Tezduyar" <umut@dotnet.itags.org.tezduyar.com> wrote in message
> news:uxcKX7t6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>
OK...
For that, check out :
http://support.microsoft.com/defaul...kb;en-us;321749
The proper tag is :
<%@dotnet.itags.org. Register TagPrefix="Custom" Namespace="CustomControlNamespace" Assembly=
"CustomControl" %>
Custom is an alias that you associate with a namespace.
CustomControlNamespace is a namespace in which classes of an assembly are en
closed.
CustomControl is the name of the assembly file without an extension (.dll).
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Umut Tezduyar" <umut@dotnet.itags.org.tezduyar.com> wrote in message news:uI%23L45u6FHA.1000@dotnet.itags.org.tk2msftngp13.p
hx.gbl...
>I mean, not the *.ascx (User controls), custom control.
>
> Let me ask my question in this way: I can't add my custom control in a web
> page because i don't know what to write in the <@dotnet.itags.org.Page Assembly=''> registe
r
> tag.
>
>
> "Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> wrote in message
> news:Oo7QLKu6FHA.2036@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
On Wed, 16 Nov 2005 10:52:05 -0800, "Umut Tezduyar"
<umut@dotnet.itags.org.tezduyar.com> wrote:

>I want to use my custom control (.cs) in my web application. Custom control
>is in the same assembly as my application.
>
Is this 2.0? (I assume so based on your previous questions). Your
custom control must be in App_Code, correct?
Something like this:
namespace OTC
{
public class MyCustomControl : WebControl
{
protected override void Render(HtmlTextWriter writer)
{
writer.Write("This is my custom control");
base.Render(writer);
}
}
}

>I want to know the name of the
>assembly (.dll) file so i can add it's <@dotnet.itags.org.Pegister Assembly="abc.dll"> name.
>But in asp.net 2.0 i can't find the assembly. It is not compiled under the
>/bin folder. Where it is, or how can i give a reference to it?
>
ASP.NET builds App_Code as a separate assembly, and the runtime will
recognize "App_Code" as an assembly name in a reference directive.
<%@dotnet.itags.org. Register Assembly="App_Code" TagPrefix="otc" Namespace="OTC" %>
...
<otc:MyCustomControl runat="Server" id="boo" />
Scott
http://www.OdeToCode.com/blogs/scott/

The asp Tags dosn't appear

Hi all,
I'm using the ASP.net 2.0 Beta 1, and in the html section of my page the
asp tags dosn't appear, and i get a warning if i wrote them.
Any helpCan you provide the error?
-Brock
DevelopMentor
http://staff.develop.com/ballen

> Hi all,
> I'm using the ASP.net 2.0 Beta 1, and in the html section of my page
> the
> asp tags dosn't appear, and i get a warning if i wrote them.
> Any help
The error i get is : asp is unrecognized tag prefix or device filter
Thanks for your reply and time
"Brock Allen" wrote:

> Can you provide the error?
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>
> The error i get is : asp is unrecognized tag prefix or device filter
Hmm, this is very strange. I don't think I've ever come across this problem.
It makes me feel like somehow some core configuration setting in ASP.NET
is messed up. Can you create a new project in VS.NET and make it work there?
Also, are you using a master page? If you are, then the root element you
need is a <asp:Content> elemenet.
-Brock
DevelopMentor
http://staff.develop.com/ballen
Thanks for your reply, but the idea is i'm not using the master pages, becus
e
it is not working on my laptob, and the project is new one!!!!!!
"Brock Allen" wrote:

> Hmm, this is very strange. I don't think I've ever come across this proble
m.
> It makes me feel like somehow some core configuration setting in ASP.NET
> is messed up. Can you create a new project in VS.NET and make it work ther
e?
> Also, are you using a master page? If you are, then the root element you
> need is a <asp:Content> elemenet.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>

The asp Tags dosnt appear

Hi all,

I'm using the ASP.net 2.0 Beta 1, and in the html section of my page the
asp tags dosn't appear, and i get a warning if i wrote them.
Any helpCan you provide the error?

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Hi all,
> I'm using the ASP.net 2.0 Beta 1, and in the html section of my page
> the
> asp tags dosn't appear, and i get a warning if i wrote them.
> Any help
The error i get is : asp is unrecognized tag prefix or device filter

Thanks for your reply and time

"Brock Allen" wrote:

> Can you provide the error?
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
> > Hi all,
> > I'm using the ASP.net 2.0 Beta 1, and in the html section of my page
> > the
> > asp tags dosn't appear, and i get a warning if i wrote them.
> > Any help
>
>
> The error i get is : asp is unrecognized tag prefix or device filter

Hmm, this is very strange. I don't think I've ever come across this problem.
It makes me feel like somehow some core configuration setting in ASP.NET
is messed up. Can you create a new project in VS.NET and make it work there?
Also, are you using a master page? If you are, then the root element you
need is a <asp:Content> elemenet.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Thanks for your reply, but the idea is i'm not using the master pages, becuse
it is not working on my laptob, and the project is new one!!!!!!

"Brock Allen" wrote:

> > The error i get is : asp is unrecognized tag prefix or device filter
> Hmm, this is very strange. I don't think I've ever come across this problem.
> It makes me feel like somehow some core configuration setting in ASP.NET
> is messed up. Can you create a new project in VS.NET and make it work there?
> Also, are you using a master page? If you are, then the root element you
> need is a <asp:Content> elemenet.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>

The ASP.NET FAQ is now online...

Read it at : http://asp.net.do/faq/
You will want to bookmark it.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================Thanks Juan... :}

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Juan T. Llibre" wrote:

> Read it at : http://asp.net.do/faq/
> You will want to bookmark it.
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espa?ol
> Ven, y hablemos de ASP.NET...
> ======================
>
This is more than a FAQ - it's a work of art.

Brilliantly done!
Thanks, Jordan.

I'm glad to see that the long hours put into it are appreciated!

The FAQ will be posted once more around the 15th of September,
and from then on will be posted once a month to all ASP.NET newsgroups.

Thanks again!

Juan
The ASP.NET FAQ
http://asp.net.do/faq/
==============

"Jordan" <A@dotnet.itags.org.B.com> wrote in message news:OjS5j2wrFHA.2588@dotnet.itags.org.tk2msftngp13.phx.gbl...
> This is more than a FAQ - it's a work of art.
> Brilliantly done!
Juan good job!!!!
Patrick

"Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> wrote in message
news:uRizP9wrFHA.1684@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> Thanks, Jordan.
> I'm glad to see that the long hours put into it are appreciated!
> The FAQ will be posted once more around the 15th of September,
> and from then on will be posted once a month to all ASP.NET newsgroups.
> Thanks again!
>
> Juan
> The ASP.NET FAQ
> http://asp.net.do/faq/
> ==============
> "Jordan" <A@dotnet.itags.org.B.com> wrote in message
news:OjS5j2wrFHA.2588@dotnet.itags.org.tk2msftngp13.phx.gbl...
> > This is more than a FAQ - it's a work of art.
> > Brilliantly done!

The ASP.NET FAQ is now online...

Read it at : http://asp.net.do/faq/
You will want to bookmark it.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================Thanks Juan... :}
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Juan T. Llibre" wrote:

> Read it at : http://asp.net.do/faq/
> You will want to bookmark it.
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espa?ol
> Ven, y hablemos de ASP.NET...
> ======================
>
>
This is more than a FAQ - it's a work of art.
Brilliantly done!
Thanks, Jordan.
I'm glad to see that the long hours put into it are appreciated!
The FAQ will be posted once more around the 15th of September,
and from then on will be posted once a month to all ASP.NET newsgroups.
Thanks again!
Juan
The ASP.NET FAQ
http://asp.net.do/faq/
==============
"Jordan" <A@dotnet.itags.org.B.com> wrote in message news:OjS5j2wrFHA.2588@dotnet.itags.org.tk2msftngp13.phx.gbl...kred">
> This is more than a FAQ - it's a work of art.
> Brilliantly done!
Juan good job!!!!
Patrick
"Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> wrote in message
news:uRizP9wrFHA.1684@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> Thanks, Jordan.
> I'm glad to see that the long hours put into it are appreciated!
> The FAQ will be posted once more around the 15th of September,
> and from then on will be posted once a month to all ASP.NET newsgroups.
> Thanks again!
>
> Juan
> The ASP.NET FAQ
> http://asp.net.do/faq/
> ==============
> "Jordan" <A@dotnet.itags.org.B.com> wrote in message
news:OjS5j2wrFHA.2588@dotnet.itags.org.tk2msftngp13.phx.gbl...
>