CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 1/28/2008 7:27:28 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 19 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
20 Items, 1 Pages 1 |< << Go >> >|
roymartian
Asp.Net User
How do you add another control?1/28/2008 7:27:28 AM

0/0

Trying to add another control to classifieds starter kit grateful of any advice on how to do.

 Is it possible to turn "type" as in for sale or wanted into a control?

I have been trying to copy existing location control and duplicate?

Extremely grateful if anyone could step me through the process of creating new control, including databse mods.

If you haven't already guessed I am a beginner trying learn asp.net

Roy.

ashmetry
Asp.Net User
Re: How do you add another control?1/28/2008 4:32:36 PM

0/0

1. Create a New Control and put in the Controls folder

2. Add the code below in the top of the ASPX page you want to add a control to

   <%@ Register TagPrefix="uc1" TagName="MyNewControlName" Src="~/Controls/MyNewControlName.ascx" %>

3. Add <uc1:MyNewControlNameID="myNewControlName" runat="server" /> 

where you want your control to appear in the aspx page

 


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/28/2008 7:55:35 PM

0/0

Thanks Ashmetry,

 I am going to use locationdrop down as basis of my new control but want to pick up "type" info instead, could you also advise on necessary changes to existing locationdrop control to change to "type"

Thanks,

RM

ashmetry
Asp.Net User
Re: How do you add another control?1/28/2008 8:08:46 PM

0/0

Not sure what you mean.

 Are you trying to inherit from LocationDropDown?? and use the inherited control??


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/28/2008 9:20:19 PM

0/0

Sorry,

Being  a bit of an amateur I am going to try and copy an existing control code and modify so I can show the "type" already in the database (For Sale, Wanted)

I am not skilled enough to write a new control, so wanted to copy and modify an existing one, then apply as you previously suggested.

Could you please advise what changes would be reuired, or best approach to write a new control?

Thanks,

Roy.

roymartian
Asp.Net User
Re: How do you add another control?1/28/2008 9:23:43 PM

0/0

Ash,

 By the way v.nice site www.love2trade.com how did you create the zip code search that would be the ultimate for my first page search.

Thanks,

Roy.

ashmetry
Asp.Net User
Re: How do you add another control?1/28/2008 9:42:01 PM

0/0

Thanks! I worked hard on love2trade.com! To do the zipcodes, i purchased a zipcode database from http://www.zip-codes.com/. There is however a cheaper solutions out there, I believe my buddy Daniel (http://www.detelli.com ) was able to get a cheap (maybe free) database.

Also check http://www.spikesolutions.net/ViewSolution.aspx?ID=1e7d197c-7441-40f4-8e87-5ecc3ef5ab60 

You will then need to integrate that with your ads to calculate radius..etc

 

Im still a bit confused with you are trying to do. But the best I would suggest to create a new control is follow the direction i gave you earlier..

Never try to copy code that you dont understand, it will just confuse you.


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/28/2008 9:59:52 PM

0/0

Ash,

I will try and give you an overview, I am basically trying to show 3 drop down menu's for search on default page www.jobfunk.com

1. State (VIC, NSW, SA, WA)

2. Service or trade

3. Location

I have now successfully got service & location but need to add a state drop down which will then provide locations of each state, or ultimately a postcode search.

I don't have alot of skill writing vb, so am unsure about creating a new control.

 Thanks,

Roy.

ashmetry
Asp.Net User
Re: How do you add another control?1/28/2008 10:10:26 PM

0/0

If you basicly want a custom control to display US-States check this

http://www.codeproject.com/KB/webforms/SDIddlStatesPackage.aspx 


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/29/2008 1:56:13 AM

0/0

Thanks Ash,

 Do you know if similiar code is avaialble for Australia - maybe I'll get googling it.

Failing that I will start writing a new control for Aussie states.

 Thanks,

Roy Martian

ashmetry
Asp.Net User
Re: How do you add another control?1/29/2008 2:09:03 PM

0/0

I have no idea. I live in the US : )

Sorry 'mate', wish I can help.

 

 


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/29/2008 7:47:21 PM

0/0

No worries, one last question, do you know how to stop all adverts showing as default on home page and only show when search is clicked?

Whenever I go to my default page all my test ads show prior to completing a search?

Any tips?

Roy.

ashmetry
Asp.Net User
Re: How do you add another control?1/29/2008 7:54:08 PM

0/0

You mean not let search results box show anything when you first visit the website?

or do you want to point www.yourDomainName.com to Default.aspx instead of Search.aspx?


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/29/2008 9:10:56 PM

0/0

Yes, I do not want to see any results when opening default page until a search has been completed.

Been trying to stop this for a while, no real problem now, but as I get more ads will look untidy.

 I am ok, changing "search" to my domain name in Master page (I think).

 Thanks Ash,

Roy.

ashmetry
Asp.Net User
Re: How do you add another control?1/29/2008 9:27:07 PM

0/0

My code is totally different from the original code, but just looking at the original code i would say whats probably causing this is Page_Load Method of Search.aspx

   string categoryQs = Request.QueryString["c"];
   int categoryIdQs = DefaultValues.CategoryIdMinValue;
   if (categoryQs != null)
   {
    if (Int32.TryParse(categoryQs, out categoryIdQs))
    {
     _showCategoryBrowseForTopLevel = true;
    }
   }

   // if no category was specified in the QueryString, we set it the "All Categories" id (0)
   SetCurrentCategory(categoryIdQs);

Try changing that to...

   string categoryQs = Request.QueryString["c"];
   int categoryIdQs = DefaultValues.CategoryIdMinValue;
   if (categoryQs != null)
   {
    if (Int32.TryParse(categoryQs, out categoryIdQs))
    {
     _showCategoryBrowseForTopLevel = true;
    SetCurrentCategory(categoryIdQs); 
    }
   }

   // if no category was specified in the QueryString, we set it the "All Categories" id (0)

 

This is not a compiled code..its just from my head....test it and see...if that doesnt do it then just look for something else that is binding the control during page load.

 


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/30/2008 1:40:25 AM

0/0

Great thanks Ash,

 I will start investigating search.aspx.vb however your suggestion seems like no difference in recommended code to original code?

 Could you please confirm changes that I should test, I will then close this post and stop bugging you!

 Thanks,

Roy.

 ps, You don't know how to adjust password setting for new users so they don't have to use symbols, and can just use letters and numbers. Seems to confuse alot of my users.

Thank you!!!

ashmetry
Asp.Net User
Re: How do you add another control?1/30/2008 3:40:40 PM

0/0

It is different (check the location of setCurrentCategory )..pay closer attention :)

To accept simple passwords modofy your membership provider.

You can do that by setting minRequiredNonalphanumericCharacters to 0.

 

 


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/30/2008 7:51:45 PM

0/0

Good on ya Ash,

Sorry about that re' search.aspx.vb code - I will give it a go.

 Could you tell me which file would in find minRequiredNonalphanumericCharacters in ?

 Big Thanks,

Roy.

 

ashmetry
Asp.Net User
Re: How do you add another control?1/30/2008 8:30:15 PM

0/0

in the web.config file. Do a string search and you'll find it.


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
roymartian
Asp.Net User
Re: How do you add another control?1/30/2008 10:04:35 PM

0/0

 

Thanks Ash you have been a great help.

Good on ya.

20 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Excel Hacks: 100 Industrial-strength Tips and Tools Authors: David Hawley, Raina Hawley, Pages: 283, Published: 2004
Microsoft Office Access 2003: The Complete Reference Authors: Virginia Andersen, Pages: 719, Published: 2003
Field Hockey: Steps to Success Authors: Elizabeth Anders, Susan Myers, Pages: 200, Published: 2008
Upgrading and Repairing Networks Authors: Terry William Ogletree, Scott Mueller, Pages: 1248, Published: 2003
Learn Microsoft Excel 2002 Vba Programming With Xml and Asp: VBA Programming with XML and ASP Authors: Julitta Korol, Pages: 716, Published: 2003
The New 8-Week Cholesterol Cure: The Ultimate Program for Preventing Heart Disease Authors: Robert E. Kowalski, Pages: 448, Published: 2004
Pharmacology for Nursing Care Authors: Richard A. Lehne, Pages: 1283, Published: 2001
Automotive Electrical Handbook Authors: Jim Horner, Inc Staff Inkwell Co, Co Inc Inkwell, Pages: 159, Published: 1986
Computer Architecture: A Quantitative Approach Authors: John L. Hennessy, David A. Patterson, David Goldberg, Krste Asanovic, Pages: 1136, Published: 2003
Access 2003 Bible Authors: Cary N. Prague, Michael R. Irwin, Jennifer Reardon, Pages: 1464, Published: 2003

Web:
How do you add another control? - ASP.NET Forums Re: How do you add another control? 01-29-2008, 8:40 PM. Contact. Answer ... Thank you!!! Re: How do you add another control? 01-30-2008, 10:40 AM. Contact ...
How do I add another IfElseBranchActivity to an IfElseBranch ... How do I add another IfElseBranchActivity to an IfElseBranch control? Thread Starter: pateramj Started: 31 Jul 2008 6:30 PM UTC Replies: 2 ...
How do I add another Domain Name to my Netfirms account ... How do I add another Domain Name to my Netfirms account? ... domain (or initiate a registrar transfer) for free from within the Netfirms Control Panel. ...
Adding silverlight user control in another silverlight control ... then, you said that you want to add another control in user control . .... Option #1: Adding user control to another control in XAML ...
Repeater Control -- Adding another table row : ASP.NET I am trying to add some subtotals to a repeater control. Basically, repeater is bound to a dataset. Each record of the dataset creates a new table row.
Adding Control in another form Computer Science Canada is a community for programmers and students to come and share there knowledge various subjects. We also have many tutorials and tips ...
Compile error when adding a user control to another user control ... I created a user control to handle vendors info (add, updated, etc), now I'm trying to add another user control I created for Ship-methods ...
CodeProject: Another control group for HTML as user interface ... For a radio group , there will be another problem to process. As default of CdhtmlDialog in ... Step 9: Add all files used by control group to your project. ...
ActiveX Controls: Adding Another Custom Property Page In this case, you can add property pages to the ActiveX control to display these ... To create another property page. With your control project open, ...
Add Control To UserForm In Another Workbook - Excel Help Best ... Add Control To UserForm In Another Workbook EXCEL HELP. ... I need to add a control in a form in an another workbook, but the typical use of statement ...

Videos:
Pest Control Video SUBSCRIBE.Just wanted to do another video. Sorry Forgot to add another song. Sarad0min223 nice message :D. Artist.Rise Against - Prayer of the Refug...
Dead Athletes Don't Lie by Dr Joel Wallach "The Centers for Disease Control says that 100,000 young athletes between the ages of 13 and 30 drop dead every year, either during exercise, during ...
Cheating Slows down Metabolism and Obese Mind Control Dog Flu Diet and Diseases Early detection could aid economy Chicago Tribune, United States - 2 hours ago By Lisa Girion | Tribune Newspapers October...
Mechatronics Mechanical System Control - It's the Software! Google Tech Talks September 21, 2006 David Auslander ABSTRACT The history of mechanical system control is one of striving for ever greater complexi...
Option 5 Destination Overdrive II www.ProGuitarShop.com - Option 5 Destination Overdrive II - Building off of the foundations of the original Destination Overdrive sensation, The Dest...
What Part of "Legal" Don't You Understand, Lou? http://www.truthinimmigration.org In an attempt to temper his aggressive rhetoric towards illegal immigration, Lou Dobbs has often claimed that he s...
[GameCube] Resident Evil / BIOHAZARD 4 - 2:06:24 (10/19) Another great segment. One hundred percent accuracy too, I might add. I probably could have shot the first three enemies a bit faster had I zoomed ou...
Way Out Ellen Allien Orchestra Of Bubbles Bpitch Control another video clip for Ellen Allien. Directed by Gaia Bracco
[Rikki and Zane] Kate Alexa - Another now Rikki and Zane music video
HUAWEI E220 USB UMTS installation/instalación in/en vista http://www.in2internet.net Step by step video to configure HUAWEI E220 UMTS/HDSPA 3,6 USB modem in Windows Vista. Subtitles in english and spanish. ...




Search This Site:










how do i make price optional like url? and add unlimited length of time? and change "for sale" title on ad view to something else?

an weird problem

how to deploy the extended starter kit of classifieds on discountasp

how i can deply this kit?

photos classified starter kit?

sql 2000

createuserwizard check box validation problem

how do you get featured add picture to be larger

featured ads

formatting repeater control

classifieds email error? what is this error?

lost my adim password ????

how do i auto load/display the first picture of an ad

an error occured when attaching the database

asp.net 2.0 for dummies classy classified ads db.

making the search function work with item number

how do you create a admin account

how do i install, configure and use this classifieds starter kit

ad counter customization

classifieds site starter kit admin user

sql vs access db

i get this error message when i try to login - please help

codebehind

a bit of a issue "&"

moving photos from db back to upload directory

subsonic (transaction handling in database)

how does featured ad works?

web config file for sqlexpress on remote host.

problem using paging with a repeater in vb. . .

has anyone gotten this application to work in an environment

  Privacy | Contact Us
All Times Are GMT