473,465 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ApplicationId

JJ
How can I get the applicationID of the asp.net application? I am using c# .

JJ

Sep 14 '06 #1
6 6695
Do you mean the ApplicationID in System,
or the ApplicationID in Membership ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message news:uE*************@TK2MSFTNGP03.phx.gbl...
How can I get the applicationID of the asp.net application? I am using c# .

JJ


Sep 14 '06 #2
JJ
I'm not sure. I am storing information in a table when a users registers on
the site.
I need to store their username etc, but also the ApplicationID of the site.

JJ


"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Do you mean the ApplicationID in System,
or the ApplicationID in Membership ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message
news:uE*************@TK2MSFTNGP03.phx.gbl...
>How can I get the applicationID of the asp.net application? I am using c#
.

JJ



Sep 14 '06 #3
JJ
To clarify, I am storing that in a sql 2005 database table.

JJ

"JJ" <ab*@xyz.comwrote in message
news:ex**************@TK2MSFTNGP06.phx.gbl...
I'm not sure. I am storing information in a table when a users registers
on the site.
I need to store their username etc, but also the ApplicationID of the
site.

JJ


"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Do you mean the ApplicationID in System,
or the ApplicationID in Membership ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message
news:uE*************@TK2MSFTNGP03.phx.gbl...
>>How can I get the applicationID of the asp.net application? I am using
c# .

JJ




Sep 14 '06 #4
Yup.

That's the Membership ApplicationID.

It's simply an unique identifier column with name ApplicationID
in the aspnet_Applications table in the Membership database.

Retrieve it just like you would any other table field.

See:
http://msdn.microsoft.com/library/de...sp2prvdr02.asp

You may find it simpler to set/retrieve the Application name in the web.config for your app:
http://msdn2.microsoft.com/en-us/lib...ationname.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message news:eF**************@TK2MSFTNGP05.phx.gbl...
To clarify, I am storing that in a sql 2005 database table.

JJ

"JJ" <ab*@xyz.comwrote in message news:ex**************@TK2MSFTNGP06.phx.gbl...
>I'm not sure. I am storing information in a table when a users registers on the site.
I need to store their username etc, but also the ApplicationID of the site.

JJ


"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>Do you mean the ApplicationID in System,
or the ApplicationID in Membership ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message news:uE*************@TK2MSFTNGP03.phx.gbl...
How can I get the applicationID of the asp.net application? I am using c# .

JJ



Sep 14 '06 #5
JJ
But how does the membership provider get the ApplicationId in the first
place? (i.e. before any records are created)

Ideally I'd like to get it in the code then store it, rather than get it
from one table, then store it in another.

JJ

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uJ**************@TK2MSFTNGP05.phx.gbl...
Yup.

That's the Membership ApplicationID.

It's simply an unique identifier column with name ApplicationID
in the aspnet_Applications table in the Membership database.

Retrieve it just like you would any other table field.

See:
http://msdn.microsoft.com/library/de...sp2prvdr02.asp

You may find it simpler to set/retrieve the Application name in the
web.config for your app:
http://msdn2.microsoft.com/en-us/lib...ationname.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message
news:eF**************@TK2MSFTNGP05.phx.gbl...
>To clarify, I am storing that in a sql 2005 database table.

JJ

"JJ" <ab*@xyz.comwrote in message
news:ex**************@TK2MSFTNGP06.phx.gbl...
>>I'm not sure. I am storing information in a table when a users registers
on the site.
I need to store their username etc, but also the ApplicationID of the
site.

JJ


"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl.. .
Do you mean the ApplicationID in System,
or the ApplicationID in Membership ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message
news:uE*************@TK2MSFTNGP03.phx.gbl...
How can I get the applicationID of the asp.net application? I am using
c# .
>
JJ





Sep 15 '06 #6
The uniqueidentifier is autogenerated; it's a 16-byte GUID.

See :
http://msdn2.microsoft.com/en-us/library/ms187942.aspx

I'm pretty sure you don't mean the uniqueidentifier field ( ApplicationID ).
That will be almost useless for your purposes.

As previously mentioned :

You may find it simpler to set/retrieve the Application name in the
web.config for your app:
http://msdn2.microsoft.com/en-us/lib...ationname.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message news:%2******************@TK2MSFTNGP03.phx.gbl...
But how does the membership provider get the ApplicationId in the first place? (i.e. before any
records are created)

Ideally I'd like to get it in the code then store it, rather than get it from one table, then
store it in another.

JJ

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uJ**************@TK2MSFTNGP05.phx.gbl...
>Yup.

That's the Membership ApplicationID.

It's simply an unique identifier column with name ApplicationID
in the aspnet_Applications table in the Membership database.

Retrieve it just like you would any other table field.

See:
http://msdn.microsoft.com/library/de...sp2prvdr02.asp

You may find it simpler to set/retrieve the Application name in the web.config for your app:
http://msdn2.microsoft.com/en-us/lib...ationname.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message news:eF**************@TK2MSFTNGP05.phx.gbl...
>>To clarify, I am storing that in a sql 2005 database table.

JJ

"JJ" <ab*@xyz.comwrote in message news:ex**************@TK2MSFTNGP06.phx.gbl...
I'm not sure. I am storing information in a table when a users registers on the site.
I need to store their username etc, but also the ApplicationID of the site.

JJ


"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl. ..
Do you mean the ApplicationID in System,
or the ApplicationID in Membership ?
>
>
>
>
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JJ" <ab*@xyz.comwrote in message news:uE*************@TK2MSFTNGP03.phx.gbl...
>How can I get the applicationID of the asp.net application? I am using c# .
>>
>JJ
>
>
>




Sep 15 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Highlander416 | last post by:
This is driving me crazy. I need to create a UDF that would return a TRUE/FALSE (bit) value based on a comparison it does. CREATE FUNCTION dbo.SelectedByApplication ( @ApplicationID int,...
4
by: Driesen via SQLMonster.com | last post by:
Hi guys I having trouble with this sproc. I get the following error when testing: Server: Msg 245, Level 16, State 1, Procedure UTL_CompletenessCheckLoan, Line 231 Syntax error converting the...
1
by: TdarTdar | last post by:
Hello, what is the code to get the running applications "ApplicationId" Thanks Tdar
138
by: Ian Boyd | last post by:
i've been thrown into a pit with DB2 and have to start writing things such as tables, indexes, stored procedures, triggers, etc. The online reference is only so helpful. The two pdf manuals are...
0
by: ANON | last post by:
I am looking for advice on usage of the ApplicationId (aspnet_Applications table) to distinguish groups clients within the same app. When I add a new client group I'd like to limit their view of...
1
by: Giovanni | last post by:
Dear Friends, I was just wondering if there was a method by which I can get/check the existancy of an Application (aspnet_Applications table) in ASP.NET 2.0 using the applicationID instead of...
1
by: Ruth413 | last post by:
Hello - I am getting the these errors in my sql 2005 generated script. I am stuck with first error. Please help.... Msg 102, Level 15, State 1, Line 3 Incorrect syntax near '('. Msg 319,...
1
by: =?Utf-8?B?aGZkZXY=?= | last post by:
Hello, I have a web application that makes use of the SQL Membership and Role providers. My app has admin screens to manage users (membership), roles, and supplementary user data. I have just...
1
by: Dan | last post by:
Could someone please explain the relationship between ApplicationID and a Web site? For example, what and when generates application ID? Any pointers to on-line docs would also be appreciated. ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.