|
hey what is this..!!!!!!
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
He suggested you to search in Google first..
|
|
|
|
|
|
It was a friendly reminder that you ought to do a basic homework search with your preferred search engine before throwing the query to a discussion forum.
Check out forum posting guidelines here: http://www.codeproject.com/scrapbook/forumguidelines.asp[^]
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
|
|
|
|
|
Hi Friends,
i have two dropdowns- one to fill Country Names from Country table and the other one fills the State Names from State table
CountryId is foreign key in State table
When i select the Country name from country dropdown i want to fill States of that country in state dropdown.
this is my query
"select State_Id,State_name from State where country_id ='" & ddlCountry.selectedValue & "'"
How to do this in AJAX in ASP.Net application
can you send sample code
thanks in advance
|
|
|
|
|
I assume you are using AJAX toolkit. If so put your dropdowns inside update panel.
|
|
|
|
|
thanks Navaneeth
we need to give Autopostback is true in AJAX also??
because i have given the below code but SelectedIndexChanged Event of the ddlCountry is not Triggering
This is my html code
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
</asp:UpdatePanel>
<asp:DropDownList ID="ddlCountry" runat="server" >
</asp:DropDownList>
<asp:DropDownList ID="ddlState" runat="server">
</asp:DropDownList>
I tried to give dropdowns inside UpdatePanel but its showing error like
"Type 'System.Web.UI.UpdatePanel' does not have a public property named 'DropDownList'"
|
|
|
|
|
Hi,
put your both Dropdown in Update Panel and Set Autopost back property true for first Dropdown.
Hopen it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
I tried but its giving the same error
|
|
|
|
|
Hi,
what error you are getting.
Plz describe so can help you properly..
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
This is my html code
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
</asp:UpdatePanel>
<asp:DropDownList ID="ddlCountry" runat="server" >
</asp:DropDownList>
<asp:DropDownList ID="ddlState" runat="server">
</asp:DropDownList>
when i give dropdowns inside UpdatePanel its showing error like
"Type 'System.Web.UI.UpdatePanel' does not have a public property named 'DropDownList'"
|
|
|
|
|
|
Thank you Deepak,
I refered that link but in that, Country and State are hardcoded (Storing in Array) but my requirment is I should get from DataBase.
I searched in Google but i dint get sample code using Database.. please guide me
|
|
|
|
|
hi iam writting the if contdition in this way is this condition works
if((st1 <>0 and st2 is null)or(st1 =0 and st2 is not null)) then
do some thing
else
do some thing
end if;
|
|
|
|
|
This is the wrong forum for a SQL question.
No, it's not valid. Variables in a proc start with @.
Actually, that's the least of your worries. Ask in the right forum.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
k sir i start with @ for the variables then it works?think that the variables are having @
|
|
|
|
|
No, it's definately got more issues. I suggest you buy a book on SQL, and that you ask in the right forum. Try providing some context when you post in the SQL forum.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Mr.Christian Graus - Microsoft MVP - C++ thanks 4ur valuable advice now i started to buy a book
|
|
|
|
|
Hi All,
I have one application in asp.net which contains one datatgrid.
I have onr problem with datagrid.I have one buttoncolumn in datagrid.but when i click on that button but that button doesn't responde.what i do?
second problem is when i click on that button i want to take printout of the page.so i want code of printout using asp.net with vb.net.
Thanks
monika
|
|
|
|
|
monika_vasvani wrote: I have onr problem with datagrid.I have one buttoncolumn in datagrid.but when i click on that button but that button doesn't responde.what i do?
Make sure events are attached properly
monika_vasvani wrote: i want to take printout of the page.so i want code of printout using asp.net with vb.net.
Taking print out is not an ASP.NET process. It happens on the client. You can use JS for this. You will get many examples if you do a search on google.
|
|
|
|
|
Hi all,
I have a FormView, which retrieve data from an ObjectDataSource.
In the ItemTemplate of the FormView I have a label which shows a datetime field fo the ObjectDataSource. The Label's Text propery is binded using the following Bind() directive:
Text='<%# Bind("BeginDate", "{0 /M/yyyy}") %>'
In the EditTemplate, I have a TextBox which is binded to the BeginDate field, using the following directive:
Text='<%# Bind("BeginDate", "{0 /M/yyyy}") %>'
As you can see, I want to use a d/M/yyyy data format.
In the ReadOnly state of the form I can see that the date is correctly showed (for example 25/12/2007). When I press the "Edit" button and the formview switch to the Edit state, the date is still showed in a correct format d/M/yyyy.
The issue is the following: when I press the "Update" button, I got a Parsing Exception: the data in the textbox is not a valid DateTime format. If I manually change the data from d/M/yyyy (25/12/2005) in M/d/yyyy (12/25/2007) the update process works!
It seems that when the FormView render the EditTemplate, it use a datetime format d/M/yyyy but when it parse the datetime, it uses the M/d/yyyy datetime format.
I checked the CultureInfo and UICultureInfo and it was set to it-IT.
I set the CultureInfo for the CurrentThread to it-IT, but it didn't solve the problem.
Can you help me?
Thanks
Federico
|
|
|
|
|
Hi Federico,
I have been able to recreate the issue. I would suggest you to please check if the backend server supports the particular date time format.
In my case, I have been able to change the date time format on the SQL Server and have been able to workaround this..
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi Sam,
thanks for your help.
Actually I'm developing my code using the SQL 2005 Express embedded in the VS2005.
During my tests, I saw that the parsing error exception was throw before the execution of the UPDATE query. It seems that it's .NET that wrong doing the parsing of the datetime, because it uses a english date time format.
When I'll move my code on a SQL 2005 server, I wish that the issue will vanish.
Thanks for your help.
Regards.
Federico
|
|
|
|
|
|
Hi All,
I have a problem, i need to include ".inc" file in to my ".aspx" file as i have some code in the inc file which i have to re-use. can any one suggest me how to do this,
I need to include the file to access the database details which are in the ".inc" file.
Thanks in Advance.
chandu
chandu
|
|
|
|