RadMenu hide menu item from server side
RadMenu1.FindItemByText("RadMenuItem1").Visible = false;
Achievement provides the only real pleasure in life
RadMenu1.FindItemByText("RadMenuItem1").Visible = false;
Posted by
SF
at
9:57 am
1 comments
Edit Mode:
"if"(!RadScheduler1.StartEditingInAdvancedForm)
Insert Mode:
"if"(!RadScheduler1.StartInsertingInAdvancedForm)
Posted by
SF
at
2:50 pm
0
comments
code:
"Response".Clear();
"Response".AddHeader("content-disposition", "attachment;filename=" + FileName + ".txt");
"Response".Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
"Response".ContentType = "application/vnd.text";
"StringWriter" stringWrite = new StringWriter();
"HtmlTextWriter" htmlWrite = new HtmlTextWriter(stringWrite);
"Response".Write(strTXTFileBuilder.ToString());
"Response".End();
Error:
Internet Explorer cannot download file
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
My Solution:
Take out the line "
Posted by
SF
at
3:48 pm
0
comments
'if' not 'exists' (select .... from .... where ....)
Begin
'Insert' Into ....... (..., ..., ...) values (..., ..., ...,)
END
Posted by
SF
at
2:26 pm
0
comments
in the Parent page add into the radwinow aspx code:
sas"<"telerik:radwindow id="rwpopup111" title="popup111" runat="server" behaviors="Close" onclientclose="OnClientClose" navigateurl="popup111.aspx">
also add javascript:
function OnClientClose(oWnd)
{
//place your code to execute, see below for my examples, in this example I rebind a grid:
var hf111 = document.getElementById("");
var masterTable1 = $find("").get_masterTableView();
masterTable1.rebind();
var masterTable = $find("").get_masterTableView();
masterTable.rebind();
//after radwindow close you may lose title of the parent page, if that is the case reset it here:
document.title="abc";
}
Posted by
SF
at
12:29 pm
0
comments
rw.Width = Unit.Pixel(800);
rw.Height = Unit.Pixel(600);
rw.Behaviors = WindowBehaviors.Move & WindowBehaviors.Maximize & WindowBehaviors.Close;
Posted by
SF
at
3:21 pm
0
comments
question:
1. add brackets around a value
2. display or hide a string depending on a value. e.g. show "IDExists" in a textbox if Fields!ID != null, otherwise hide it
solution:
1. ="MemberID: (" & Fields!ID.Value &")"
2. =IIF (IsNothing(Fields!Id.Value), "","IdExist")
Posted by
SF
at
3:17 pm
0
comments
http://www.telerik.com/help/aspnet/window/postbackandcloseonreload.html
Posted by
SF
at
4:01 pm
0
comments
Filter.Value = "LastName LIKE '" + tbLastNameFilter.Text.Trim().Replace("'", "''") + "%'";
Posted by
SF
at
3:53 pm
0
comments
http://support.microsoft.com/kb/139444
Posted by
SF
at
4:50 pm
0
comments
http://blog.crowe.co.nz/archive/2007/04/16/728.aspx
http://geekswithblogs.net/wpeck/archive/2009/04/30/quotthe-microsoft.jet.oledb.4.0-provider-is-not-registered-on-the-local-machine.quot.aspx
http://www.telerik.com/support/kb/aspnet-ajax/general/error-on-64-bit-windows-machines-the-microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine.aspx
Posted by
SF
at
10:08 am
0
comments
http://blog-mstechnology.blogspot.com/2009/06/turn-off-saving-auto-recovery.html
Posted by
SF
at
10:08 am
1 comments
found this one useful
http://www.dotnetspider.com/resources/28823-All-Sample-Connection-String-for-All-database.aspx
Posted by
SF
at
10:04 am
0
comments
set the Anchor to (Top, Bottom)
Posted by
SF
at
3:40 am
0
comments
need to use "datagridview1.EndEdit()" in "datagridview1_CellContentClick" event to finalize the editing of current row so that the changes made to the current row (in this case the change of check status) is submitted
Posted by
SF
at
1:01 am
0
comments
cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\ temp\\abc.mdb;User Id=admin;Password=;");
or
cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\ abc.mdb;User Id=admin;Password=;");
Posted by
SF
at
9:16 pm
0
comments
this is because the driver is not x64. Solution: in project properties --> Build, select x86 in Platform Target
Posted by
SF
at
3:17 am
0
comments
in windows form application you can use Application.OpenForms collection to find the forms opened
Posted by
SF
at
3:16 am
0
comments
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'vw_abc')
DROP VIEW [dbo].[vw_abc]
Posted by
SF
at
11:47 am
0
comments