|
Hai,
I have a grid in my application with the revenue values of a company in one coloumn. I need to validate the data entered in that field and need to change the background color of that perticular field if it contains negetive value.
Thanks in advance......
Chandu.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|
|
Add an event to the control you are willing to validate for value.
eg: textbox1.Attribututes.add("onclick","javascript:checker1();");
in the page load and write your validation script in the javascript.
|
|
|
|
|
Hi,
I’m using Visual Studio 2005 and Access 2000 on Win XP. (I have Access 2007 also, but I’m concerned about backward compatibility.)
After working as a computer programmer for years, I changed careers and became a school teacher. I still love to program, but I have fallen behind on the learning curve. I have plenty of experience with VB6, Access, and SQL Server, but I have zero experience with web apps.
I now want to develop a very simple website that lets students log in and check their grades and missing assignments. Can you suggest a good tutorial/example for a VERY SIMPLE web app that includes MS Access 2000?
Thanks,
Joe
|
|
|
|
|
I typically refer to google, MSDN and here if I have any questions on how to use any controls, methods or designers.
Here^ are the basic tutorials from microsoft. More still on msdn and, of course, all over codeproject. Just search around for objectdatasource and datasets and you'll find some examples that you'll be able to use.
|
|
|
|
|
Thanks ... especially for the asp.net link! I will check out the tutorials.
Joe
|
|
|
|
|
Hi,
The Microsoft set of tutorials has been helpful. Early in the first one, it mentions Style.css. While I have a general understanding of this file's purpose, the author does not detail its contents.
Working through the tutorials (1-3 so far), I am concerned that my results don't resemble those in the tutorial screen-shots (specifically my title, content place holder, and menu are just arranged in separate rows, one after the other).
Should I try to "fix" this now or later? On the one hand, I don't want to get bogged down at this point. I just want a VERY BASIC website that provides basic student access to grades and missing assignments. On the other hand, I don't mind integrating a .css file. Unfortunately, I don't know what to put in Style.css to make my project resemble the one in the tutorial.
Thanks,
Joe
|
|
|
|
|
You may like to check out http://www.dotnetspider.com/projects/[^] for a few sample projects.
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
|
|
|
|
|
Thanks! The sample projects will be very helpful.
Joe
|
|
|
|
|
If you are thinking of talking to a SQL Server database and want to see how modern tools can really make your productivity skyrocket, have a look at the Diamond Binding link in my signature
|
|
|
|
|
Hi Mark,
Thanks for the tip. SQL Server will be the next step, after I get the Access version working.
Because Access is popular in the schools where I work, I am focusing on it for now. This project entails a big web (and to a lesser extent, VS) learning curve for me. My SQL Server is rusty, too (versions 6/7).
Somehow I have to find time to teach the kids, too ... one step at a time.
Thanks,
Joe
|
|
|
|
|
Am developing a web application wherein I have a label in master page which has to get value from the web pages. When I develop a web site, I used to put a method in App_Code.
How do I do it here? Any particular approach to be taken?
Thanks,
simi
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
I'm a bit of an ASP newbie, but I'd either use javascript embeded in the master page or use the findcontrol method to obtain the control I need to modify/retrieve data from.
In both cases, you'll need to know the ID of the control you're looking for.
Yet another option is to search through Page.Controls for the control.
Hope that helps!
|
|
|
|
|
So, I've been dabbling in web development lately and decided to put drop down boxes in a header of a gridview in asp. One problem: since the gridview has 13 columns, I need to keep the drop down fairly small. Firefox takes this rather well. It expands the options inside the select despite the set width of their parent. IE7, on the other hand, isn't smart enough to do this and renders the options with the same width as their parent.
That said there are several solutions out there that involve using divs and radials to emulate select box behavior, and from there one could easily emulate drop down behavior. I think I'll take this approach and make a web control that utilizes the technique.
But my solutions are overly laborious. I'd like to know what solutions the Code Project would take for these shortcomings of IE.
|
|
|
|
|
Hello all,
I was wondering how to change the opacity of an image tag in Firefox, Opera, and Safari with a javascript. I figured out how to do it in IE. I also know that the style for the opacity is opacity or -moz-opacity. It works with IE but not in the other browsers. I believe that it should work but I must be missing something. So if anyone could take a look at this and see if you could find what I am over looking.
Thanks
Chad Dolan
Here is the script I wrote.
var current;
var interval;
var newImage = new Image();
var browser = navigator.appName;
var b_version = navigator.appVersion;
var version = parseFloat(b_version);
function fade(id, new_src)
{
current = document.getElementById(id);
newImage.src = new_src;
if(browser == "Microsoft Internet Explorer")
{
interval = setInterval("makeFadeOutIE()", 10);
}
else
{
interval = setInterval("makeFadeOutOther()", 10);
}
}
function makeFadeOutIE()
{
if(current.filters.alpha.opacity > 0)
{
current.filters.alpha.opacity = current.filters.alpha.opacity - 5;
}
else
{
if(window.interval)
{
clearInterval(interval);
current.src = newImage.src;
interval = setInterval("makeFadeInIE()", 10);
}
}
}
function makeFadeInIE()
{
if(current.filters.alpha.opacity < 100)
{
current.filters.alpha.opacity = current.filters.alpha.opacity + 5;
}
else
{
if(window.interval)
{
clearInterval(interval);
}
}
}
function makeFadeOutOther()
{
if(current.style.opacity > 0)
{
current.style.opacity = current.style.opacity - .05;
}
else
{
if(window.interval)
{
clearInterval(interval);
current.src = newImage.src;
interval = setInterval("makeFadeInOther()", 10);
}
}
}
function makeFadeInOther()
{
if(current.style.opacity < 1)
{
current.style.opacity = current.style.opacity + .05;
}
else
{
if(window.interval)
{
clearInterval(interval);
}
}
}
|
|
|
|
|
|
Michael,
Thanks for the link.
Chad
|
|
|
|
|
Tried downloading a file on a specific location in a Non-proxy environment using InternetOpenURL() and InternetReadFile() API's. This worked fine.
But when i try the same in Proxy Environment it fails. I tried doing HttpQueryInfo() and then checking the status for HTTP_PROXY_AUTH_REQD. This is successful but when i set the username and password for Proxy Authentication and retry, it still gives me status as HTTP_PROXY_AUTH_REQD. If I continue downloading the file then junk characters are downloaded and written to the file.
Need help to make InternetOpenURL work in a Proxy Environment. (Please note that Proxy Server Details are not present with my application and i cannot bypass the Proxy Server)
Thanks in advance.
Ravi.
|
|
|
|
|
Hi,
I want to display 1-4 imagaes next to other with text beneath each image, so my code looks like:
<ul class="ns">
<li><img src="Images/TestCategory.jpg" /></li>
<li><img src="Images/TestCategory.jpg" /></li>
</ul>
..then the images are next to each other, but when I change it to:
<ul class="ns">
<li><img src="Images/TestCategory.jpg" />Laptops</li>
<li><img src="Images/TestCategory.jpg" />Laptops</li>
</ul>
.. the text is to the right of each image. I want it directly beneath it. I have tried to put the Laptops text in a <p></p> but then it shifts the images beneath each other, I want the images next to each other. I have even tried to use a <br /> but also does not work.
Here are my styles:
img{border:solid 1px #ddd;}
ul.ns{margin: 0;padding: 0;}
ul.ns li{display:inline;list-style:none;margin: 0;padding: 0;}
Please can someone help? An example that I am looking to achieve is at:
http://shopping.yahoo.com/b:Computers:21754470;_ylt=Ak_Uh3bW9bRvQHKj0sf2JPsEgFoB;_ylu=X3oDMTBhanZuZW9iBHNlYwNicm93c2U- look at the POPULAR COMPUTERS CATEGORIES block at the top.
Regards,
Brendan
|
|
|
|
|
Assuming your images are all of the same size (?) - say 150px you could try adding:
float:left;text-align:center;width:152px;
to your
ul.ns li
style
|
|
|
|
|
Thanks for this. I placed this inside another parent div with it's own styling, and my div inside this div works fine till I use a float, like in you code. Then the inside div seems to go over the outer div. What can I do so that the outside div expands to the size of the div inside it?
|
|
|
|
|
god knows - I'm not really an expert on CSS (in fact I hate the stuff...) - have you specified a width for the outer div? Maybe remove that, if so...
|
|
|
|
|
I did a clear:both in a div beneath it and it works fine in FireFox. I need to test it in the other browsers as well.
|
|
|
|
|
Hi,
I have this old Web Application built using ASP. There is a common page for some reports where the users make the selections. Then it goes to the specific pages, where the user provides input for the report, then submits them (document.form1.submit()).
I am adding a new report using SQL Reporting. the Page is already there, built by that common page.
The problem is: if I put it in the Form's action - it goes to that specific location, like - my report is in "http://abc/ReportServer/blabla/reportviewer.aspx.." and when I run it, it tries to run from "http://www.xyz.com/reports/abc/ReportServer/blabla........"
See the problem? Because I can not change the common page where there are all the layouts and codes to process user inputs for all the report pages. On the other hand, I want to send the user inputs for processing as well, but to my SQL ReportServer.
Is there any way around it? At least, I want to directly run the SQL Report without worrying about the user inputs for now.
Thanks.
Ekjon.
|
|
|
|
|
Hello friends
how can i make a date time picker function in jsp page with help of javascript ....
if u have any idea regarding tis please do let me know..
|
|
|
|
|
There are a lot of Javascript Calendars on the net. You just need to google it. I used Yahoo UI JS Calendar in my project and I think it's pretty cool.
|
|
|
|