...or he could do his homework himself :)
SHatchard
Posts
-
Online Exam Application -
Reusing the configuration classes instance - performance perceptiveYou will have, as long as the class is called from a web site you will be able to access httpcontext.current.cache, .request, .response and all that stuff... Give it a try
-
Reusing the configuration classes instance - performance perceptiveAs far as i remember you can access the cache using the httpconext httpcontext.current.cache.add, etc Hope that helps
-
Problem with session....Can you post an example of the code you are using to store the details of the current user?
-
fill dropdownlist in javascriptIf you are using .net 2.0 you can achieve this with a control in the ajax control toolkit which can do cascading dropdowns. http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx[^]
-
Problem in Integer array in VB.netYour array is not instanciated, try Dim StepNumber() As Integer = new integer() {}
-
How to call server side method thru javascriptSorry, should have mentioned that its part of the ASP.net AJAX framework, i am not sure if its included in any others.
-
How to call server side method thru javascriptI would look into PageMethods, its an ajax thing which allows you to call server side code from javascript.
-
how can programmatically post user's data to other web page and get result?The easiest way would be to look for a web service to do this, but otherwise you will have to use some kind of screen scraping. Do a google search for screen scraping in asp.net and you should find plenty of articles. If you do decide to use web services i have used http://services.aonaware.com/DictService/DictService.asmx[^]
-
What is Silver LightThink flash without actionscript, but .net instead... Meaning it can work with existing business logic, etc Really, very cool and I am trying to find a viable business case to use it somewhere :)
-
[Message Deleted] -
Frame Tag...,Dont cross post, you already have this same query in the ASP.net forum (which is the better forum for issues like this) with someone there trying to help you.
-
drop down with ajaxThere is an specific control type in the ajax control toolkit, cascadingdropdown which might be better?
-
Apply style to div tag.From looking at the code the obvious is that you are not setting the ID property of the panel which you want to show, you are setting TargetPopupId to be 'PopupMenu' but that is the name of the object, not the Id of the control which you want to use, try adding the line PopupMenu.Id = "PopupMenu" It is not the div which you are trying to hide or display on the mouseover but the panel also, the div is just a control within the panel. Really you should set the Id property for all controls you add on the page, especially if they are containers. Also im not sure what the default is but you should perhaps specifty the type of generic html control in the constuctor HtmlGenericControl divtest = new HtmlGenericControl("Div");
-
Apply style to div tag.Both sets of code provided as answers will work, and are valid ways of doing it, but you seem to have a specific implementation issue here. Can you please just let me know what the issue is that you are having - does the div show? Is it just missing the style information?
-
dynamically(randomly) changing images with a given time interval?As a pointer in the right direction this would need to be using javascript and there are many resources available to help. In fact there are probably hundreds of pre-written code snippets to do this already - take a look at http://www.dynamicdrive.com/[^] more specifically their slideshow area perhaps... http://www.dynamicdrive.com/dynamicindex14/index.html[^]
-
Apply style to div tag.If you are adding styles I would suggest using a CSS class rather than explicity adding it in code, it makes it more managable and reusable divtest.attributes.add("class", "myclass") and then define in a CSS file myclass with the attributes you want div.myclass { text-align: right; display: none; overflow: auto; scrollbar-face-color : #ffffff; scrollbar-highlight-color : #000000; scrollbar-3dlight-color : #cccccc; scrollbar-shadow-color : #000000; scrollbar-darkshadow-color : #cccccc; scrollbar-track-color : #cccccc; scrollbar-arrow-color : #000000; } It also means you dont have to recompile if you need to make changes. However, if you do need to apply it directly in code for some reason then i would suggest using the built in style property which can be strongly typed which is always nice, as follows divtest.Style.Add(HtmlTextWriterStyle.TextAlign, "right") or for ones which are not included in the strongly typed list use divtest.Style.Add("scrollbar-face-color", "#000000") Hope that helps
-
Failed To Access IIS Metabase [modified]If you arent already try running VS as administrator, can be done by right clicking on the link or shortcut and selecting run as administrator. I know this solved most of the problems i had running the 2005 version of VS under Vista. You could always upgrade to 2008 - Even though its only in beta i have found it to be much more reliable than the existing version of VS - and have had no compatibility issues when converting fairly complex solutions over.
-
datepart funtion ProblemTheres a little CP article here which has near the bottom a nice concise way of doing this http://www.codeproject.com/useritems/sqlpadding.asp[^]
-
Try Catch inside of functionsThe 'function does not return a value on all paths' is happening because you have code like... Try If x=y Then ... Return x End If Catch Return Nothing End Try But if you note if the 'If' clause is not met then nothing will be returned, so you should implement something similar to Try If x=y Then ... Return x Else Return y End If Catch Return Nothing End Try