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

Thursday, March 29, 2012

HTML Help

Hi,
I want to create Gradient color in my header (just like in microsoft
site) but we don;t want use the image for that and also it should work
in all browsers (If i use
filter:progid:DXImageTransform.Microsoft.Gradient, it works only in
IE). Please help me to solve this isse.

Thanks,
Jayhttp://slayeroffice.com/code/gradient/
"jaydev" <jaydev2605@.yahoo.comwrote in message news:1158958631.662572.139740@.d34g2000cwd.googlegr oups.com...

Quote:

Originally Posted by

Hi,
I want to create Gradient color in my header (just like in microsoft
site) but we don;t want use the image for that and also it should work
in all browsers (If i use
filter:progid:DXImageTransform.Microsoft.Gradient, it works only in
IE). Please help me to solve this isse.
>
Thanks,
Jay
>

HTML Help

Hi,
I want to create Gradient color in my header (just like in microsoft
site) but we don;t want use the image for that and also it should work
in all browsers (If i use
filter:progid:DXImageTransform.Microsoft.Gradient, it works only in
IE). Please help me to solve this isse.
Thanks,
Jayhttp://slayeroffice.com/code/gradient/
"jaydev" <jaydev2605@.yahoo.com> wrote in message news:1158958631.662572.139740@.d34g2000cwd.
googlegroups.com...
> Hi,
> I want to create Gradient color in my header (just like in microsoft
> site) but we don;t want use the image for that and also it should work
> in all browsers (If i use
> filter:progid:DXImageTransform.Microsoft.Gradient, it works only in
> IE). Please help me to solve this isse.
> Thanks,
> Jay
>

html header/library file

I wanted to create something like C library but for html code to be included in html or aspx html portion. How do I do that? Thanks in advance.Write the code in .inc file and include those where ever u want

Devendra Naik.
what's the exact command to include the .inc file?
I used <!--#include virtual="topnav.inc"--
but it doesn't seems to work.
Anyone??

Saturday, March 24, 2012

Html email with embeded image-background?

Hi

I want to create an email message that has an image background embeded in the email message Itself

Not referenced to an image on the server. Any one can help please.

Thursday, March 22, 2012

HTML Control Name and Id modified of by .Net

Hello...

Can someone help me with this little problem?

I have a Master Page. And with it I did create a new aspx page.

Inside theasp:content of this new page I put a form and some code like this one:

<label for="Offices" runat="server">Office: <select id="Offices" runat="server" /></label>

In the PageLoad of the page I did fill the select. All is OK at moment.

The problem is that .Net changed the name and id of the Select.

The HTML generated is here:

<label for="Oficinas">Oficina:
<select name="ctl00$contenido$Oficinas" id="ctl00_contenido_Oficinas">
<option value="MAIN">MAIN</option>
<option value="OTHER">OTHER</option>
</select>
</label>

I want that .net change the attributeforof thelabeltoo. That automatically add the textctl00_contenido_to it.

How can i do that?

Thanks!

That's because you have <Label... not <asp:Label...

<Label isn't a valid anything......and it's not an Asp.Net control


Curt,

Actually, it shouldn't have to be an ASP Label control. You can add the runat="server" to the HTML label control.

gporras,

you need to add an ID property to the label. Then, you can manipulate the for property in your code behind. I would remove the for="Oficinas" from your markup, and then do something like this in your OnLoad event:

OfficesLabel.Attributes.Add("for",OfficesSelectControl.ClientId);

The trick is the "ClientId" property. The reason you are seeing "ct100_contenido_Oficinas", is because the framework has to generate a unique id for each control, so it does this by prefixing your control's id with the id(s) of the naming container(s). This id will then be stored in the "ClientId" property.

Cheers!

Matt


true... but then what's the point? There are FEW cases where you are better off trying to add server attributes to client controls.

And I'm still not seeing why the OP would even want this though... i have a feeling we're missing something...


Thanks Matt...I did as you told me and it works...

In tha page:

<label runat="server" id="CitiesLabel">

City: <select id="Cities" runat="server" />

</label>

And in the PageLoad:

CitiesLabel.Attributes.Add ( "for", Cities.ClientID ) ;

But I think .Net is working bad here... I told you about 1 label and select.. But in reality I have 15 labels in my page, and now i have to add 15 lines of code by a change that .Net did alone.

.Net should update my labels too... Not me...

Thanks anyway!!!


why are you using <label and not <asp:Label ?

If you need serverside intereaction you really should use the server controls


I tried the <asp:Label but it produces a <span> html label.. Not a <label> what is that I need!

The <asp:Label... don't produces the html <label...


Curt,

Using the attribute runat="server", he has made the <label> a "server control." Perhaps he doesn't like that an asp:Label renders as a <span> and doesn't feel like writing a control adapter.

Matt


Matt-dot-net:

Using the attribute runat="server", he has made the <label> a "server control." Perhaps he doesn't like that an asp:Label renders as a <span> and doesn't feel like writing a control adapter.

In the basest technical terms yes... but its about the same as putting a porche body on your pinto... sure it will pass as one but it's what's under it that matters.

Either way... if that's what he wants to do and it works for him then c'est la vie... it's his choice, he'll have to support it down the road.


Curt_C:

In the basest technical terms yes... but its about the same as putting a porche body on your pinto... sure it will pass as one but it'swhat's under it that matters.

Ok, Curt, I'll bite.

Would you please explain "what's under it" that I am missing?

Thanks,

Matt


predefined events for starters, not to mention they are inherited from different bases. All the html controls are lumped together into one really...at least when you add a runat="server" to them. You dont get the differentiated properties/methods, you dont get anything built in. You'd have to manually do everything.

While it's not bad when doing simple things it will really cause havok later when you start to doing anything more with the controls (from a serverside call).


Thanks, Curt! Generally speaking, I see your point. However, I have to disagree with your opinion that the OP will have problems down the road with this simple label. What server-side events could you possibly want to handle on a label? I'm somewhat of a minimalist and it seems "light-weght" to use something from the HtmlControls namespace as opposed to the WebControls. Anyway, thanks for the explanation and I'll relinquish this thread nowSmile

Matt


actually...I dont think that <label runat="server" is any "lighter weight" then an <asp:Label runat="server" since you now made it a server control, just an HtmlGeneric one instead of a proper Label one...

Like I said though, for simple things it is probably fine... it's just a bad habit to get into.

HTML Contents in GridView Rows Will Not Display as HTML?

Hello all,
I am trying to read a directory listing into a string[] and then use
that data, along with some other data, to create HTML for display in a
gridview row. A sample item in the string[] might look like this...
<div style='vertical-align:middle;'><img src='image.jpb'><a
href='somefile.zip'>somefile.zip</a></div>
I then bind the array to a gridview to show on the form.
This always worked great with a datagrid in VS2003. Now, however, the
gridview handles the HTML differently: if reformats it? What I mean is,
the HTML displays as literal text...the gridview rows really show the
HTML tags (<div>, etc...). When inspecting the page with the browser's
View | Source, I can see that the page has all of the <div> as < div
>. Why is this happening, and how do I fix it? It would be great if
asp.net would not change my code!

HTML Contents in GridView Rows Will Not Display as HTML?

Hello all,

I am trying to read a directory listing into a string[] and then use
that data, along with some other data, to create HTML for display in a
gridview row. A sample item in the string[] might look like this...

<div style='vertical-align:middle;'><img src='image.jpb'><a
href='somefile.zip'>somefile.zip</a></div
I then bind the array to a gridview to show on the form.

This always worked great with a datagrid in VS2003. Now, however, the
gridview handles the HTML differently: if reformats it? What I mean is,
the HTML displays as literal text...the gridview rows really show the
HTML tags (<div>, etc...). When inspecting the page with the browser's
View | Source, I can see that the page has all of the <div> as < div
>. Why is this happening, and how do I fix it? It would be great if
asp.net would not change my code!

Wednesday, March 21, 2012

HTML anchors

Hi,

I have a webpage with alot of text so i want to create anchors (links to other parts of the same page). I have attempted to do this but am having problems.

Here is my code:

<p>
<a href="http://links.10026.com/?link=#A1" style="Z-INDEX: 125; LEFT: 16px; WIDTH: 472px; POSITION: absolute; TOP: 112px">
<font face="Arial" size="2"="ARIAL"><STRONG>Search Page</STRONG></font></FONT></a></p>
<p>

<h1><a name="A1" style="Z-INDEX: 125; LEFT: 16px; WIDTH: 472px; POSITION: absolute; TOP: 288px">
<font face="Arial" size="2"="ARIAL"><STRONG>Search Page</STRONG></font></FONT></a></h1>

Can anyone tell me whether asp.net has the same way of doing anchors as in html or is it different? IF so how do i do this?

ThanksSame as HTML. To link to it,

<a href="http://links.10026.com/?link=#A1">Click here</a>

html + aspx + reportmanager

I would like to create a portal application, to open some aspx pages
and also ReportManager from Reporting Services.
The idea is that my portal page will have a banner and a menu in html,
calling via iframe reportmanager or the aspx pages. Unfortunately the
apsx pages are having very different heights.
Due to this, iframe is not the right choice.
Any idea how I can solve it? What else I can do? The biggest
limitations is that ReportManager is not very customizable.
Please note that the reportviewer is not a solution for me. I would
definitely like to embedd ReportManager in a page.

html + aspx + reportmanager

I would like to create a portal application, to open some aspx pages
and also ReportManager from Reporting Services.
The idea is that my portal page will have a banner and a menu in html,
calling via iframe reportmanager or the aspx pages. Unfortunately the
apsx pages are having very different heights.
Due to this, iframe is not the right choice.
Any idea how I can solve it? What else I can do? The biggest
limitations is that ReportManager is not very customizable.
Please note that the reportviewer is not a solution for me. I would
definitely like to embedd ReportManager in a page.