Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > aspx snippets via include?

Reply
Thread Tools

aspx snippets via include?

 
 
=?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
Guest
Posts: n/a
 
      10-20-2006
Hi;

I know we have master pages but do we have the oppisate - can I create a
snippet of aspx code to then include in 2 apsx pages? And if so, how?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


 
Reply With Quote
 
 
 
 
Mark Fitzpatrick
Guest
Posts: n/a
 
      10-20-2006
You create user controls to do this. You can then embed the user control
into any page that you want to.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"David Thielen" <> wrote in message
news:95DAC580-299E-4FCB-8E73-...
> Hi;
>
> I know we have master pages but do we have the oppisate - can I create a
> snippet of aspx code to then include in 2 apsx pages? And if so, how?
>
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
>
> Cubicle Wars - http://www.windwardreports.com/film.htm
>
>



 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      10-23-2006
Thanks for Mark's input.

Also what come to my mind rapidly. You can add inline code expression or
databinding expression in ascx usercontrol and use them in other pages or
even put in template databound control like GridView, DataList...

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
Guest
Posts: n/a
 
      10-23-2006
I know that would work but then I lose the GUI layout tool

What I have are pages in a wizard control that are duplicated so it's a
table with multiple controls, text from resources, etc.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




"Mark Fitzpatrick" wrote:

> You create user controls to do this. You can then embed the user control
> into any page that you want to.
>
> --
> Hope this helps,
> Mark Fitzpatrick
> Former Microsoft FrontPage MVP 199?-2006
>
> "David Thielen" <> wrote in message
> news:95DAC580-299E-4FCB-8E73-...
> > Hi;
> >
> > I know we have master pages but do we have the oppisate - can I create a
> > snippet of aspx code to then include in 2 apsx pages? And if so, how?
> >
> > --
> > thanks - dave
> > david_at_windward_dot_net
> > http://www.windwardreports.com
> >
> > Cubicle Wars - http://www.windwardreports.com/film.htm
> >
> >

>
>
>

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      10-24-2006
Hi Dave,

As you said that

=======================
I know that would work but then I lose the GUI layout tool
=======================

What does the "GUI layout tool" mean?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
Guest
Posts: n/a
 
      10-24-2006
Sorry - Visual Studio - the IDE that lets me see both the code and design view.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




"Steven Cheng[MSFT]" wrote:

> Hi Dave,
>
> As you said that
>
> =======================
> I know that would work but then I lose the GUI layout tool
> =======================
>
> What does the "GUI layout tool" mean?
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      10-25-2006
Thanks for the reply,

So if you use ascx usercontrol, it can be designed visually in the VS IDE
just like aspx page. And each usercontrol also has codebehind to control
code logic. I think it is a good choice as page fragment.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code snippets, tool to convert basic to .snippet xml? Edwin Knoppert ASP .Net 0 11-30-2005 03:45 PM
No code snippets built in yet for C# ASP.NET 2.0 beta? Steve Franks ASP .Net 2 09-11-2005 10:36 AM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM
Where are my Code Snippets? Pat ASP .Net 4 04-23-2005 01:29 PM
Reusing Code Snippets - Steve - ASP .Net 2 10-01-2004 11:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57