Dear Sir and Madam I have an embed resource javascript in my Web Control Library. The javascript has function below function test() { alert('<%= DateTime.Now.ToString() %>'); } The problem is the function alert incorrect result. Please help me. Thank You.
god4k
Posts
-
alert(<%= DateTime.Now.ToString() %>'); in my embed resource javascript -
How to set Ajax MaskedEditExtender allow only one character (Y or N or C)Dear Sir/Madam, Is it possible to set Ajax MaskedEditExtender allow only one character (Y or N or C)? If possible, Please tell me how. Thank You.
-
Allow only user logged in download ?Response.Clear(); Response.ContentType = "application/octet-stream"; Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName); System.IO.FileStream sourceFile = new System.IO.FileStream(path, System.IO.FileMode.Open); long FileSize = sourceFile.Length; byte[] content = new byte[(int)FileSize]; sourceFile.Read(content, 0, (int)sourceFile.Length); sourceFile.Close(); Response.BinaryWrite(content); Response.End();
-
Allow only user logged in download ?Dear Sir and Madam When my user logged in, I set Session["user"] = UserID. How to allow only user who logged in download files. (for example: setup.exe, demo.zip)? Sorry for bad English Thank You.
-
How to set password to my database.mdf in App_Data folder?With a database connection and SQL. What do the SQL you mean? SQL Server or SQL Language? Please give examples. Thank you very mcuh.
-
How to set password to my database.mdf in App_Data folder?Dear Sir, How to set password to my database.mdf in App_Data folder? Thank You.
-
How to develep a project under Guest account?Thank Sir, There is no "Debugger Users" on my machine. If I develop under Admin account, I get error about System.UnauthorizedAccess under Guest account. Do you know how to solve this problem? Thank again.
-
How to develep a project under Guest account?I have installed vs2008. Under Guest account I cannot F5 my project. I get the dialog below ============================================ Error while trying to run project: Unable to start debugging. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. Authentication failed. Please see Help for assistance. ============================================ Please help me. Thank You very much.
-
Can you find relation between "4&32BEFC79&0&0.0.0" and "WD-WCANKF003333"I have one drive. The Model is WDC "WD2500JS-22NCB1" The unique ID is "WD-WCANKF003333" I found in some message board tell me that "4&32BEFC79&0&0.0.0" is unique ID. "4&32BEFC79&0&0.0.0" may be hex of a string. I try to convert "4&32BEFC79&0&0.0.0" to "WD-WCANKF003333" Sorry for bad English.
-
Can you find relation between "4&32BEFC79&0&0.0.0" and "WD-WCANKF003333"The full string from ManagementClass is "IDE\DISKWDC_WD2500JS-22NCB1_____________________10.02E02\4&32BEFC79&0&0.0.0" I cut only "4&32BEFC79&0&0.0.0". more info please see: http://www.experts-exchange.com/Programming/Languages/.NET/Q_21863561.html
-
Can you find relation between "4&32BEFC79&0&0.0.0" and "WD-WCANKF003333"Dear Sir and Madam, "WD-WCANKF003333" is my harddisk id and "4&32BEFC79&0&0.0.0" is my harddisk id from ManagementClass. Do you understand relation between them and how to convert them? Thank you very much.
-
WM_CONTEXTMENU ?protected override void OnMouseUp(MouseEventArgs e) { int WM_CONTEXTMENU = 0x7B; this.Capture = false; Message msg = Message.Create(this.Handle, WM_CONTEXTMENU, ???, ???); DefWndProc(ref msg); } ========================================= Dear Sir And Madam, The code above.... I need to show Windows Form Title Bar Context Menu. Message msg = Message.Create(this.Handle, WM_CONTEXTMENU, ???, ???); What parameter I should create and pass to Message.Create method. Sorry for bad English. Thank You.
-
Search And Html Tag ????You don't understand me. Please see this example. When user search the rows that contain 'a' in webboard, only the following row should returend. 1. I see a dog run 2. give me my bag 3. I will pass this message on 4. ..... 5. ..... and the following row should not returned. 6. <a href="codeproject.com">codeproject</a> 7. <a href="link.com">hello</a> 8. ..... 9. ..... Please give me any idea. Thank You.
-
Search And Html Tag ????Dear Sir and Madam I create a webboard. After User Post, the message will be added to the table in Sql database. My webboard allow user to post html tag. This is the example of my problem. when search the row that contain 'td', the row that contain '<td>hello</td>' and 'hello td' are returned. Do you know how to return the the row that contains 'hello td' only? Please give me an idea. Thank You. Sorry for bad English.
-
High performance: DataGridView1.DataSource = MyDataTable (100,000 rows) [modified]8-9 seconds that I tell you not include Load AND PARSE Xml file. DateTime d1 = DateTime.Now; DataGridView1.DataSource = MyDataTable DateTime d2 = DateTime.Now; TimeSpan ts = d2 - d1; Console.WriteLine(ts); Thank You.
-
High performance: DataGridView1.DataSource = MyDataTable (100,000 rows) [modified]MyDataTable get data(rows) from Xml file not from database. If I use MyDataTable.DefaultView.RowFilter = "xxx", it will spent time for this process instead. 8 to 9 seconds is not fast enough for me. Is there any idea to improve performance?
-
High performance: DataGridView1.DataSource = MyDataTable (100,000 rows) [modified]Dear, Sir and Madam How to improve performance for the code below? DataGridView1.DataSource = MyDataTable; //(MyDataTable contains 100,000 rows) The code above spent About 8-9 seconds that so long. Thank You. NOTE: WinForm not WebForm -- modified at 12:39 Wednesday 25th July, 2007
-
All Harddisk is PNPDevice?Is all Harddisk PnpDevice? Thank You.
-
Create ToolBar?My Form have a button. When I click the button, a Toolbox is shown. This Toolbox is always on top of My Form. Do you know how to create ToolboxM Thank You.
-
How to know the character '\u149d' is what?I try to use this.Text = "\u149d"; But I get strange character. Thank You.