|
This seems quite similar to the post at the top of the page...
|
|
|
|
|
hi all,
i'm very new to UnitTest the code using the testing tool available in VS2008. Infact i didn't work with unit test yet.i added a test project to the solution.it is asking me to give the bellow details
what values needs to be given in it(DataSet expected, DataSet actual)? from where the values to be taken? guys plz help me....
[TestMethod()]
public void GetFullActiveDefinitionTreeTest()
{
DecisionTreeDataAccess target = new DecisionTreeDataAccess();
int productGroupId = 0;
DataSet expected =null ;
DataSet actual;
actual = target.GetFullActiveDefinitionTree(productGroupId);
Assert.AreEqual(expected, actual);
}
|
|
|
|
|
Dear All
I am developing one application using Asp.Net 2.0 and Sql Server in which I have to access files located on the other machine(server)through map drive.But it is showing runtime error. Please help me with some solution.
|
|
|
|
|
VivekNema wrote: But it is showing runtime error.
Did you have customerrors turned off so that the actual ASP.NET error message could be viewed towards solving this issue?
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
|
|
|
|
|
If you can post the error message that would be a great help
|
|
|
|
|
I have all the controls in an <asp:updatepanel> in content page in an asp.net web app. Issue is that am not able to access the controls in Master page when I access this way ,(Label)Master.FindControl("lblPageMsg");
Am able to access this way when I dont use Update panel.
Any help is appreciated.
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
I think When you are using update Panel might be Label is not present in it. So even if you could access it is not going to update the message.
Are you getting any error ? while accessing the label.
Create a public property in Master Page that will set the text of label
and make sure that your label is present in update panel so that after asynchronous postback it will update the message that you want to show
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
modified on Wednesday, May 28, 2008 3:19 AM
|
|
|
|
|
Hi!I have got two dropdownlist in my page.I wish to change the second ones values based on the values of the first one.The first dropdown list takes its values from a database and the second one searches the id of this value in another database and brings items connected to it.
How can I perform this?Can somebody show me an example doing this?
(I saw some examples but they were all using javascript I want to be able to perform this without using javascript)
Thanks in advance.
|
|
|
|
|
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
|
|
|
|