|
Do you have a firewall ? What does 'won't work' mean ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
the chat window does not show up on the site just the enter text box and the insert button
|
|
|
|
|
Im thinking it is a problem with the apps iFrame and my browser but im not sure how to check this route I have dell unit with internet express
|
|
|
|
|
learningman wrote: internet express
Internet Express?
|
|
|
|
|
HI i have to use custom paging in gridview in asp.net 2.0 ,
the format i need is : Displayting 1 to pagesize of totalrecords and
<- -="">
Previous Next
Please suggest how can I implement it , i am new to .net 2.0 ,I did not find this format in paging styles availabel in 2.0
|
|
|
|
|
dotnet.coder wrote: the format i need is : Displayting 1 to pagesize of totalrecords and
<- -="">
Previous Next
Can you explain in details, if you talking about button you can change and customize it . but i did not got your point
|
|
|
|
|
Hi,Am not sure whether this is the right place to post this question,pardon me .
i am devoloping a website.Am papplying CSS.I ahev a hyper link.When i move mouse over teh hyper link i want the link displayed as "google" to change the color and enlarge.i tried hover;
a.nav:hover {color: orange;
text-decoration: underline;
}
A:hover
{
color: #09529E;
font-size :larger;
}
But this is not helping me.
My entire code lookds like this;
BODY
{
}
.intro{
FONT-WEIGHT: bold;
FONT-SIZE: 14pt;
font-family: arial;
color:green;
}
.cashback{
FONT-SIZE: 14pt;
COLOR: lime;
FONT-STYLE: italic;
FONT-FAMILY: Arial;
}
.heading{
font-weight:lighter;
FONT-SIZE: 18pt;
COLOR: #09529E;
FONT-FAMILY: Arial;
}
.notavailable{
FONT-SIZE: 9pt;
COLOR: green;
FONT-FAMILY: Arial;
}
.tabs {
PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-WEIGHT: bold; COLOR: #09529E; TEXT-ALIGN: center
}
A:link {
COLOR: #09529E;
TEXT-DECORATION: none;
}
A:visited {
COLOR: #FFFFFF;
TEXT-DECORATION: none;
outline:none;
}
a.nav:hover {color: orange;
text-decoration: underline;
}
A:hover
{
color: #09529E;
font-size :larger;
}
How can i modify this tto so that when my mouse moves over the google hyprelink in my webpage it will enlarge and chage the color.
Thanking You;
|
|
|
|
|
change "A" to "a". Similarly, all of the CSS element names are all supposed to be lower-case (for instance, "PADDING" should be "padding").
Also, CSS ID names and class names are also case-sensitive. If you declared "myClass" in your style sheet, you MUST use it as "myClass" in your html. Any variation in case from the declared name will be ignored.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
Thanks,but still the issue persists;
My source:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link rel="Stylesheet" href="customer.css" />
</head>
<body>
<form id="form1" runat="server"><br />
<br/>
<br/>
<div class="cashback" > <asp:HyperLink ID="HyperLink1" CssClass="tabs" runat="server" NavigateUrl="http://www.google.co.in" BackColor="Transparent" BorderColor="#FFC0C0">Google</asp:HyperLink></div><br/>
<br/>
<div class="intro">
Program </div>
<div class="cashback">
Get Cash back </div>
<br/>
<div class="notavailable">
Please inquire with your local
company .</div>
<br/>
<div class="heading">
Mission Statement
</div>
<br/>
Our mission has been simply stated and vigorously followed.
<br/>
<br/>
<div class="heading">Brief History</div>
<br/>
We xxxxxxxxx
</form>
</body>
</html>
My CSS:
BODY
{
}
.intro{
font-weight: bold;
font-size: 14pt;
font-family: arial;
color:green;
}
.cashback{
font-size: 14pt;
color: lime;
font-style: italic;
font-family: Arial;
}
.heading{
font-weight:lighter;
font-size: 18pt;
color: #09529E;
font-family: Arial;
}
.notavailable{
font-size: 9pt;
color: green;
font-family: Arial;
}
.tabs {
padding-right: 5px; padding-left: 5px; font-weight: bold; color: #09529E; text-align: center
}
A.tabs:link {
color: #09529E;
text-decoration: none;
}
A.tabs:visited {
color: #FFFFFF;
text-decoration: none;
outline:none;
}
a.tabs:hover {color: orange;
text-decoration: underline;
}
A.tabs:active
{
color: lime
}
May be this will help
Thanking you,
|
|
|
|
|
Change "A" to "a". You still have "A.tabs"
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Please be courteous to your reader and correct typos!
"So what's the future like? Are there flying cars and everything's clean?"
"No, the cars are still on the ground and it's even dirtier, but we're working on it."
From: Quantum Leap (not verbatim)
{o,o}.oO( Want a great RSS reader? Try FeedBeast! )
|)””’) ( Check out my profile for a special CodeProject deal! )
-”-”-
|
|
|
|
|
Hi,
Thanks now it works.
Thanks for the help.
I changed it like this
BODY
{
}
.intro{
font-weight: bold;
font-size: 14pt;
font-family: arial;
color:green;
}
.cashback{
font-size: 14pt;
color: lime;
font-style: italic;
font-family: Arial;
}
.heading{
font-weight:lighter;
font-size: 18pt;
color: #09529E;
font-family: Arial;
}
.notavailable{
font-size: 9pt;
color: green;
font-family: Arial;
}
.tabs {
padding-right: 5px; padding-left: 5px;
font-weight: bold; color: #09529E; text-align: center;
text-decoration: none;line-height:24px;
}
a.tabs:link {
color: #09529E;
text-decoration: none;
}
a.tabs:visited {
color: #000000;
text-decoration: none;
outline:none;
}
a.tabs:hover {color: orange;
text-decoration: none;font-size: 24pt;
}
a.tabs:active
{
color: lime;
}
Thanks again
|
|
|
|
|
Using .Net 2.0...
I'm currently using my own user management stuff, but I've come to realize that I need part of the Membership functionality of .Net. Here's my setup:
1) I'm using MySql for the database. This fact is not open for discussion beyond answering my question, don't waste your time trying to convince me to use Sql Server. The provider I'm using supports the .Net Membership/roles stuff.
2) Registration includes a number of fields as well as a captcha system.
3) When the user registers, an email is sent to his/her email address with an activation code.
4) When the user activates the account (by clicking on the url in the email he was sent), he is then permitted to log in to the site.
When I'm done converting to the M.Net membership stuff, I want all of the above to work as before.
Currently, all pages of the site are in the site's root folder. I want to move all of the members-only pages to a sub-folder. I DO NOT want to use the .Net membership registration or login controls. Again, please don't ask why, just make the mental leap.
Can someone guide me as to what I need to do to effect this change?
I'm using a massaged version of this Codeproject article[^] for my provider code.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Saturday, January 19, 2008 10:37:22 AM
|
|
|
|
|
|
Do not repost the same question if no one answers the first time. This is the same thing you just asked. Reposting same question is also considered rude.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I have a form with some read-only TextBox controls on it.
<asp:TextBox ID="Total1" ReadOnly="true" maxlength="2" columns="1" runat="server" />
These controls are being populated by a javascript function as the user enters data elsewhere on the form. When I try to read these values after the user clicks the submit button with this code:
int x = Convert.ToInt32(this.Total1.Text);
the Text property shows "0", despite showing another value on the screen. If the javascript can set the text on the screen, why doesn't the .Net code read the correct value from the control?
What am I doing wrong?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
use
ContentEditable="false"
insted of Readonly property, if you use ReadOnly="true" it lost data when postback.
I have faced same problem and i have that solluation
let me know when done
|
|
|
|
|
I found another solution as well:
Create this class:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace MyWebControls
{
public class TextBox : System.Web.UI.WebControls.TextBox
{
public override bool ReadOnly
{
get
{
return false;
}
set
{
if (value)
{
this.Attributes.Add("readonly", "readonly");
}
else
{
this.Attributes.Remove("readonly");
}
}
}
}
}
Add the following to your web.config:
<system.web>
<pages>
<tagMapping>
<add tagType="System.Web.UI.WebControls.TextBox" mappedTagType="MyWebControls.TextBox"/>
</tagMapping>
</pages>
</system.web>
But I'll give your thing a go because that is a lot lower effort.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Greate Idea.
I have one more solluation ..... just Readonly the text box when page load and Flase it when postback
|
|
|
|
|
amazing solution.. I also faced that problem with panel control.
|
|
|
|
|
The ContentEditable property does not exist for asp:TextBox (at least, not in .Net 2.0).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: The ContentEditable property does not exist for asp:TextBox (at least, not in .Net 2.0).
Yes it does not exist .. But It Support !!!
Did you try this one ? . You will get a warning but your problem will solve.
|
|
|
|
|
It's generally not advisable to use undocumented functionality (and I don't allow compiler warnings in any of my code). I think I'll stick with the property overload.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
If the Design/ASPX view of Visual Studio is complaining of the error, you can actually emit the property and its associated value using .Attributes.Add from the CodeBehind.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Read through the scenario.
client A wants to read files from another client B present in the same network. But this reading should be done through a ASP.NET web application . In other words a client should be able to read a text file present on another client in the same network.
This scenario would be applicable in an intranet application. The thing to note is that the path of client B would be present in the server. The client A would pick the path from the server and navigate automatically to client B, hunt down the necessary folder and read the text files and store the necessary data in a database.
Here is the code on which I am working
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
DataTable dt = new DataTable();<br />
<br />
<br />
StreamReader sr = new StreamReader(@"\\Pc4\C$\NDP\Test1.csv");<br />
string line;<br />
while((line = sr.ReadLine()) != null)<br />
{<br />
Label1.Text += line;<br />
<br />
<br />
}<br />
<br />
}
The client A when he executes this code is intending to access another client B (Here it is PC4 in the same domain).
The code resides on server in Win 2K3 box.
I have identity impersonate="true" in web.config. In the Directory security I have Anonymous Access and Windows Authentication turned on.
So the basic flow is
Client A User requests through browser an aspx file residing on the server. On the form provided by the aspx file he clicks on the button to open a file in a location specified in the above mentioned code. This location is present on a machine (named PC4) which belongs in the same domain as client A. The NDP folder mentioned in the path is also shared and contains access permissions for user account who is making request as client A.
When I click on the button, it gives me a HTTP 404 error - stating File or Directory not found.
In the address bar I get to see
http://192.168.0.1/abtsweb/Genericerrorpage.htm?aspxerrorpath=/abtsweb/readingtextfile.aspx
Now what should be done in this case.
|
|
|
|