|
niki_nilu wrote: i debug it .
if (drpdwnAnalystName.SelectedItem.Value == "" && dtpFrom.Text == "")
{
flag =0;
}
else if (txtSecurityCode.Text == "" && dtpFrom.Text == "")
{
flag = 1;
}
else if (drpdwnAnalystName.SelectedItem.Value == "" && txtSecurityCode.Text == "")
{
flag = 2;
}
Is your control goes inside all these conditions when you checked with break points ? Try to explain clearly what happened when debugged ?
|
|
|
|
|
hello
when i checked with breakpoint that time control is go inside only first two conditions.
when i check 3 rd condition that time control is go again first condition not third condition.
and so date is not searched.
Gayatri
|
|
|
|
|
niki_nilu wrote: when i check 3 rd condition that time control is go again first condition not third condition.
That means that time flag is 0 so that the first condition executes
please don't forget to vote on the post that helped you.
|
|
|
|
|
When you checked the third condition, what was this dtpFrom.Text returning ? I guess it's a blank value, right ?
|
|
|
|
|
hello
no its not blank value .it have whatever selected date.
gayatri
Gayatri
|
|
|
|
|
I think u need to update ur if conditions ...
What is ur requirement, what i could percieve is u have u have one ddList and two textboxes now tell me what u want.
|
|
|
|
|
I guess u can write ur if condition in another format like..
if(!(dropdown1.SelectedItem.Value == "")
{
}
else if (!(dtFrom.Text==""))
{
}
else if (!(txtSecurityCode.Text ==""))
{
}
|
|
|
|
|
hello
thanku very much
your suggestion is exactly useful.
thanks again
gayatri
Gayatri
|
|
|
|
|
niki_nilu wrote: drpdwnAnalystName
whats wrong with the 'o' key on your keyboard?
and why is this issue always titled 'imp' every time you've posted it?
Enquiring minds need to know.
|
|
|
|
|
J4amieC wrote: and why is this issue always titled 'imp' every time you've posted it?
it's most probably important but like you pointed out, his keyboard packs up at the 'o'.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
I have three level depth for tabs in web user controls with in master page.i want on click on links given in first level, loads the second level web user control , and on click on any link on second level control third level tabs bar should be loaded with in master page....how can i do this ?
|
|
|
|
|
|
|
Where is the mail post?
Apurva Kaushal
|
|
|
|
|
Apurva Kaushal wrote: Where is the mail post?
What is a mail post?:->
its MAIN
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: What is a mail post?
That was a typo.
Apurva Kaushal
|
|
|
|
|
Dim myarr(,) As String
myarr(0, 0) = "aaaa"
myarr(0, 1) = "bbbb"
myarr(1, 0) = "cccc"
myarr(1, 1) = "dddd"
hi friend i am adding value in two dimensional array but it fired exception {"Object reference not set to an instance of an object."}
please help me
Piyush Vardhan Singh
|
|
|
|
|
Piyush Vardhan Singh wrote: Dim myarr(,) As String
You forgot new keyword
|
|
|
|
|
where i add new key add
Piyush Vardhan Singh
|
|
|
|
|
Dim myarr(,) As New String ?
|
|
|
|
|
my dear we can't declare array with new key words
Piyush Vardhan Singh
|
|
|
|
|
Piyush Vardhan Singh wrote: Dim myarr(,) As String
You should specify the array length Dim myarr(2,2) As String
|
|
|
|
|
thank u Boss
Piyush Vardhan Singh
|
|
|
|
|
I am using some Ajax toolkit controls in ASP .NET 2.0 and in the application i am using Tabs..
Inside the Tabs, the webcombos and binded with data on Page Load. On selecting some values from webcombo and submitting them to database, it throws an error message, but values goes to database..
please help me recover this
...this is the error message...
Specified argument was out of the range of valid values.
Parameter name:The DataValueField of VendorID was not found in the columns collection..
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Hi, i am new to ASP.net. I am recently doing a web application using ASP.net but i don't know how to do the login page that connect to MS Access using C#. I had tried the example in the Visual Studio.net 2003 but can't work. I hope i can help here. Thanks...
|
|
|
|