Thursday, March 29, 2012
HTML Image buttons
I am using HTML image buttons in my web application and
when I run it, all my image buttons are showing up with a
border.
I tried using border="0" with the input tag, but it is
deprecated.
<input border="0" src="http://pics.10026.com/?src=../images/next.jpg"
type="image" onclick="return checkPage('next');"
runat="server"/
Can anyone suggest me an alternative?
Thanks!
HTML Image buttons
I am using HTML image buttons in my web application and
when I run it, all my image buttons are showing up with a
border.
I tried using border="0" with the input tag, but it is
deprecated.
<input border="0" src="http://pics.10026.com/?src=../images/next.jpg"
type="image" onclick="return checkPage('next');"
runat="server"/
Can anyone suggest me an alternative?
Thanks!Hello,
Never had this issue, but you can try applying the "style" attribute
disabling any borders for the input control (provided the border is not the
focus frame indicating the control the keyboard input will be directed to).
You can inhibit the focus rect by adding HIDEFOCUS="true" but this will work
in IE only.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"itsme" <anonymous@.discussions.microsoft.com> wrote in message
news:082401c3984e$d5350a80$a101280a@.phx.gbl...
> Hello,
> I am using HTML image buttons in my web application and
> when I run it, all my image buttons are showing up with a
> border.
> I tried using border="0" with the input tag, but it is
> deprecated.
> <input border="0" src="http://pics.10026.com/?src=../images/next.jpg"
> type="image" onclick="return checkPage('next');"
> runat="server"/>
> Can anyone suggest me an alternative?
> Thanks!
Hello,
Never had this issue, but you can try applying the "style" attribute
disabling any borders for the input control (provided the border is not the
focus frame indicating the control the keyboard input will be directed to).
You can inhibit the focus rect by adding HIDEFOCUS="true" but this will work
in IE only.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"itsme" <anonymous@.discussions.microsoft.com> wrote in message
news:082401c3984e$d5350a80$a101280a@.phx.gbl...
> Hello,
> I am using HTML image buttons in my web application and
> when I run it, all my image buttons are showing up with a
> border.
> I tried using border="0" with the input tag, but it is
> deprecated.
> <input border="0" src="http://pics.10026.com/?src=../images/next.jpg"
> type="image" onclick="return checkPage('next');"
> runat="server"/>
> Can anyone suggest me an alternative?
> Thanks!
html frames and forms authentication
a frame wrapper on their corporate site, so my website will run in a frame
like this.
<frameset rows="134,*" cols="*" framespacing="0" frameborder="NO"
border="0">
<frame src="http://pics.10026.com/?src=http://www.aWebsiteMarketing.com/top.html" name="topFrame"
frameborder="yes" scrolling="NO">
<frame src="http://pics.10026.com/?src=http://www.aWebsiteMarketing.com/bottom.html"
name="mainFrame">
</frameset>
In the bottom.html there is a link to my www.aWebsite.com.
So the URL in the title bar will read http://www.aWebsiteMarketing.com, but
in the bottom frame my website
www.aWebsite.com will be showing.
my www.aWebsite.com requires a login via formsauthentication. the method:
FormsAuthentication.SetAuthCookie(customerID, RememberLogin.checked)
is not working. I don't have this problem on my WinXpsp1, but on any other
Win2k in my office.
this is probably one of the most frustrating things I have ever had to deal
with...
help, ~psb
html frames and forms authentication
a frame wrapper on their corporate site, so my website will run in a frame
like this.
<frameset rows="134,*" cols="*" framespacing="0" frameborder="NO"
border="0">
<frame src="http://pics.10026.com/?src=http://www.aWebsiteMarketing.com/top.html" name="topFrame"
frameborder="yes" scrolling="NO">
<frame src="http://pics.10026.com/?src=http://www.aWebsiteMarketing.com/bottom.html"
name="mainFrame">
</frameset
In the bottom.html there is a link to my www.aWebsite.com.
So the URL in the title bar will read http://www.aWebsiteMarketing.com, but
in the bottom frame my website
www.aWebsite.com will be showing.
my www.aWebsite.com requires a login via formsauthentication. the method:
FormsAuthentication.SetAuthCookie(customerID, RememberLogin.checked)
is not working. I don't have this problem on my WinXpsp1, but on any other
Win2k in my office.
this is probably one of the most frustrating things I have ever had to deal
with...
help, ~psb
Saturday, March 24, 2012
HTML data from a WinHTTP call to an ASPX page
he application will use
WinHTTP to send requests to an ASPX file running IIS 6.0
My problem is that I do not know how to prevent IIS from returning the HTTP
code of the ASPX page.
The client side use something like this to initiate the request:
set obj1 = createobject("WinHttp.WinHttpRequest.5.1")
obj1.SetProxy HTTPREQUEST_PROXYSETTING_DIRECT
obj1.Open "GET", "http://192.168.5.12/poc/winhttp.aspx", vbfalse
And in IIS, the WinHTTP ASPX page has the following
<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" CodeFile="winhttp.aspx.cs" Inh
erits="winhttp" %>
<html>
<body />
</html>
The C# code for now only has this;
public partial class winhttp : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.Write("Data from winhttp.aspx");
}
}
What I receive from the client end is this:
Data from winhttp.aspx
<html>
<body />
</html>
I want to prevent IIS from returning the HTML data of the ASPX page. Can thi
s be done? How?
Regards,
GaetanI posted the original question because VS 2005 was producing the following e
rror message when I
removed all the HTML tags;
Validation(): Element 'html' occurs too few times.
Since then, I found out that I can turning off validations under : Tools ->
Options -> Text Editor
-> HTML -> Validation
Now, if only there were some sort of "#pragma" like feature in VS2005 to tur
n off validations on a
per file basis.
HTML data from a WinHTTP call to an ASPX page
WinHTTP to send requests to an ASPX file running IIS 6.0
My problem is that I do not know how to prevent IIS from returning the HTTP code of the ASPX page.
The client side use something like this to initiate the request:
set obj1 = createobject("WinHttp.WinHttpRequest.5.1")
obj1.SetProxy HTTPREQUEST_PROXYSETTING_DIRECT
obj1.Open "GET", "http://192.168.5.12/poc/winhttp.aspx", vbfalse
And in IIS, the WinHTTP ASPX page has the following
<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" CodeFile="winhttp.aspx.cs" Inherits="winhttp" %>
<html>
<body />
</html
The C# code for now only has this;
public partial class winhttp : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.Write("Data from winhttp.aspx");
}
}
What I receive from the client end is this:
Data from winhttp.aspx
<html>
<body />
</html
I want to prevent IIS from returning the HTML data of the ASPX page. Can this be done? How?
Regards,
GaetanI posted the original question because VS 2005 was producing the following error message when I
removed all the HTML tags;
Validation(): Element 'html' occurs too few times.
Since then, I found out that I can turning off validations under : Tools -> Options -> Text Editor
-> HTML -> Validation
Now, if only there were some sort of "#pragma" like feature in VS2005 to turn off validations on a
per file basis.
Thursday, March 22, 2012
HTML Code
i have a education site, and i have a css quiz, when i run css quiz, its answers compile as html code and don't shown as text
i use > and < insted < and > but those intended as html code, how can i fix it?
string text = "<p>This contains HTML</p>";
Response.Write (Server.HtmlEncode (text));
what is CSS ??
Please read theCSS Introduction at w3schools.com.H_R wrote:
what is CSS ??
CSS = stands forCascadingStyleSheets ?? I tought It is Really something
So what is css quiz?!?!?
i have a education site, and i put some question to my site visitors can examine their CSS exprience, but this css codes compile as html page code, how can i pervent it?
Use the HTMLEncode mentioned previously, or use the <pre></pre> HTML tags to output preformatted text.irani wrote:
i have a education site, and i put some question to my site visitors can examine their CSS exprience, but this css codes compile as html page code, how can i pervent it?
Jeff
Wednesday, March 21, 2012
HTML button
control. i have an onclick event on the .net ide and also in the html side.
my problem is i cant seem to syncronize it so that when i redirect the page,
the necessary data needed will already be available.
document.location.href='./Main2.aspx'" this command is set in the onclick
event on the html side, how can i move this command in the onclick in the
webform event? so that when it changes the URL, all the data i inserted in
the session will be available when the Main2.aspx loads.
thanks.You should not need to move the command anywhere. If the client changes to
another ASP.NET page in the same browser window, the session data should be
available to it.
Eliyahu
"Victor Sayas" <vlsayas@.radixsys.com> wrote in message
news:%23xtnZ4HSEHA.3628@.TK2MSFTNGP12.phx.gbl...
> i have a html button in a webform that i converted to run as web server
> control. i have an onclick event on the .net ide and also in the html
side.
> my problem is i cant seem to syncronize it so that when i redirect the
page,
> the necessary data needed will already be available.
> document.location.href='./Main2.aspx'" this command is set in the onclick
> event on the html side, how can i move this command in the onclick in the
> webform event? so that when it changes the URL, all the data i inserted in
> the session will be available when the Main2.aspx loads.
>
> thanks.
>
HTML button
control. i have an onclick event on the .net ide and also in the html side.
my problem is i cant seem to syncronize it so that when i redirect the page,
the necessary data needed will already be available.
document.location.href='./Main2.aspx'" this command is set in the onclick
event on the html side, how can i move this command in the onclick in the
webform event? so that when it changes the URL, all the data i inserted in
the session will be available when the Main2.aspx loads.
thanks.You should not need to move the command anywhere. If the client changes to
another ASP.NET page in the same browser window, the session data should be
available to it.
Eliyahu
"Victor Sayas" <vlsayas@.radixsys.com> wrote in message
news:%23xtnZ4HSEHA.3628@.TK2MSFTNGP12.phx.gbl...
> i have a html button in a webform that i converted to run as web server
> control. i have an onclick event on the .net ide and also in the html
side.
> my problem is i cant seem to syncronize it so that when i redirect the
page,
> the necessary data needed will already be available.
> document.location.href='./Main2.aspx'" this command is set in the onclick
> event on the html side, how can i move this command in the onclick in the
> webform event? so that when it changes the URL, all the data i inserted in
> the session will be available when the Main2.aspx loads.
>
> thanks.