Hi I have a menu, and i want when i click on one of item, that item be opened and i can show the sub menu when i click on sub items, and it cloesd if i change the top menu plz help more thanks
ptvce
Posts
-
active opened menu -
binding gridviewHi i bind a gridview and one of the column show the data this form "aaa#;7" i want show just "aaa", how can i remove "#;7" from the end of data in gridview column when it bindings. Thnaks
-
radiobuttonlist change event with javascriptI have 2 RadioButtonList rdBtnPersonel_Status and rdBtnPersonel_FoodStatus i wrote :
<asp:RadioButtonList runat="server" ID="rdBtnPersonel_Status" RepeatDirection="Horizontal" Width="100%"
DataSourceID="ObjDsPersonelStatuses" onclick="javascript:radioButtonListOnClick('<%#((RadiobuttonList)Container.FindControl("rdBtnPersonel_Status")).ClientID %>');"></asp:RadioButtonList>
i want when i click rdBtnPersonel_Status , if the valu eual A the rdBtnPersonel_FoodStatus be disabled. (with javascript) can any body help me?
-
repeater in c#i use OnItemCreated in repeater like :
<asp:Repeater runat="server" ID="DaysRepeater" DataSourceID="ObjDsDaysRepeater" OnItemCreated="DaysRepeater_ItemCreated">
<ItemTemplate>and
protected void DaysRepeater_ItemCreated(object sender, RepeaterItemEventArgs e)
{}
protected void PersonelsRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataModel model = new DataModel(); Label label = (Label)((Repeater)sender).Parent.FindControl("lblCurrentDate"); int num = Convert.ToInt32(label.Text); if ((e.Item.ItemType == ListItemType.AlternatingItem) || (e.Item.ItemType == ListItemType.Item)) { DataTable totalIssuancePersonelDataWithID = model.GetTotalIssuancePersonelDataWithID(this._wfItemId); if (totalIssuancePersonelDataWithID != null) { } but in debug none of the function didnt run Does any body know what can i do?
-
Export GridView to Excel cause System.OutOfMemoryExceptionits better that i transfer that directly into Excel but i dont know how can i do this, just i know bind a gridview and then convert it to excel
-
Export GridView to Excel cause System.OutOfMemoryExceptionI want to export GridView (25000 records) to Excel. But i got an error message like : System.OutOfMemoryException was Thrown. But i need to export the records (even more than 25000 records) to excel How to solve this ?
-
Read/write directly to a specific sector in a hard diskHi I Saw this sample but it doesnt tell how can i write in sector, this sample just show total size of sector in disk :(
-
Read/write directly to a specific sector in a hard diskhow can Read/write directly to a specific sector in a hard disk with c# Please help me if anybody know
-
OutOfMemoryExceptioni write this code : when i debuged , in line 5 i see this error : "Exception of type 'System.OutOfMemoryException' was thrown." do u know what should i do? 1- HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWriter); 2- DataGrid DataGrd = new DataGrid(); 3- DataGrd.DataSource = dsGrid; 4- DataGrd.DataBind(); 5- DataGrd.RenderControl(htmlWrite);
-
read and write sector of hard disk in windows 7 and up versiondoes any body know how can read and write the hard disk sector with c# not assemblly? thanks
-
exception of type 'system.outofmemoryexception' was thrownIm writing this code for display data in excel, try { string Path = "G:\\AjanceReport\\TotalReportExcelfile_" + DateTime.Now.Day.ToString() + "_" + DateTime.Now.Month.ToString() + ".xls"; FileInfo FI = new FileInfo(Path); StringWriter stringWriter = new StringWriter(); HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWriter); DataGrid DataGrd = new DataGrid(); DataGrd.DataSource = dsGrid; DataGrd.DataBind(); DataGrd.RenderControl(htmlWrite); string directory = Path.Substring(0, Path.LastIndexOf("\\"));// GetDirectory(Path); if (!Directory.Exists(directory)) { Directory.CreateDirectory(directory); } System.IO.StreamWriter vw = new System.IO.StreamWriter(Path, true); stringWriter.ToString().Normalize(); vw.Write(stringWriter.ToString()); vw.Flush(); vw.Close(); WriteAttachment(FI.Name, "application/vnd.ms-excel", stringWriter.ToString()); } catch (Exception ex) { //throw new Exception(ex.Message); } but i see this error : exception of type 'system.outofmemoryexception' was thrown any body know what can i do???
-
select an item in gridviewI have a gridview with a checkbox column, i select a checkbox in a row and click edit button after that, edit button click_event i wrote this:
grvWorkDetail.DataKeys[grvWorkDetail.SelectedIndex].Values["WorkTimeID"].ToString()
but it has error, and i cant access to "WorkTimeID"
my codebehind is :
<asp:TemplateField ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<asp:CheckBox ID="chk_SelectAll" runat="server" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chk_Select" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" -
select an item in gridviewI have a gridview with a checkbox column, i select a checkbox in a row and click edit button after that, edit button click_event i wrote this: grvWorkDetail.DataKeys[grvWorkDetail.SelectedIndex].Values["WorkTimeID"].ToString() but it has error, and i cant access to "WorkTimeID" my codebehind is :
<asp:TemplateField ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<asp:CheckBox ID="chk_SelectAll" runat="server" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chk_Select" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" -
open new windo without address barHi I want to open New Internet Explorer window when click on a link and when it open that window dose not have address bar Anybody know?
-
show alert in javascript and not continueyes, i forgot write return, Thanks
-
show alert in javascript and not continueoooh , i forgot write return in önsubmit="return ValidateFileSize()" thanks so much. :)
-
show alert in javascript and not continuehi i use this code:
<script type='text/javascript'>
function ValidateFileSize(strFUS) {
var filename = document.getElementById('<%=fuSignature.ClientID%>');var myFSO = new ActiveXObject("Scripting.FileSystemObject"); var filepath = filename.value; var thefile = myFSO.getFile(filepath); var size = thefile.size; if (size / 1024 < 110) return true; alert('the size of file is big'); return false; }
</script>
this code is work and show me the alert but when i click on ok button in allert box the file uploadbut i want it not be upload. what should i do? plz
-
check size of file in fileuploadHi i have a fileupload control in form, and now i want to check the size of file before upload it. i wrote this code but the value of fileSize = 0 all the time. what should i do. can anybody help me? int fileSize = fuSignature.PostedFile.ContentLength
-
size of fileuploadHi i have a fileupload control in form, and now i want to check the size of file before upload it. i wrote this code but the value of fileSize = 0 all the time. what should i do. can anybody help me? int fileSize = fuSignature.PostedFile.ContentLength
-
the size of file in fileuploadHi i have a fileupload control in my webpart, and now i want to check the size of file before upload it. i wrote this code but the value of fileSize = 0 all the time. what should i do. can anybody help me? int fileSize = fuSignature.PostedFile.ContentLength