|
Use tables.insert ten rows and add the table into the datagrid.
|
|
|
|
|
I'm trying to set up iis to work with active directory, but i can't get it working. I have three different virtual machines working as webserver, client and ad domain in vm-ware but i do something wrong which i can not address. I guess there is something wrong with the integration of ad and iis but i can not solve it myself. Any ideas? Login with local accounts on the webserver works but not with ad accounts.
Cheers Navionic
|
|
|
|
|
How to create a custom Calendar control in asp.net web application??
please send me codes, methods or articles, creating calendar components creating calendar asemblies that can solve this problem... please..
nobz
|
|
|
|
|
You can use javascript calender controls. You will good stuff on net if you try it in Google.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I hope this wll help U!
Listing 1: HTML supporting the calendar control.
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="CalendarControl.ascx.vb"
Inherits="Calendar.CalendarControl"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%asp:TextBox id="TextBox1" runat="server"><%/asp:TextBox>
<%INPUT type="button" value="..." onclick="OnClick()"><%br>
<%div id="divCalendar" style="DISPLAY: none; POSITION: absolute">
<%asp:Calendar id="Calendar1" runat="server" BorderWidth="2px"
BackColor="White" Width="200px"
ForeColor="Black" Height="180px" Font-Size="8pt"
Font-Names="Verdana" BorderColor="#999999"
BorderStyle="Outset" DayNameFormat="FirstLetter" CellPadding="4">
<%TodayDayStyle ForeColor="Black" BackColor="#CCCCCC">
<%/TodayDayStyle>
<%SelectorStyle BackColor="#CCCCCC"><%/SelectorStyle>
<%NextPrevStyle VerticalAlign="Bottom"><%/NextPrevStyle>
<%DayHeaderStyle Font-Size="7pt" Font-Bold="True"
BackColor="#CCCCCC"><%/DayHeaderStyle>
<%SelectedDayStyle Font-Bold="True" ForeColor="White"
BackColor="#666666"><%/SelectedDayStyle>
<%TitleStyle Font-Bold="True" BorderColor="Black"
BackColor="#999999"><%/TitleStyle>
<%WeekendDayStyle BackColor="#FFFFCC"><%/WeekendDayStyle>
<%OtherMonthDayStyle ForeColor="#808080"><%/OtherMonthDayStyle>
<%/asp:Calendar>
<%/div>
<%script>
function OnClick()
{
if( divCalendar.style.display == "none")
divCalendar.style.display = "";
else
divCalendar.style.display = "none";
}
<%/script>
Listing 2: The code-behind implementing the SelectionChanged event.
Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
TextBox1.Text = Calendar1.SelectedDate.ToShortDateString()
Dim div As System.Web.UI.Control = Page.FindControl("divCalendar")
If TypeOf div Is HtmlGenericControl Then
CType(div, HtmlGenericControl).Style.Add("display", "none")
End If
End Sub
|
|
|
|
|
|
postbackurl = "javascript://"
|
|
|
|
|
How we can use different DataGrid Events .for example ItemCommand,ItemDataBount etc.
Please provide me guide & code to work with all the columns (i.e. Button Column,Template Column,Bound Column etc.)
I need all code in ASP.NET (C#)
Regards,
Fasih
fasih_is_my_signature
|
|
|
|
|
|
|
You can use datalist to display the comments like that.
BTW the link you given does not redirect to the correct page.
Best Regards,
Apurva Kaushal
|
|
|
|
|
ya, i just managed to do it using datalist.
thanks for the reply
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
another question.
i added a button to datalist and gave an id "tbn1".
how can i write the click event for this button in code behind?
|
|
|
|
|
You can't access that ID directly in codebehind. What you need to do is to find the control in the Onitemdatabound event and then assign the javascript to that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
thanks. i have to do some googling then
|
|
|
|
|
|
thanks for the link. will have a look
|
|
|
|
|
i have a field wth name (active). it is bool.i fill a datagrid with name , lname and active but i want that record has active = true be in first row of data grid . how can i sort it in pageloade? can i use order b active?
|
|
|
|
|
Can't you get the data from the database itself in the order you want?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Dont fill it from System.Data.DataTable. Create a view System.Data.DataView and set the Sort-Property.
BR
Stephan
\\\| \\ - -
( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| <a href=http:
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
Hi
I want use a tree in my project (in c#.asp.net). can any body help me?i dont know any thing about about howcan i use tree in my project.
|
|
|
|
|
|
We have a flash MP3 player that we are integrating with our database application. The mp3 files are stored in the database (SQL Server).
We would like to know how to feed a byte[] array to the src attribute of the flash file, so that we can play the mp3 files without writing them to disk first.
We already have an http handler utility that gets the mp3 files from the database and writes them to the output stream of the response object.
sanjeev
|
|
|
|
|
I want towite a procedure to get data from website:http://www.bidv.com.vn/BSC/op.htm and save it to database but don't how to do. Can anybody help me? Information i need is about stock quote.
Thanks in advance
zappa
|
|
|
|