|
By the way I am using Csharp.net sharp not Vb.net.
|
|
|
|
|
Create a SelectedIndexChanged handler for the first DropDownList control and in the handler set a filter on the DataSource for the Second DropDownList.
led mike
|
|
|
|
|
I am writing my own little DNS resolver class to use in hand with a proxy tester I am writing. Kind of an all in one solution. But the DNS portion keep throwing a socket exception for almost every site/domain you enter. A very good example is that entering www.google.com returns:
System.Net.Sockets.SocketException: No such host is known at System.Net.Dns.GetAddrInfo(String name) at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostEntry(String hostNameOrAddress) at WebTest.DNSTest.DNSLookup(String domain)
However, www.yahoo.com resolves with no issues. I have tried finding out exactly what DNS server the DNS class will use. I have verified the server this runs on has 2 of our internal dns servers configured. Maybe the DNS class doesn't like forwarded DNS queries? But there are no methods for specifying a server to query.
protected bool DNSLookup (string domain) {
try {
//performs the DNS lookup
IPHostEntry he = Dns.GetHostEntry(domain);
IPAddress[] ip_addrs = he.AddressList;
foreach (IPAddress ip in ip_addrs)
{
txtIPs.Text += ip + "<br>";
}
}
catch (Exception ex) {
txtIPs.Text += ex.ToString();
return false;
}
return true;
}
|
|
|
|
|
Dear all,
I have an asp.net web page (feedback form) that has some validators implemented in order to ensure valid data.
I also have a searh textbox and button in header of the page.
My problem is that when I click the search button in the header, its click event is not triggered if there are some validation issues due to the validators.
Is there a method by which I can only trigger the validators when clicking a particular button in the page and not on every button.
Thanks a lot,
Chris
|
|
|
|
|
validations work only when page is postback .. and every button which are using is a asp.net standard control .. so they all will generate post back ..
So i suggest using javascript for validations ,, i might be wrong ,, experts will help you still for time being use javascript to do so
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
You have to use validation Group property of the textbox, button and the validator. Put the common name(like Search group)to this property.So when you click search button then only this validator will work.
|
|
|
|
|
in the search button put this html code as a suggest below:
CausesValidation="false"
hope it will solve ur problem
|
|
|
|
|
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.
|
|
|
|