Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #11 (permalink)  
Old April 13th, 2009, 12:05 AM
Authorized User
 
Join Date: Dec 2007
Location: hyderabad, Andhra Pradesh, India.
Posts: 38
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi there,
Code:
   How could i pass the correct url to be mailed??

Dim message AsString = readHtmlPage("http://localhost:3523/ATM-REPORTING/Sups_comp_1nd.aspx?ENTRY_ID=11")
what you were getting by sending this url.Are you getting any error.Please do the small modification in above code as "Dim message as String=readHtmlPage(http://localhost:3523/ATM-REPORTING/...px?ENTRY_ID=11).
__________________
shanwaj
  #12 (permalink)  
Old April 14th, 2009, 08:19 PM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

quote=shanwaj;239327]Hi there,
Code:
   How could i pass the correct url to be mailed??
 
Dim message AsString = readHtmlPage("http://localhost:3523/ATM-REPORTING/Sups_comp_1nd.aspx?ENTRY_ID=11")
what you were getting by sending this url.Are you getting any error.Please do the small modification in above code as "Dim message as String=readHtmlPage(http://localhost:3523/ATM-REPORTING/...?ENTRY_ID=11).[/quote]


Hi shanwaj,

Thanks for your reply.

There is no error when i hard code the entry (ie ENTRY_ID=11) but what i want to do is to
send the ENTRY_ID from the previous page.

when i pass the string as follows
Dim message AsString = readHtmlPage("http://localhost:3523/ATM-REPORTING/Sups_comp_1nd.aspx?ENTRY_ID=" & ENTRY_ID())

I get the error

Error 2 Argument not specified for parameter 'index' of 'Public ReadOnly Default Property Chars(index As Integer) As Char'


how did you pass the cpn() and vid() in your example?? did you use a page load event to
get the values of your variable??
Dim message As String = readHtmlPage("http://www.sixthcense.com/repQuotation.aspx?cp=" & cpn() & "&Id=" & vid())


  #13 (permalink)  
Old April 15th, 2009, 12:30 AM
Authorized User
 
Join Date: Dec 2007
Location: hyderabad, Andhra Pradesh, India.
Posts: 38
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi alredz,

Here cpn() or vpn() are small functions which are returning the values.
For example you want to send a Entry_Id in Query String in code behind page,please create a small function.
Code:
public Function Entry_Id() as Integer  
  Dim Id as Integer = txtEntryId.Text.Trim
return Id
End Function
hope this will help you.
__________________
shanwaj
  #14 (permalink)  
Old April 23rd, 2009, 03:44 AM
Authorized User
 
Join Date: Dec 2007
Location: hyderabad, Andhra Pradesh, India.
Posts: 38
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi Mr.Lee,
Sorry I come back with the same problem,
In my application the root for report pages is
Login.aspx --> company.aspx(The user should select the company name from given drop down box)---->User specific admin page. My package has authenticated by forms authentication.While sending report.aspx as email it was sending login page.For thisI searched in google and I got two good articles which described how to login programmatically.
http://odetocode.com/Articles/162.aspx

http://blogs.iis.net/ksingla/archive...commentmessage

above two articles describing that how to login programmatically.I followed second article and succeeded to login.

But the problem is, Now I am getting company.aspx page while sending report .Here I could not pass the default parameter to company.aspx page becuase it is depend upon user selection.How can I do this.Please help me in this.
__________________
shanwaj
  #15 (permalink)  
Old June 10th, 2009, 01:46 AM
Authorized User
Points: 45, Level: 1
Points: 45, Level: 1 Points: 45, Level: 1 Points: 45, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2009
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default hi

Pls check this link

http://codedefiner.com/aspnetemail.aspx
__________________
Rajendar
  #16 (permalink)  
Old June 10th, 2009, 04:22 AM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hi

Dear Rajendar,

Thanks for your support, I managed to solve my problem.

Cheers!!
  #17 (permalink)  
Old June 10th, 2009, 06:23 AM
Authorized User
 
Join Date: Dec 2007
Location: hyderabad, Andhra Pradesh, India.
Posts: 38
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi Rajender434,

Thanks for your attention.I am sending a webpage which is authenticated by forms authentication.I was success sending a webpage as mail which not authenticated.The problem I am facing is when I am sending the webpage it is redirecting to login page.Now I
resolved the problem a little bit upto programatically login,now in mails it was showing that "Object moved to here".Still I am trying to send as webpage as mail in forms authentication.
__________________
shanwaj

Last edited by shanwaj; June 10th, 2009 at 06:27 AM..




Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending email maitias C# 2005 2 February 17th, 2006 11:24 AM
Sending an email that looks like a webpage. rayncarnation ASP.NET 1.0 and 1.1 Basics 0 October 11th, 2005 09:17 AM
sending email keyvanjan Classic ASP Components 1 May 9th, 2005 05:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.