|
I have a table of information that I want to display in a Gridview or a Datalist; when the boolean column "MadeinUSA" is TRUE, I want to display a little .gif flag image in that row of the displayed Gridview or Datalist, instead of just text or a checked checkbox.
With my shaky ASP.NET knowledge, I'm guessing I should do something with a template, inserting the flag image into the list or repeater's template with the Visible property set to "False", and then in the code-behind do something like "If MadeinUSA=1 Visible=TRUE".
So, I have a vague idea of how to do it, but I'm not sure exactly how to structure the syntax to make this work.
Any help would be appreciated!
|
|
|
|
|
hi friends,
i have an asp.net application running in my organization wherein we have the option to click a button on the main home page and then it will show some 10 headings to click all having different report generation criterias...........and whn i click on one of those 10 options it will open up a new web page with certain criterias to generate a report........i just want to know can i add an 11th option (upon clicking it should open up a new form with several report critestias) and all through C#.net........
pls reply asap.........thanking you in anticipation.
Thanks
|
|
|
|
|
I suggest buying a book, aimed at people like you, who obviously know nothing about programming on any level.
Or you can look at the existing 10 links and consider how you'd add an 11th. ( hint: by doing what the existing 10 do )
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Verghese wrote: anticipation
You are anticipating a reply for this crap that you have dumped? Can't you do some basic ground work before asking expert advise in the forums?
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
|
|
|
|
|
oversmart aavaan nokallay.........
Thanks
|
|
|
|
|
I suspect that my question will have an easy answer, but I can't find any mention of it in my ASP.NET books:
I have a table of items where one column is a boolean checkbox field called "Approved". I want to display records from this field in my gridview control only where "Approved" = TRUE.
In order to filter data by this boolean field, should I use a WHERE statement such as "WHERE Approved = 1 ", or an IN operator statement such as "WHERE Approved IN ("TRUE"), or some other construction?
Thank you very much for your help.
|
|
|
|
|
This one
Member 4660234 wrote: WHERE Approved = 1
IN is used for multiple values
WHERE firstName IN ('Jamie','Bob','Fred')
|
|
|
|
|
|
Hi,
I am using Visual Studio 2005 professional Edition. .Net FW 2.0
The Crystal Report version installed in the bundle will be 10.2.xx.xx version.
I have been installed Crystal Reports XI R2 software in my desktop. It's version will be 11.5.xx.xx.
When, I am trying to place a 'CrystalReportViewer' control in my page, it's (.NET Component) version is 10.2.xx.xx version. How can I upgrade the version to 11.5.xx.xx ?
Thanks in Advance.
Jey
|
|
|
|
|
hello all,
I'm running through a problem.....actually i have an website, which contains a masterpage in which menuitems are there.for a particular menuitem i need a master page alongwith some child webpages.i.e. the new master page to be contained in contentplaceholder of outer master page.
I'm using VS 2005.
is there anyway to do that.....kinldy suggest me the possible ways.....
thnx
Russel
|
|
|
|
|
Heres how
http://msdn.microsoft.com/en-us/library/x2b3ktt7.aspx[^]
Another approach is to build up the child pages with ASCX controls. ASCX Controls for headers, footers, menus etc... Then just plonk them on the page, or create instances of the controls in the base page.
J
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Hi
i have recently upgraded to vwd 2008 with framework 3.5.
However my cascading drop down is no longer working, no data is displaying in it.
I am still using the same code.
Has any1 encountered this b4 or heard of a similar bug?
thanks! 
|
|
|
|
|
Strange, is it showing some error ? Make sure the event handlers are hooked. I have seen people loosing the event hooking sometimes.
|
|
|
|
|
What do you mean by check the event handlers are hooked?
thanks!
|
|
|
|
|
Hello,
Excuse the re-post - I asked this a few weeks ago, but stupidly on a Sunday, and got no response, so trying again...
I have cribbed an HttpHandler class to protect certain files on my website, very much along the lines of this article[^]...
(in fact extended to include Word docs, Zip files etc, but the essential code is the same.)
All works fine but for one thing:
If a logged-in user clicks a link to, say, a Word doc, it will open in a new window, and they can then use "File/Save As.." to download it onto their computer. That's fine. But if they right-click the link and choose "Save target as.." and try to save it like that, they will get an "Access denied" message (or "no.jpg" in the example code I linked to.)
What do I need to alter in the code to allow this, without compromising the rest of it?
Presumably, right-clicking means that context.Request.ServerVariables["HTTP_REFERER"] returns null/Nothing.... what else could I use to check for this?
thanks for any ideas..
P
|
|
|
|
|
Please somebody help me.
I'm currently developing a WAP site for our school project.
I use ASP.Net mobile, vs.net 2005, c#) and sql server 2005 as my database.
Can anyone please help me on how am I going to be able to display data with my mobile website from sql server 2005 database?
The sql statements that I need to use are the SELECT and INSERT INTO statements..
I only have 1 week left to finish my project!
Please please help me..
|
|
|
|
|
Surely you just put the sql statements in the code which is currently being used to display your site on your mobile.
The asp.net site is being held where? your server or local machine?
Do you access the site via a web browser on your phone?
|
|
|
|
|
Hi ,
From where we can download the Microsoft Forum source code. Also Which is the best open source forum source which can be easily customizable and easily modified.
|
|
|
|
|
Use this forum, its the best open source I have found:
http://www.yetanotherforum.net/
|
|
|
|
|
|
We have referenced Excel(Interop dlls) for generating excel reports(mainly graphical) and saving it to a excel file and then sending that excel file to client. We don't have excel installed in our server machine. Is there a way by which we can make that functionality working without installing excel in Server?
|
|
|
|
|
I get an XML error when I try to do this from within my view, main.aspx, in Internet Explorer 6 and 7.
And it's only happening when I access the file with IE. In Firefox it is working.
The strange part is that there is no XML in the solution what so ever, none - nada!
main.aspx source:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="main.aspx.vb" Inherits="main" %>
<!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>
<title></title>
<script src="dynamic.js.aspx" type="text/javascript"></script>
</head>
<body>
<h1>test</h1>
</body>
</html>
dynamic.js.aspx source:
<%@ Page Language="VB" %>
Response.AddHeader("Content-Type", "text/javascript")
'Response.setContentType("text/javascript")
alert("js!");
-------------------
What is wrong and how do I fix it?
Thank you.
<div class="ForumMod">modified on Wednesday, May 28, 2008 1:49 AM</div>
|
|
|
|
|
A seperate include file does not get parsed by ASP.NET. You have one line of js there and three syntax errors. The VB code would not work, even if it was inline, because it's totally out of place. You put js in a js file, ASP.NET is not involved.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Oh, I was being sloppy when I created this thread.
In main.aspx, the link to the javascript file should read "dynamic.js.aspx"
|
|
|
|
|
I was working on a bi-lingual asp.net site.. i have a label(lblmessage) to show messages. I have 2 messages to be shown there( if the process is successfull, the a sucess message should be shown else error message should be shown. I have added two string values in resx files
success and failure. I have two languages resource files(default.aspx.resx and default.aspx.fr.resx) I have given the values for success and failure in both files.
During run time how can i show the message from the resource files? i have the current selected language in session object as session["language"].
plz help
thanks and regards
Hari
|
|
|
|