CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 4/17/2007 2:49:35 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
darkknight187
Asp.Net User
Need help passing AdId Information to a New window4/17/2007 2:49:35 AM

0/0

I've been messing with the code all day now, and I've got nothing to show for it.

What I'm trying to do is I have set it up to allow 6 images on the showad page, and there is a link underneath it to display more images.

The link will open a new window, but it is not carring over the "AdId" My code for the link is:

<asp:LinkButton ID="PhotoTour" runat="server" PostBackUrl="PhotoTour.aspx" OnClientClick="javascript:window.open('PhotoTour.aspx', '_new', 'scrollbars=yes,menubar=no,status=no,resizable=yes,width=700,height=650');return false;"

CssClass="style11">More Photos . . .</asp:LinkButton>

 

 I'm thinking there's something I should be adding in the code behind file on the page_load event, which is currently:

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

' Check if the URL querystring contains a valid ad.

Dim adId As Integer = DefaultValues.IdNullValue

Dim adIdQs As String = Request.QueryString("id")

If Not (adIdQs Is Nothing) AndAlso Not (Int32.TryParse(adIdQs, adId)) Then

Response.Redirect(

"~/Search.aspx")

End If

If Not Page.IsPostBack Then

If User.Identity.IsAuthenticated Then

Me.ResponseContactEmailTextBox.Text = Membership.GetUser().Email

Me.EmailSenderAddressTextBox.Text = Membership.GetUser().Email

Me.ResponseContactNameTextBox.Text = Profile.FirstName & " " & Profile.LastName

Me.EmailSenderNameTextBox.Text = Profile.FirstName & " " & Profile.LastName

End If

End If

End Sub

 

 Trying to get this right I even completely copied the "showad" page and built the new window off of that, no luck though.

 Thank you in advance

 

 

 


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
akhhttar
Asp.Net User
Re: Need help passing AdId Information to a New window4/17/2007 4:43:01 AM

0/0

Hi Dear,

Do you want to provide 'adid' with querystring to new window?

if i guess correctly then use following code

Client Side Code:

function showImagePopuUp(AdID)

{

var urlstring = "PhotoTour.aspx?Id="+ AdID;

AddWin=window.open(urlstring,

'_new', 'scrollbars=yes,menubar=no,status=no,resizable=yes,width=700,height=650');

return false;

}

Server Side Code:

<asp:LinkButton ID="PhotoTour" runat="server" PostBackUrl="PhotoTour.aspx" CssClass="style11">More Photos . . .</asp:LinkButton>  

 

On Page Load

PhotoTour.Attributes.Add(

"onClick", "return showImagePopuUp(" + YourAddIdVariable.toString() +  ");")

 

Thanks

Best Regards,

Muhammad Akhtar Shiekh

 


Please remember to mark the appropriate replies as answer after your question is solved, thanks
darkknight187
Asp.Net User
Re: Need help passing AdId Information to a New window4/17/2007 4:24:41 PM

0/0

You really are my hero, It took a minute to get all of the unneeded code out of there that was in the original showad, but it passed along the adid which made the rest of it simple.

Thanks again.


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Dreamweaver MX: The Missing Manual Authors: David Sawyer McFarland, David McFarland, Pages: 779, Published: 2002
Zeitgeist: A Novel of Metamorphosis Authors: Bruce Sterling, Pages: 293, Published: 2000

Web:
Need help passing AdId Information to a New window - ASP.NET Forums Need help passing AdId Information to a New window. Last post 04-17-2007 12:24 PM by darkknight187. 2 replies. Sort Posts: ...
Need help passing AdId Information to a New window - ASP.NET Forums Re: Need help passing AdId Information to a New window. 04-17-2007, 12:43 AM. Contact. Answer ... Re: Need help passing AdId Information to a New window ...
Multiple Slideshow Need Help Please? Look at my site [Archive ... View Full Version : Multiple Slideshow Need Help Please? Look at my site ... // do NOT edit pass this line var preloadedimages=new Array() ...
Amazon.com: adidas Men's ClimaLite X Quarter 2-Pack: Apparel I highly advise passing on any Adidas ClimaLite socks, not just this particular model. .... See featured Amapedia.com articles opens new browser window ...
Amazon.co.uk: Adidas ADH1167 Stainless Steel Mens Bracelet ... Watch Information. Brand: adidas. Model Number: ADH1167 ... It has an enlarged date window and precision 60 minute chronograph movement type. ...
Help Reduce Storm Water in Sanitary Sewer System If your meter socket is in need of repair and is located within ... A new set of window guidelines has. been created for those considering ...
Pug Puppy! ($239.99) 6 months old outdoor-trained + most shots Select "Help" from the menu at the top of your browser. ... a new browser window will open with the information you need to change your JavaScript Settings, ...
Amazon.com: Reebok Men's Passing Shot Tennis Shoe,White/Navy/Red ... ... at Amapedia.com. opens new browser window › See featured Amapedia.com articles opens new browser window ... Need Help? Forgot your password? Click here. ...
Can we have our ball back please? | Sport | guardian.co.uk Adidas says the new Euro Pass football's "surface structure allows players to control and ... If you need help using the site: [email protected] ...
PGA European Tour - Equipment Earlier this month TaylorMade-adidas Golf Tour Staff professional Peter Hanson putted his ... Go to the Jumeirah Golf Estates website - opens in new window ...

Videos:
"How to Survive a Robot Uprising" - Daniel H. Wilson speaks at Google Daniel H. Wilson discusses his book "How to Survive a Robot Uprising: Tips On Defending Yourself Against the Coming Rebellion". This video is part of...




Search This Site:










menu: missing features: disappearafter and float

asp.net 2.0 security

flash menu

help! site upgrade to 3.2.2 failure...

horribly slow built time

visual web developer 2008 express closes automatically

does anybody in here successfully customize the createuserwizard in vwd05?

need to retrieve the name of the user that's logged on

content management problem

session state

custom module feature --- zip multiple files and download

sharepoint vs dotnetnuke. price not concern. need help

auction algo

dotnetnuke resource site

object reference not set to an instance of an object (user controls)

role permissions

i cant able to drag the web control in vs2005 as like in vs2003

newbie question file upload

dnn4 solpart menu changes?

how can i call a user control many times?

custom membership provider for 3 groups of users

weird problems upgrading to net 2.0

issues with windows integrated authentication

please help, how to make dataset's information accessible in other procedures in webform

[2.0] - mobile support

dynamically add style.css file

login control images don't render problem

gaining access to user data? is it possible?

files in my /code directory act like they are readonly

how do i extend the announcements module to include more userprofile info?

 
All Times Are GMT