Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Thursday, March 29, 2012

Passing Values

I know that I can create session variables and pass those values from one
screen to another, but is there not a way to makes variables from one scree
n available to another screen other then session variables? Is there not a
way to create properties in the one screen and then pass some sort of
reference to the screen you are calling?

Can you point me to an example or an article on how to use?

Thanks in advance for your assistance!!!!!!!!Passing Values from Aspx to Aspx

Although ASP.NET usually submits data to the current page for processing,
there are times when you need to pass values from the controls on one page
to controls or routines on another ASP.NET page.
This is a cookbook style tutorial that shows you how to pass from one page
to another. For a deeper explanation, see the Microsoft Help file references
at the bottom of the page.

http://authors.aspalliance.com/kenc/passval.aspx

"Jim Heavey" <JimHeavey@.nospam.com> wrote in message
news:Xns948861B2BA553JimHeaveyhotmailcom@.207.46.24 8.16...
>I know that I can create session variables and pass those values from one
> screen to another, but is there not a way to makes variables from one
> scree
> n available to another screen other then session variables? Is there not
> a
> way to create properties in the one screen and then pass some sort of
> reference to the screen you are calling?
> Can you point me to an example or an article on how to use?
> Thanks in advance for your assistance!!!!!!!!
someone asked exactly the same questions like 10 posts before you so check there

Passing values across webforms that use Master pages

Sorry to create a new thread on an old post but I didn't get a viable answer
and thought that the odds were against me getting one unless I started a new
thread.

My question was this:

I want to pass a string variable from default3.aspx to default2.aspx.

I create a property in default2.aspx, called "X", and assign a value. I then
call Server.Transfer("default3.aspx")

In default3.aspx I have this code:
Dim Default3 As Default3 = ctype(Context.Handler, Default3)
Dim PassedString As String = Default3.x

This will work fine as long a default 3 is not a webform that references a
master page.

If it is, it tells me that "Default 3" is an undefined type. As a result,
the only way that I know o get it to work is to turn of Option Strict and
change it to this:

Dim Default3 As Object = Context.Handler
Dim PassedString As String = Default3.x

I really dont want to turn off Option Strict or resort to looselt typed
variables.

How do I correct this?
Chad,
Try either putting the String name=value combo on the querystring, or into
the HttpContext.Current.Items Collection. Not reasonable to expect a
"property" of a page to survive a server.transfer or Response.Redirect.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

"Chad" wrote:

> Sorry to create a new thread on an old post but I didn't get a viable answer
> and thought that the odds were against me getting one unless I started a new
> thread.
> My question was this:
> I want to pass a string variable from default3.aspx to default2.aspx.
> I create a property in default2.aspx, called "X", and assign a value. I then
> call Server.Transfer("default3.aspx")
> In default3.aspx I have this code:
> Dim Default3 As Default3 = ctype(Context.Handler, Default3)
> Dim PassedString As String = Default3.x
> This will work fine as long a default 3 is not a webform that references a
> master page.
> If it is, it tells me that "Default 3" is an undefined type. As a result,
> the only way that I know o get it to work is to turn of Option Strict and
> change it to this:
> Dim Default3 As Object = Context.Handler
> Dim PassedString As String = Default3.x
> I really dont want to turn off Option Strict or resort to looselt typed
> variables.
> How do I correct this?
>
>
>
>
>
Actually, it does work if you define Default3 as an Object. I was trying to
strongly type the variable Default3 as an object of type "Default3" and it
did not recognize the class "Defaulyt3" outside of the Default3 class.

Try it. It does work.

"Peter Bromberg [C# MVP]" <pbromberg@.yahoo.nospammin.com> wrote in message
news:C28C574E-44C8-4903-B81A-8A970605CBAA@.microsoft.com...
> Chad,
> Try either putting the String name=value combo on the querystring, or into
> the HttpContext.Current.Items Collection. Not reasonable to expect a
> "property" of a page to survive a server.transfer or Response.Redirect.
> Peter
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
> "Chad" wrote:
>> Sorry to create a new thread on an old post but I didn't get a viable
>> answer
>> and thought that the odds were against me getting one unless I started a
>> new
>> thread.
>>
>> My question was this:
>>
>> I want to pass a string variable from default3.aspx to default2.aspx.
>>
>> I create a property in default2.aspx, called "X", and assign a value. I
>> then
>> call Server.Transfer("default3.aspx")
>>
>> In default3.aspx I have this code:
>> Dim Default3 As Default3 = ctype(Context.Handler, Default3)
>> Dim PassedString As String = Default3.x
>>
>> This will work fine as long a default 3 is not a webform that references
>> a
>> master page.
>>
>> If it is, it tells me that "Default 3" is an undefined type. As a result,
>> the only way that I know o get it to work is to turn of Option Strict and
>> change it to this:
>>
>> Dim Default3 As Object = Context.Handler
>> Dim PassedString As String = Default3.x
>>
>> I really dont want to turn off Option Strict or resort to looselt typed
>> variables.
>>
>> How do I correct this?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>

Passing values across webforms that use Master pages

Sorry to create a new thread on an old post but I didn't get a viable answer
and thought that the odds were against me getting one unless I started a new
thread.
My question was this:
I want to pass a string variable from default3.aspx to default2.aspx.
I create a property in default2.aspx, called "X", and assign a value. I then
call Server.Transfer("default3.aspx")
In default3.aspx I have this code:
Dim Default3 As Default3 = ctype(Context.Handler, Default3)
Dim PassedString As String = Default3.x
This will work fine as long a default 3 is not a webform that references a
master page.
If it is, it tells me that "Default 3" is an undefined type. As a result,
the only way that I know o get it to work is to turn of Option Strict and
change it to this:
Dim Default3 As Object = Context.Handler
Dim PassedString As String = Default3.x
I really dont want to turn off Option Strict or resort to looselt typed
variables.
How do I correct this?Chad,
Try either putting the String name=value combo on the querystring, or into
the HttpContext.Current.Items Collection. Not reasonable to expect a
"property" of a page to survive a server.transfer or Response.Redirect.
Peter
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Chad" wrote:

> Sorry to create a new thread on an old post but I didn't get a viable answ
er
> and thought that the odds were against me getting one unless I started a n
ew
> thread.
> My question was this:
> I want to pass a string variable from default3.aspx to default2.aspx.
> I create a property in default2.aspx, called "X", and assign a value. I th
en
> call Server.Transfer("default3.aspx")
> In default3.aspx I have this code:
> Dim Default3 As Default3 = ctype(Context.Handler, Default3)
> Dim PassedString As String = Default3.x
> This will work fine as long a default 3 is not a webform that references a
> master page.
> If it is, it tells me that "Default 3" is an undefined type. As a result,
> the only way that I know o get it to work is to turn of Option Strict and
> change it to this:
> Dim Default3 As Object = Context.Handler
> Dim PassedString As String = Default3.x
> I really dont want to turn off Option Strict or resort to looselt typed
> variables.
> How do I correct this?
>
>
>
>
>
>
Actually, it does work if you define Default3 as an Object. I was trying to
strongly type the variable Default3 as an object of type "Default3" and it
did not recognize the class "Defaulyt3" outside of the Default3 class.
Try it. It does work.
"Peter Bromberg [C# MVP]" <pbromberg@.yahoo.nospammin.com> wrote in message
news:C28C574E-44C8-4903-B81A-8A970605CBAA@.microsoft.com...
> Chad,
> Try either putting the String name=value combo on the querystring, or into
> the HttpContext.Current.Items Collection. Not reasonable to expect a
> "property" of a page to survive a server.transfer or Response.Redirect.
> Peter
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
> "Chad" wrote:
>

passing values from form to form

I was wondering if it is possible to pass values from one aspx page to another aspx page using properties?

I want to create a property on the 2nd aspx page lets say Name(), and pass in the values from the first aspx page. I know how to pass values like this to a user control, but is it possible to pass it to another aspx page?> I was wondering if it is possible to pass values from one aspx page to another aspx page using properties?

You can sort of do this, but not as directly as you're suggesting.

In your firstpage.aspx:

Public Sub Button_Click( sender As Object, e As EventArgs )
Session( "Name" ) = "Value from textbox, or wherever"
Response.Redirect( "secondpage.aspx" )
End Sub

Then, in your secondpage.aspx:

Private _name As String
Public Property Name As String
Get
Return _name
End Get
Set
_name = Value
End Set
End Property

Public Sub Page_Init( sender As Object, e As EventArgs )
Name = Session( "Name" )
End Sub

If that doesn't help, perhaps you can explain more fully what you're trying to do.
That's what I'm trying to do. I knew that I can use session variables, just wondering if there's any other way to accomplish this.
You can store information into the QueryString as well.
Well, you can't directly access the second Page's properties from the first page, no.

After all, the second Page is not instantiated until the first is destroyed. So there can be no direct messaging between them.

It is for this reason that session variables exist. So, for "form to form" communication, session variables are ideal.

You can also create a single form thatacts like more than one form. If you're trying to keep information "alive" during a certain series of tasks, this might be a better way to go.

Monday, March 26, 2012

Passing values into SQL Server

Hi: I create two textboxes and a button and try to pass values from the
textboxes into SQL Server by using Save Button Can any one please tell
me do i write some code on save button or i bind the textbox with the
SQL Server fields as i bind the fields in VB.NET

Thanks,Few controls have automagic binding in a web app. Try something like this:

Dim textbox1Value as TextBox1.Text
Dim textbox2Value as TextBox2.Text

Dim sql as String = "INSERT INTO SomeTable VALUES (@.Val1, @.Val2)"
Dim conn As New SqlConnection("Your Connection string Here")
Dim cmd as New SqlCommand(sql, conn)

Dim param1 As new SqlParameter("@.Val1", SqlDbType.VarChar, 50)
Dim param2 As new SqlParameter("@.Val2", SqlDbType.VarChar, 50)

cmd.Parameters.Add(param1)
cmd.Parameters.Add(param2)

Try
conn.Open()
cmd.ExecuteNonQuery()
Catch ex As Exception
'Not sure how you want to handle exceptions
Finally
conn.Dispose()
End Try

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
********************************************
Think outside the box!
********************************************
<colleen1980@.gmail.comwrote in message
news:1165317810.925443.207280@.79g2000cws.googlegro ups.com...

Quote:

Originally Posted by

Hi: I create two textboxes and a button and try to pass values from the
textboxes into SQL Server by using Save Button Can any one please tell
me do i write some code on save button or i bind the textbox with the
SQL Server fields as i bind the fields in VB.NET
>
Thanks,
>

Passing values into SQL Server

Hi: I create two textboxes and a button and try to pass values from the
textboxes into SQL Server by using Save Button Can any one please tell
me do i write some code on save button or i bind the textbox with the
SQL Server fields as i bind the fields in VB.NET
Thanks,Few controls have automagic binding in a web app. Try something like this:
Dim textbox1Value as TextBox1.Text
Dim textbox2Value as TextBox2.Text
Dim sql as String = "INSERT INTO SomeTable VALUES (@.Val1, @.Val2)"
Dim conn As New SqlConnection("Your Connection string Here")
Dim cmd as New SqlCommand(sql, conn)
Dim param1 As new SqlParameter("@.Val1", SqlDbType.VarChar, 50)
Dim param2 As new SqlParameter("@.Val2", SqlDbType.VarChar, 50)
cmd.Parameters.Add(param1)
cmd.Parameters.Add(param2)
Try
conn.Open()
cmd.ExecuteNonQuery()
Catch ex As Exception
'Not sure how you want to handle exceptions
Finally
conn.Dispose()
End Try
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
****************************************
****
Think outside the box!
****************************************
****
<colleen1980@.gmail.com> wrote in message
news:1165317810.925443.207280@.79g2000cws.googlegroups.com...
> Hi: I create two textboxes and a button and try to pass values from the
> textboxes into SQL Server by using Save Button Can any one please tell
> me do i write some code on save button or i bind the textbox with the
> SQL Server fields as i bind the fields in VB.NET
> Thanks,
>

Saturday, March 24, 2012

Passing Variable to XSLT

I have a ASP.NET application written in VB.net 2003 with a form I am
using to create an export file. Using XslTransform class I have a form
that collects data and executes a stored procedure to pull information
from my SQL Database. I would like to include information from a
textbox on the form in the XSL stylesheet. Can some one please explain
how I can pull information from my code and pass it to the stylesheet?
Thanks
CharlesRead this: http://msdn2.microsoft.com/en-us/library/ts9by56w.aspx
<cbanks@.bjtsupport.com> wrote in message
news:1133885799.818228.237430@.g49g2000cwa.googlegroups.com...
>I have a ASP.NET application written in VB.net 2003 with a form I am
> using to create an export file. Using XslTransform class I have a form
> that collects data and executes a stored procedure to pull information
> from my SQL Database. I would like to include information from a
> textbox on the form in the XSL stylesheet. Can some one please explain
> how I can pull information from my code and pass it to the stylesheet?
> Thanks
> Charles
>
One thing that comes to mind, though I'm sure I'm overcomplicating
it... is to make the XSLT an aspx page (you can specify the
appropriatae content-type in the codebehind) and pass it a query
paramater (MyXslt.xsl.aspx?Id=7). I do this with my ECMAScript
(JavaScript) at times like "GetFirefoxSVGInformation.js.aspx?id=314"
This would work clientside, but should be close on serverside too.
Peter,
Thanks for the quick reply! I'll work with that information.
Charles
Being new to all of this, I need to ask one more question. Once the
variable is passed, how do I insert it into my xslt?
<xsl:for-each select="PrintChecks/tblChecks">
<xsl:text>TRANS CHECK </xsl:text>
<xsl:text></xsl:text><xsl:value-of select="fldFirstName"/>
<xsl:text> </xsl:text><xsl:value-of select="fldLastName"/>
var needs to go here
...
/xsl:for-each
Thanks again.
I was able to figure everything out thanks to the link Peter sent.
Just goes to show ya that a little help from some one in these groups
goes a long way!
Thanks again!
Charles

Wednesday, March 21, 2012

Passing windows credentials from server to server.

Hello,

I have been desperately trying to programmatically authenticate a windows
user, create their credentials, and then redirect them to a different server
while passing the credentials at the same time so that they don't have to
login again.

Specifically, I have two webservers in the same domain. When I have a user
go to Webserver A (which uses basic authentication) I programmatically
create either a user credential or impersonate a user context (for now it's
hardcoded, but in the future it would be entered in forms). Then, I want to
let that user access a page on Webserver B (which uses basic
authentication), but I don't want them to have to login again -- rather, I
want to use the user context that I programmatically created on Webserver A.

For instance, here is an example of the code I use to create the user
credentials:

Dim strURI = "http://www.whatever.com"
Dim myCred As New NetworkCredential("userid", "password", "domain")
Dim myURI As New Uri(strURI)
Dim myCache As New CredentialCache
myCache.Add(myURI, "Basic", myCred)

From this, I have attempted to use WebRequests and WebResponses to somehow
allow me to direct the browser to a different page, and use the credential I
have generated. The most I can do, however, is create the request and
receive the response:

Dim myWebRequest As System.Net.WebRequest =
System.Net.WebRequest.Create(strURI)
myWebRequest.Credentials = myCache
Dim myWebResponse As WebResponse = myWebRequest.GetResponse()

If only I could use the response.redirect method, and somehow pass the
credentials with the redirection (like you can with the webrequest), it
could work!

I have also attempted to use the LogonUser API (from the advapi32.dll), and
impersonate a user based on the proper logon information -- this works, and
I'm able to successfully impersonate the user, but again, I don't know how
to pass along the user context to a different page.

I know that many people will say "just use form based authentication," but
this will not work for me, as I want this to work with tools like Outlook
Web Access, which requires windows authentication.

Any help would be greatly appreciated. Thank you!!

Wadewhile your only option is to use redirect to
http://username:password@.somesite.com (if using basic), I wouldn't do that
either.

anything else -- can't do.

"Wade Wegner" <wwegner23@.hotmail.com> wrote in message
news:OULm1aKzDHA.2116@.TK2MSFTNGP10.phx.gbl...
> Hello,
> I have been desperately trying to programmatically authenticate a windows
> user, create their credentials, and then redirect them to a different
server
> while passing the credentials at the same time so that they don't have to
> login again.
> Specifically, I have two webservers in the same domain. When I have a
user
> go to Webserver A (which uses basic authentication) I programmatically
> create either a user credential or impersonate a user context (for now
it's
> hardcoded, but in the future it would be entered in forms). Then, I want
to
> let that user access a page on Webserver B (which uses basic
> authentication), but I don't want them to have to login again -- rather, I
> want to use the user context that I programmatically created on Webserver
A.
> For instance, here is an example of the code I use to create the user
> credentials:
> Dim strURI = "http://www.whatever.com"
> Dim myCred As New NetworkCredential("userid", "password", "domain")
> Dim myURI As New Uri(strURI)
> Dim myCache As New CredentialCache
> myCache.Add(myURI, "Basic", myCred)
> From this, I have attempted to use WebRequests and WebResponses to somehow
> allow me to direct the browser to a different page, and use the credential
I
> have generated. The most I can do, however, is create the request and
> receive the response:
> Dim myWebRequest As System.Net.WebRequest =
> System.Net.WebRequest.Create(strURI)
> myWebRequest.Credentials = myCache
> Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
> If only I could use the response.redirect method, and somehow pass the
> credentials with the redirection (like you can with the webrequest), it
> could work!
> I have also attempted to use the LogonUser API (from the advapi32.dll),
and
> impersonate a user based on the proper logon information -- this works,
and
> I'm able to successfully impersonate the user, but again, I don't know how
> to pass along the user context to a different page.
> I know that many people will say "just use form based authentication,"
but
> this will not work for me, as I want this to work with tools like Outlook
> Web Access, which requires windows authentication.
> Any help would be greatly appreciated. Thank you!!
> Wade
if they are your own servers, you could set up a webservice to transfer
session info back and forth...

"Wade Wegner" <wwegner23@.hotmail.com> wrote in message
news:OULm1aKzDHA.2116@.TK2MSFTNGP10.phx.gbl...
> Hello,
> I have been desperately trying to programmatically authenticate a windows
> user, create their credentials, and then redirect them to a different
server
> while passing the credentials at the same time so that they don't have to
> login again.
> Specifically, I have two webservers in the same domain. When I have a
user
> go to Webserver A (which uses basic authentication) I programmatically
> create either a user credential or impersonate a user context (for now
it's
> hardcoded, but in the future it would be entered in forms). Then, I want
to
> let that user access a page on Webserver B (which uses basic
> authentication), but I don't want them to have to login again -- rather, I
> want to use the user context that I programmatically created on Webserver
A.
> For instance, here is an example of the code I use to create the user
> credentials:
> Dim strURI = "http://www.whatever.com"
> Dim myCred As New NetworkCredential("userid", "password", "domain")
> Dim myURI As New Uri(strURI)
> Dim myCache As New CredentialCache
> myCache.Add(myURI, "Basic", myCred)
> From this, I have attempted to use WebRequests and WebResponses to somehow
> allow me to direct the browser to a different page, and use the credential
I
> have generated. The most I can do, however, is create the request and
> receive the response:
> Dim myWebRequest As System.Net.WebRequest =
> System.Net.WebRequest.Create(strURI)
> myWebRequest.Credentials = myCache
> Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
> If only I could use the response.redirect method, and somehow pass the
> credentials with the redirection (like you can with the webrequest), it
> could work!
> I have also attempted to use the LogonUser API (from the advapi32.dll),
and
> impersonate a user based on the proper logon information -- this works,
and
> I'm able to successfully impersonate the user, but again, I don't know how
> to pass along the user context to a different page.
> I know that many people will say "just use form based authentication,"
but
> this will not work for me, as I want this to work with tools like Outlook
> Web Access, which requires windows authentication.
> Any help would be greatly appreciated. Thank you!!
> Wade
Huh!

I never you could do that to pass login information to a site with basic
authentication. Is there a name for that? Something that would allow me to
look it up in MSDN? I wonder what the security considerations are. If used
with SSL, is it safe? Etc.

Thanks for the idea, though ... I'll look into it some more.

Wade

"Rad" <aspdotnet@.hot.spam.mail.com> wrote in message
news:hjkHb.212029$I53.8627510@.twister.southeast.rr .com...
> while your only option is to use redirect to
> http://username:password@.somesite.com (if using basic), I wouldn't do that
> either.
> anything else -- can't do.
>
> "Wade Wegner" <wwegner23@.hotmail.com> wrote in message
> news:OULm1aKzDHA.2116@.TK2MSFTNGP10.phx.gbl...
> > Hello,
> > I have been desperately trying to programmatically authenticate a
windows
> > user, create their credentials, and then redirect them to a different
> server
> > while passing the credentials at the same time so that they don't have
to
> > login again.
> > Specifically, I have two webservers in the same domain. When I have a
> user
> > go to Webserver A (which uses basic authentication) I programmatically
> > create either a user credential or impersonate a user context (for now
> it's
> > hardcoded, but in the future it would be entered in forms). Then, I
want
> to
> > let that user access a page on Webserver B (which uses basic
> > authentication), but I don't want them to have to login again -- rather,
I
> > want to use the user context that I programmatically created on
Webserver
> A.
> > For instance, here is an example of the code I use to create the user
> > credentials:
> > Dim strURI = "http://www.whatever.com"
> > Dim myCred As New NetworkCredential("userid", "password", "domain")
> > Dim myURI As New Uri(strURI)
> > Dim myCache As New CredentialCache
> > myCache.Add(myURI, "Basic", myCred)
> > From this, I have attempted to use WebRequests and WebResponses to
somehow
> > allow me to direct the browser to a different page, and use the
credential
> I
> > have generated. The most I can do, however, is create the request and
> > receive the response:
> > Dim myWebRequest As System.Net.WebRequest =
> > System.Net.WebRequest.Create(strURI)
> > myWebRequest.Credentials = myCache
> > Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
> > If only I could use the response.redirect method, and somehow pass the
> > credentials with the redirection (like you can with the webrequest), it
> > could work!
> > I have also attempted to use the LogonUser API (from the advapi32.dll),
> and
> > impersonate a user based on the proper logon information -- this works,
> and
> > I'm able to successfully impersonate the user, but again, I don't know
how
> > to pass along the user context to a different page.
> > I know that many people will say "just use form based authentication,"
> but
> > this will not work for me, as I want this to work with tools like
Outlook
> > Web Access, which requires windows authentication.
> > Any help would be greatly appreciated. Thank you!!
> > Wade
Okay, as I've been playing with the method you mentioned, I've noted the
following.

If I create a login form, and then programmatically create a URL string, and
then redirect to that URL, it prompts me to login. However, if I register a
vbscript that uses window.location to redirect the user to this script, it
doesn't. Does the response.redirect not work?

For example, this is what I use for the response.redirect:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
"@.mydomain.com"

response.redirect(strURL)

That doesn't work, and it prompts me to login.

However, I can get the following to work fine:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
"@.mydomain.com"

Dim txtScript as new System.Text.StringBuilder
txtScript.Append(vbCr & "<script language=vbscript>")
txtScript.Append(vbCr & "window.location = """ & strURL & """")
txtScript.Append(vbCr & "</script>" & vbCr & vbCr)

Page.RegisterStartupScript("redirect", txtScript.ToString)

When I redirect from the client, this works fine. Additionally, if I simply
type in the address into the browser, it works properly.

Any ideas? Will I have to do this from the client?

Thanks,

Wade

"Rad" <aspdotnet@.hot.spam.mail.com> wrote in message
news:hjkHb.212029$I53.8627510@.twister.southeast.rr .com...
> while your only option is to use redirect to
> http://username:password@.somesite.com (if using basic), I wouldn't do that
> either.
> anything else -- can't do.
>
> "Wade Wegner" <wwegner23@.hotmail.com> wrote in message
> news:OULm1aKzDHA.2116@.TK2MSFTNGP10.phx.gbl...
> > Hello,
> > I have been desperately trying to programmatically authenticate a
windows
> > user, create their credentials, and then redirect them to a different
> server
> > while passing the credentials at the same time so that they don't have
to
> > login again.
> > Specifically, I have two webservers in the same domain. When I have a
> user
> > go to Webserver A (which uses basic authentication) I programmatically
> > create either a user credential or impersonate a user context (for now
> it's
> > hardcoded, but in the future it would be entered in forms). Then, I
want
> to
> > let that user access a page on Webserver B (which uses basic
> > authentication), but I don't want them to have to login again -- rather,
I
> > want to use the user context that I programmatically created on
Webserver
> A.
> > For instance, here is an example of the code I use to create the user
> > credentials:
> > Dim strURI = "http://www.whatever.com"
> > Dim myCred As New NetworkCredential("userid", "password", "domain")
> > Dim myURI As New Uri(strURI)
> > Dim myCache As New CredentialCache
> > myCache.Add(myURI, "Basic", myCred)
> > From this, I have attempted to use WebRequests and WebResponses to
somehow
> > allow me to direct the browser to a different page, and use the
credential
> I
> > have generated. The most I can do, however, is create the request and
> > receive the response:
> > Dim myWebRequest As System.Net.WebRequest =
> > System.Net.WebRequest.Create(strURI)
> > myWebRequest.Credentials = myCache
> > Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
> > If only I could use the response.redirect method, and somehow pass the
> > credentials with the redirection (like you can with the webrequest), it
> > could work!
> > I have also attempted to use the LogonUser API (from the advapi32.dll),
> and
> > impersonate a user based on the proper logon information -- this works,
> and
> > I'm able to successfully impersonate the user, but again, I don't know
how
> > to pass along the user context to a different page.
> > I know that many people will say "just use form based authentication,"
> but
> > this will not work for me, as I want this to work with tools like
Outlook
> > Web Access, which requires windows authentication.
> > Any help would be greatly appreciated. Thank you!!
> > Wade
I don't like this approach (of passing credentials like this) at all.. it's
visible in the address bar.. so I'm not sure this is really a good idea.

it's an HTTP thingie.. so you would want to look at it there.. MSDN may have
it.. but may not...

"Wade Wegner" <wwegner23@.hotmail.com> wrote in message
news:uUmNq0hzDHA.1744@.TK2MSFTNGP12.phx.gbl...
> Okay, as I've been playing with the method you mentioned, I've noted the
> following.
> If I create a login form, and then programmatically create a URL string,
and
> then redirect to that URL, it prompts me to login. However, if I register
a
> vbscript that uses window.location to redirect the user to this script, it
> doesn't. Does the response.redirect not work?
> For example, this is what I use for the response.redirect:
> Dim strURL as string
> strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
> "@.mydomain.com"
> response.redirect(strURL)
> That doesn't work, and it prompts me to login.
> However, I can get the following to work fine:
> Dim strURL as string
> strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
> "@.mydomain.com"
> Dim txtScript as new System.Text.StringBuilder
> txtScript.Append(vbCr & "<script language=vbscript>")
> txtScript.Append(vbCr & "window.location = """ & strURL & """")
> txtScript.Append(vbCr & "</script>" & vbCr & vbCr)
> Page.RegisterStartupScript("redirect", txtScript.ToString)
> When I redirect from the client, this works fine. Additionally, if I
simply
> type in the address into the browser, it works properly.
> Any ideas? Will I have to do this from the client?
> Thanks,
> Wade
>
> "Rad" <aspdotnet@.hot.spam.mail.com> wrote in message
> news:hjkHb.212029$I53.8627510@.twister.southeast.rr .com...
> > while your only option is to use redirect to
> > http://username:password@.somesite.com (if using basic), I wouldn't do
that
> > either.
> > anything else -- can't do.
> > "Wade Wegner" <wwegner23@.hotmail.com> wrote in message
> > news:OULm1aKzDHA.2116@.TK2MSFTNGP10.phx.gbl...
> > > Hello,
> > > > I have been desperately trying to programmatically authenticate a
> windows
> > > user, create their credentials, and then redirect them to a different
> > server
> > > while passing the credentials at the same time so that they don't have
> to
> > > login again.
> > > > Specifically, I have two webservers in the same domain. When I have a
> > user
> > > go to Webserver A (which uses basic authentication) I programmatically
> > > create either a user credential or impersonate a user context (for now
> > it's
> > > hardcoded, but in the future it would be entered in forms). Then, I
> want
> > to
> > > let that user access a page on Webserver B (which uses basic
> > > authentication), but I don't want them to have to login again --
rather,
> I
> > > want to use the user context that I programmatically created on
> Webserver
> > A.
> > > > For instance, here is an example of the code I use to create the user
> > > credentials:
> > > > Dim strURI = "http://www.whatever.com"
> > > Dim myCred As New NetworkCredential("userid", "password",
"domain")
> > > Dim myURI As New Uri(strURI)
> > > Dim myCache As New CredentialCache
> > > myCache.Add(myURI, "Basic", myCred)
> > > > From this, I have attempted to use WebRequests and WebResponses to
> somehow
> > > allow me to direct the browser to a different page, and use the
> credential
> > I
> > > have generated. The most I can do, however, is create the request and
> > > receive the response:
> > > > Dim myWebRequest As System.Net.WebRequest =
> > > System.Net.WebRequest.Create(strURI)
> > > myWebRequest.Credentials = myCache
> > > Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
> > > > If only I could use the response.redirect method, and somehow pass the
> > > credentials with the redirection (like you can with the webrequest),
it
> > > could work!
> > > > I have also attempted to use the LogonUser API (from the
advapi32.dll),
> > and
> > > impersonate a user based on the proper logon information -- this
works,
> > and
> > > I'm able to successfully impersonate the user, but again, I don't know
> how
> > > to pass along the user context to a different page.
> > > > I know that many people will say "just use form based authentication,"
> > but
> > > this will not work for me, as I want this to work with tools like
> Outlook
> > > Web Access, which requires windows authentication.
> > > > Any help would be greatly appreciated. Thank you!!
> > > > Wade
> >
See, I do not experience it displaying in the address bar. I have not been
able to find anything in MSDN concerning this, but I started to think that
all this method does is mimic what basic authentication does -- I mean,
basic authentication is unencrypted, clear text. Is employing this method
any different than using basic authentication? In both cases, obviously, it
would be worthwhile to encrypt using SSL.

I still wish I understood why this solution would not work if redirected
from the server, via response.redirect, but will if it is redirected at the
client. Even if this isn't a good solution, I'd like to know the answer to
that.

"Rad" <aspdotnet@.hot.spam.mail.com> wrote in message
news:or3Ib.161313$Vu5.11592556@.twister.southeast.r r.com...
> I don't like this approach (of passing credentials like this) at all..
it's
> visible in the address bar.. so I'm not sure this is really a good idea.
> it's an HTTP thingie.. so you would want to look at it there.. MSDN may
have
> it.. but may not...
> "Wade Wegner" <wwegner23@.hotmail.com> wrote in message
> news:uUmNq0hzDHA.1744@.TK2MSFTNGP12.phx.gbl...
> > Okay, as I've been playing with the method you mentioned, I've noted the
> > following.
> > If I create a login form, and then programmatically create a URL string,
> and
> > then redirect to that URL, it prompts me to login. However, if I
register
> a
> > vbscript that uses window.location to redirect the user to this script,
it
> > doesn't. Does the response.redirect not work?
> > For example, this is what I use for the response.redirect:
> > Dim strURL as string
> > strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
> > "@.mydomain.com"
> > response.redirect(strURL)
> > That doesn't work, and it prompts me to login.
> > However, I can get the following to work fine:
> > Dim strURL as string
> > strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
> > "@.mydomain.com"
> > Dim txtScript as new System.Text.StringBuilder
> > txtScript.Append(vbCr & "<script language=vbscript>")
> > txtScript.Append(vbCr & "window.location = """ & strURL & """")
> > txtScript.Append(vbCr & "</script>" & vbCr & vbCr)
> > Page.RegisterStartupScript("redirect", txtScript.ToString)
> > When I redirect from the client, this works fine. Additionally, if I
> simply
> > type in the address into the browser, it works properly.
> > Any ideas? Will I have to do this from the client?
> > Thanks,
> > Wade
> > "Rad" <aspdotnet@.hot.spam.mail.com> wrote in message
> > news:hjkHb.212029$I53.8627510@.twister.southeast.rr .com...
> > > while your only option is to use redirect to
> > > http://username:password@.somesite.com (if using basic), I wouldn't do
> that
> > > either.
> > > > anything else -- can't do.
> > > > > "Wade Wegner" <wwegner23@.hotmail.com> wrote in message
> > > news:OULm1aKzDHA.2116@.TK2MSFTNGP10.phx.gbl...
> > > > Hello,
> > > > > > I have been desperately trying to programmatically authenticate a
> > windows
> > > > user, create their credentials, and then redirect them to a
different
> > > server
> > > > while passing the credentials at the same time so that they don't
have
> > to
> > > > login again.
> > > > > > Specifically, I have two webservers in the same domain. When I have
a
> > > user
> > > > go to Webserver A (which uses basic authentication) I
programmatically
> > > > create either a user credential or impersonate a user context (for
now
> > > it's
> > > > hardcoded, but in the future it would be entered in forms). Then, I
> > want
> > > to
> > > > let that user access a page on Webserver B (which uses basic
> > > > authentication), but I don't want them to have to login again --
> rather,
> > I
> > > > want to use the user context that I programmatically created on
> > Webserver
> > > A.
> > > > > > For instance, here is an example of the code I use to create the
user
> > > > credentials:
> > > > > > Dim strURI = "http://www.whatever.com"
> > > > Dim myCred As New NetworkCredential("userid", "password",
> "domain")
> > > > Dim myURI As New Uri(strURI)
> > > > Dim myCache As New CredentialCache
> > > > myCache.Add(myURI, "Basic", myCred)
> > > > > > From this, I have attempted to use WebRequests and WebResponses to
> > somehow
> > > > allow me to direct the browser to a different page, and use the
> > credential
> > > I
> > > > have generated. The most I can do, however, is create the request
and
> > > > receive the response:
> > > > > > Dim myWebRequest As System.Net.WebRequest =
> > > > System.Net.WebRequest.Create(strURI)
> > > > myWebRequest.Credentials = myCache
> > > > Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
> > > > > > If only I could use the response.redirect method, and somehow pass
the
> > > > credentials with the redirection (like you can with the webrequest),
> it
> > > > could work!
> > > > > > I have also attempted to use the LogonUser API (from the
> advapi32.dll),
> > > and
> > > > impersonate a user based on the proper logon information -- this
> works,
> > > and
> > > > I'm able to successfully impersonate the user, but again, I don't
know
> > how
> > > > to pass along the user context to a different page.
> > > > > > I know that many people will say "just use form based
authentication,"
> > > but
> > > > this will not work for me, as I want this to work with tools like
> > Outlook
> > > > Web Access, which requires windows authentication.
> > > > > > Any help would be greatly appreciated. Thank you!!
> > > > > > Wade
> > > > > >
Look at HTTP specs... see what it says for 302 (that's what
response.redirect really is)...

as I said, all this is http stuff.. so MSDN may not have it (just like they
dont' have http specs there...) you'd probably want to start looking at
w3c's site

"Wade Wegner" <wwegner23@.hotmail.com> wrote in message
news:%233lbcWuzDHA.2160@.TK2MSFTNGP12.phx.gbl...
> See, I do not experience it displaying in the address bar. I have not
been
> able to find anything in MSDN concerning this, but I started to think that
> all this method does is mimic what basic authentication does -- I mean,
> basic authentication is unencrypted, clear text. Is employing this method
> any different than using basic authentication? In both cases, obviously,
it
> would be worthwhile to encrypt using SSL.
> I still wish I understood why this solution would not work if redirected
> from the server, via response.redirect, but will if it is redirected at
the
> client. Even if this isn't a good solution, I'd like to know the answer
to
> that.
>
> "Rad" <aspdotnet@.hot.spam.mail.com> wrote in message
> news:or3Ib.161313$Vu5.11592556@.twister.southeast.r r.com...
> > I don't like this approach (of passing credentials like this) at all..
> it's
> > visible in the address bar.. so I'm not sure this is really a good idea.
> > it's an HTTP thingie.. so you would want to look at it there.. MSDN may
> have
> > it.. but may not...
> > "Wade Wegner" <wwegner23@.hotmail.com> wrote in message
> > news:uUmNq0hzDHA.1744@.TK2MSFTNGP12.phx.gbl...
> > > Okay, as I've been playing with the method you mentioned, I've noted
the
> > > following.
> > > > If I create a login form, and then programmatically create a URL
string,
> > and
> > > then redirect to that URL, it prompts me to login. However, if I
> register
> > a
> > > vbscript that uses window.location to redirect the user to this
script,
> it
> > > doesn't. Does the response.redirect not work?
> > > > For example, this is what I use for the response.redirect:
> > > > Dim strURL as string
> > > strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
> > > "@.mydomain.com"
> > > > response.redirect(strURL)
> > > > That doesn't work, and it prompts me to login.
> > > > However, I can get the following to work fine:
> > > > Dim strURL as string
> > > strURL = "http://" & txtUserID.Text & ":" & txtPassword.Text &
> > > "@.mydomain.com"
> > > > Dim txtScript as new System.Text.StringBuilder
> > > txtScript.Append(vbCr & "<script language=vbscript>")
> > > txtScript.Append(vbCr & "window.location = """ & strURL & """")
> > > txtScript.Append(vbCr & "</script>" & vbCr & vbCr)
> > > > Page.RegisterStartupScript("redirect", txtScript.ToString)
> > > > When I redirect from the client, this works fine. Additionally, if I
> > simply
> > > type in the address into the browser, it works properly.
> > > > Any ideas? Will I have to do this from the client?
> > > > Thanks,
> > > > Wade
> > > > > > "Rad" <aspdotnet@.hot.spam.mail.com> wrote in message
> > > news:hjkHb.212029$I53.8627510@.twister.southeast.rr .com...
> > > > while your only option is to use redirect to
> > > > http://username:password@.somesite.com (if using basic), I wouldn't
do
> > that
> > > > either.
> > > > > > anything else -- can't do.
> > > > > > > > "Wade Wegner" <wwegner23@.hotmail.com> wrote in message
> > > > news:OULm1aKzDHA.2116@.TK2MSFTNGP10.phx.gbl...
> > > > > Hello,
> > > > > > > > I have been desperately trying to programmatically authenticate a
> > > windows
> > > > > user, create their credentials, and then redirect them to a
> different
> > > > server
> > > > > while passing the credentials at the same time so that they don't
> have
> > > to
> > > > > login again.
> > > > > > > > Specifically, I have two webservers in the same domain. When I
have
> a
> > > > user
> > > > > go to Webserver A (which uses basic authentication) I
> programmatically
> > > > > create either a user credential or impersonate a user context (for
> now
> > > > it's
> > > > > hardcoded, but in the future it would be entered in forms). Then,
I
> > > want
> > > > to
> > > > > let that user access a page on Webserver B (which uses basic
> > > > > authentication), but I don't want them to have to login again --
> > rather,
> > > I
> > > > > want to use the user context that I programmatically created on
> > > Webserver
> > > > A.
> > > > > > > > For instance, here is an example of the code I use to create the
> user
> > > > > credentials:
> > > > > > > > Dim strURI = "http://www.whatever.com"
> > > > > Dim myCred As New NetworkCredential("userid", "password",
> > "domain")
> > > > > Dim myURI As New Uri(strURI)
> > > > > Dim myCache As New CredentialCache
> > > > > myCache.Add(myURI, "Basic", myCred)
> > > > > > > > From this, I have attempted to use WebRequests and WebResponses to
> > > somehow
> > > > > allow me to direct the browser to a different page, and use the
> > > credential
> > > > I
> > > > > have generated. The most I can do, however, is create the request
> and
> > > > > receive the response:
> > > > > > > > Dim myWebRequest As System.Net.WebRequest =
> > > > > System.Net.WebRequest.Create(strURI)
> > > > > myWebRequest.Credentials = myCache
> > > > > Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
> > > > > > > > If only I could use the response.redirect method, and somehow pass
> the
> > > > > credentials with the redirection (like you can with the
webrequest),
> > it
> > > > > could work!
> > > > > > > > I have also attempted to use the LogonUser API (from the
> > advapi32.dll),
> > > > and
> > > > > impersonate a user based on the proper logon information -- this
> > works,
> > > > and
> > > > > I'm able to successfully impersonate the user, but again, I don't
> know
> > > how
> > > > > to pass along the user context to a different page.
> > > > > > > > I know that many people will say "just use form based
> authentication,"
> > > > but
> > > > > this will not work for me, as I want this to work with tools like
> > > Outlook
> > > > > Web Access, which requires windows authentication.
> > > > > > > > Any help would be greatly appreciated. Thank you!!
> > > > > > > > Wade
> > > > > > > > > > > >

Friday, March 16, 2012

password

how i create a textbox for password using web controls

Paramita-

Are you asking how you can adding a TextBox to your page that hides the text input (a.k.a. password mode)?

If so, the solution is very easy. Simply add an ASP.NET Textbox to your page and set its TextMode property to Password, like this:

<asp:textbox runat="server" id="myTxtBox" TextMode="Password" />

Thanks~

Password field

In ASP.Net I would like to create a text box that is a Password Field.
How do I do that ?
When I use the Textbox Field (from Toolbox - Standard), I did not find
anything there that can make it a password field.
When I use the Input (Password) Field (From Toolbox - HTML), in my
Submit command button when I do Request.Form("txtPassword") or
Request.QueryString("txtPassword") it returns nothing.

This is from Page1.aspx
<input id="txtPassword" type="password" />

This is from Page1.aspx.vb:
Protected Sub cmdSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdSubmit.Click
sPassword = Request.Form("txtPassword") --nothing

Thank you.<fiefie.niles@.gmail.comwrote in message
news:1177277182.866667.28220@.b75g2000hsg.googlegro ups.com...

Quote:

Originally Posted by

In ASP.Net I would like to create a text box that is a Password Field.
How do I do that ?


<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" />
When I click on the hyperlink you wrote
news:1177277182.866667.28220@.b75g2000hsg.googlegro ups.com...
it says "Page not found".
Can you please retype the link ? Thank you very much.

On Apr 22, 4:43 pm, "Mark Rae" <m...@.markNOSPAMrae.netwrote:

Quote:

Originally Posted by

<fiefie.ni...@.gmail.comwrote in message
>
news:1177277182.866667.28220@.b75g2000hsg.googlegro ups.com...
>

Quote:

Originally Posted by

In ASP.Net I would like to create a text box that is a Password Field.
How do I do that ?


>
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" />


You can only click on that hyperlink from a newsreader, not from a browser.

Notice the news: protocol

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
<fiefie.niles@.gmail.comwrote in message
news:1177278845.344621.129990@.y80g2000hsf.googlegr oups.com...

Quote:

Originally Posted by

When I click on the hyperlink you wrote
news:1177277182.866667.28220@.b75g2000hsg.googlegro ups.com...
it says "Page not found".
Can you please retype the link ? Thank you very much.
>
On Apr 22, 4:43 pm, "Mark Rae" <m...@.markNOSPAMrae.netwrote:

Quote:

Originally Posted by

><fiefie.ni...@.gmail.comwrote in message
>>
>news:1177277182.866667.28220@.b75g2000hsg.googlegro ups.com...
>>

Quote:

Originally Posted by

In ASP.Net I would like to create a text box that is a Password Field.
How do I do that ?


>>
><asp:TextBox ID="txtPassword" runat="server" TextMode="Password" />


>
>


<fiefie.niles@.gmail.comwrote in message
news:1177278845.344621.129990@.y80g2000hsf.googlegr oups.com...

Quote:

Originally Posted by

When I click on the hyperlink you wrote


What hyperlink...?
See my earlier reply, MArk.

He means the news: protocol hyperlink which is quoted
in your reply because you used a newsreader to reply to him.

He's using a browser...and the news: protocol doesn't work in browsers
unless it also has the double slashes and the server's address.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Mark Rae" <mark@.markNOSPAMrae.netwrote in message news:O5dS0pShHHA.1312@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

<fiefie.niles@.gmail.comwrote in message
news:1177278845.344621.129990@.y80g2000hsf.googlegr oups.com...
>

Quote:

Originally Posted by

>When I click on the hyperlink you wrote


>
What hyperlink...?
>


"Juan T. Llibre" <nomailreplies@.nowhere.comwrote in message
news:ezMak%23ShHHA.3960@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

See my earlier reply, MArk.
>
He means the news: protocol hyperlink which is quoted
in your reply because you used a newsreader to reply to him.
>
He's using a browser...and the news: protocol doesn't work in browsers
unless it also has the double slashes and the server's address.


Ah right...
Oh, I see your reply. I got it. Sorry about the confusion.
That works !
Thanks a lot.

On Apr 22, 5:51 pm, "Mark Rae" <m...@.markNOSPAMrae.netwrote:

Quote:

Originally Posted by

"Juan T. Llibre" <nomailrepl...@.nowhere.comwrote in messagenews:ezMak%23ShHHA.3960@.TK2MSFTNGP02.phx.gb l...
>

Quote:

Originally Posted by

See my earlier reply, MArk.


>

Quote:

Originally Posted by

He means the news: protocol hyperlink which is quoted
in your reply because you used a newsreader to reply to him.


>

Quote:

Originally Posted by

He's using a browser...and the news: protocol doesn't work in browsers
unless it also has the double slashes and the server's address.


>
Ah right...

Password field

In ASP.Net I would like to create a text box that is a Password Field.
How do I do that ?
When I use the Textbox Field (from Toolbox - Standard), I did not find
anything there that can make it a password field.
When I use the Input (Password) Field (From Toolbox - HTML), in my
Submit command button when I do Request.Form("txtPassword") or
Request.QueryString("txtPassword") it returns nothing.
This is from Page1.aspx
<input id="txtPassword" type="password" />
This is from Page1.aspx.vb:
Protected Sub cmdSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdSubmit.Click
sPassword = Request.Form("txtPassword") --> nothing
Thank you.<fiefie.niles@.gmail.com> wrote in message
news:1177277182.866667.28220@.b75g2000hsg.googlegroups.com...

> In ASP.Net I would like to create a text box that is a Password Field.
> How do I do that ?
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" />
When I click on the hyperlink you wrote
news:1177277182.866667.28220@.b75g2000hsg.googlegroups.com...
it says "Page not found".
Can you please retype the link ? Thank you very much.
On Apr 22, 4:43 pm, "Mark Rae" <m...@.markNOSPAMrae.net> wrote:
> <fiefie.ni...@.gmail.com> wrote in message
> news:1177277182.866667.28220@.b75g2000hsg.googlegroups.com...
>
> <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" />
You can only click on that hyperlink from a newsreader, not from a browser.
Notice the news: protocol
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
<fiefie.niles@.gmail.com> wrote in message
news:1177278845.344621.129990@.y80g2000hsf.googlegroups.com...
> When I click on the hyperlink you wrote
> news:1177277182.866667.28220@.b75g2000hsg.googlegroups.com...
> it says "Page not found".
> Can you please retype the link ? Thank you very much.
> On Apr 22, 4:43 pm, "Mark Rae" <m...@.markNOSPAMrae.net> wrote:
>
<fiefie.niles@.gmail.com> wrote in message
news:1177278845.344621.129990@.y80g2000hsf.googlegroups.com...

> When I click on the hyperlink you wrote
What hyperlink...?
See my earlier reply, MArk.
He means the news: protocol hyperlink which is quoted
in your reply because you used a newsreader to reply to him.
He's using a browser...and the news: protocol doesn't work in browsers
unless it also has the double slashes and the server's address.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Mark Rae" <mark@.markNOSPAMrae.net> wrote in message news:O5dS0pShHHA.1312@.TK2MSFTNGP03.phx
.gbl...
> <fiefie.niles@.gmail.com> wrote in message
> news:1177278845.344621.129990@.y80g2000hsf.googlegroups.com...
>
> What hyperlink...?
>
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:ezMak%23ShHHA.3960@.TK2MSFTNGP02.phx.gbl...

> See my earlier reply, MArk.
> He means the news: protocol hyperlink which is quoted
> in your reply because you used a newsreader to reply to him.
> He's using a browser...and the news: protocol doesn't work in browsers
> unless it also has the double slashes and the server's address.
Ah right...
Oh, I see your reply. I got it. Sorry about the confusion.
That works !
Thanks a lot.
On Apr 22, 5:51 pm, "Mark Rae" <m...@.markNOSPAMrae.net> wrote:
> "Juan T. Llibre" <nomailrepl...@.nowhere.com> wrote in messagenews:ezMak%23
ShHHA.3960@.TK2MSFTNGP02.phx.gbl...
>
>
>
> Ah right...