|
hello,
i have 2 dropdownlist inside a datagrid,based on the selected item of the first dropdownlist i want to bind the second dropdownlist.
pls help
kavitha
|
|
|
|
|
So where is the problem? Bind the first dropdown list and handle the event of the first index changed dropdownlist and fill the second dropdown list.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello,
thanks 4 the reply,problem is ,selectedindexchanged event is not firing for the first dropdownlist since its inside datagrid
kavitha
|
|
|
|
|
Hi,
You can define an event for the first dropdown for onselect event. It is a postback event, in that event you can update the second dropdown.
Ram
|
|
|
|
|
hi,
thanks 4 u reply,the onselect event is not firing since the first dropdwnlist is inside the datagrid
kavitha
|
|
|
|
|
If you have unicode characters in the page markup, save the page as unicode, and specify the unicode encoding (UTF-8) for the page.
Use a unicode field type to store unicode text. For the MS SQL Server database, for an example, the unicode field types are named nvarchar and ntext.
---
b { font-weight: normal; }
|
|
|
|
|
Let say i saw a website consist a table. I need to know what is the font of table, is it arial or what, the border style...how i get it ? any suggestion ?
thanks.
Best regards,
Chee ken
|
|
|
|
|
view source the site
and copy the HTML.
|
|
|
|
|
I want to put a picture as a background to the header of the grid view in asp.net 2.0, how i code it ?
Best regards,
Chee ken
|
|
|
|
|
You may use, TemplateField in the GridView. In that, within the HeaderTemplate you may use a table, and use its 'background' property to Pick the Image URL for the background.
Regards,
Jay
|
|
|
|
|
But i want set it in the themes .skin file, how i define ?
Best regards,
Chee ken
|
|
|
|
|
In the skin file, you can define the gridview with one of the two options below:
<asp:GridView runat="server">
<HeaderStyle CssClass="GVBgImage" />
</asp:GridView>
or
<asp:GridView HeaderStyle-CssClass="GVBgImage" runat="server">
</asp:GridView> You can easily define the GVBgImage stylesheet class that has the background-image attribute.
|
|
|
|
|
Thank you for your answer. That means i need to create another stylesheet (.css)? Cannot direct define inside <asp:gridview runat="server ... > ?
<div class=" forumsig"="">Best regards,
Chee ken
|
|
|
|
|
cheeken2u wrote: That means i need to create another stylesheet (.css)? Cannot direct define inside
You can define it in a seperate style sheet file and put the file in the theme with the skin file. Basically, you cannot define the background image in the gridview control markup as it belongs to the style property and the control cannot understand it.
|
|
|
|
|
thanks. Then the css file must be same file name with skin file ? for example, my skin file name abc.skin , then the css file must be abc.css ?
Best regards,
Chee ken
|
|
|
|
|
cheeken2u wrote: Then the css file must be same file name with skin file
No need, when you specify the theme for the web page the link to the stylesheet of the selected theme is automatically added to the web page.
|
|
|
|
|
Thanks minhpc_bk.
Regards,
Jay
|
|
|
|
|
can any one help me in getting tutorials
1)vs 2005
2)sqlserver 2005
with regards
rk reddy
|
|
|
|
|
You can get so many tutorials on net. Only thing what you need to do is to search it in google. BTW even in Code project you can get so many articles which is targeted for the beginners.
Best Regards,
Apurva Kaushal
|
|
|
|
|
You can ask your smart uncle Google[^].
|
|
|
|
|
|
Hi all,
anybody have idea about caching using dirty flag in database. actually i need to use dirty flag for caching in database and based on that i need to do caching in my application. can any body tell me concept if anybody have idea. and how to do it (Code if there). Thanks in advance
Thanks and Regards
Venkat
|
|
|
|
|
|
Hi, sorry if this seems stupid but I'm a newbie please have a little patience.
I've the following dataset code bound to my gridview
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:NwindConnectionString %>"
selectcommand="SELECT p.ProductID, p.ProductName, p.CategoryID, c.CategoryName FROM Products p inner join Categories c on p.CategoryID = c.CategoryID"
updatecommand="Update Products Set ProductID=@ProductID, ProductName=@ProductName, CategoryID=@CategoryID where ProductID=@ProductID"
deletecommand="delete from products where productid=@productid">
<deleteparameters>
<asp:parameter name="productID" type="Int32">
How can check if a value in a gridview cell already exist in the database?, I use the following to check if the value entered for "ProductName" is null, but I also want to check if the value entered does in fact already exist in my database.
Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
If e.NewValues("ProductName") = "" Then
e.Cancel = True
Return
End If
End Sub
Thanks and best regards.
|
|
|
|
|
IMO, the simple way is to execute a query against the current DB to see if this new value already exists or not.
|
|
|
|