I have a composite control that has a large number of properties that can be used to style the control. I want to group these properties yet still maintain some of the properties in the ViewState
The markup for the control would look like this:
e.g.
<cc:Test id="test">
<Toolbar Items="add,delete" Enabled="true" />
<Grid Enable...
I want to pass a null value for a DateTime variable in C#. The value should be stored in the database as null.
I've tried using Datetime.Minvalue, but that stores a default value. It has to be a null in database. How do I do that?
...
When asp.net controls are rendered their ids sometimes change, like if they are in a naming container. Button1 may actually have an id of ctl00_ContentMain_Button1 when it is rendered, for example.
I know that you can write your javascript as strings in your cs file, get the control's clientID and inject the script into your page using ...
Hi,
I use one WYSIWYG editor in a small cms. It allows users to upload files, images, etc. If I add image named dog.jpg, in source I'll get:
<img src="/myweb/userfiles/images/dog.jpg" />
I can save this to a database and use it later on any page, until I move my site to a live domain.
myweb is virtual directory in IIS. "/" points to ...
How can i retrieve NULL Field [ Date Out ]in sql 2005 database to a Grid View in ASP.Net.
I need this field to be edited by the user.
...
I have a custom control which includes a property of the following definition:
[PersistenceMode(PersistenceMode.InnerProperty)]
public ITemplate Template {
get { return template; }
set { template = value; }
}
The control overrides CreateChildControls(), and adds several HtmlGenericControls and an asp:Panel control.
The actual ac...
Hi,
The below code works but I am not sure how?
OnClientClick='<%# CreateConfirmation(Eval("EventName"),DataBinder.Eval(Container.DataItem, "EventDate", "{0:ddd, d MMM}")) %>'
Public Function CreateConfirmation(ByVal EventName As String, ByVal EventDate As String) As String
Return String.Format("return confirm('Are yo...
hello friends
how to upload xml file and insert in sqlserver 2000 database.
regards
sanjay
...
I need to use a different currency for my Y Axis labels. I read http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/56453466-06b1-4df4-8265-5c63dc18efe5/ but I'm still battling to change the dollar sign to a different char.
...
I have a control that can be placed in a Web form (.aspx) or a Master Page (.master). I want it to function differently depending on which one it's in.
My first thought is to climb the control tree back to the root and see if I cross over a MasterPage control. If so, then it would have to be in the Master Page.
But, this seems ineffi...
I am working on a project which requires a server side access to google map api. i want to calculate distance (actual distance, not straight line). google map api supports javascript and not asp.net. please give suggestions ...!
...
Is there a simple ASP.NET (.VB) available for AES-encrypting?
here is a link to c# one but its complicate one having pretty much parameters, for example salt.
[http://www.gutgames.com/post/AES-Encryption-in-C.aspx]
I need a simple one that works together with GOOGLEAS3 Class that is called easily like this:
var key:ByteArray = Hex.to...
We're about to migrate an existing large ASP.NET web application to make it section-508 compliant. Are there any recommended tools and practices that can be employed for this kind of project?
...
I'm trying to replace a old homebrewed single threaded web server with a ASP.NET solution that will run on IIS. The old server does alot of weird stuff like access files outside it's path, do com calls, write to c: and much more. It does all of this from library writen in C++.
In the new application we want to use the same library so we...
I am trying to use myclass.cs from aspx.vb but receive error "myclass not declared" when I give command:
Imports myclass
any ideas how to make a reference?
...
I have a ASP.NET Website which was developed in ASP.NET 2.0.
Now I want to add a new page to the project which will make use of the ASP.NET AJAX features like Partial page updating.
Is there any options to do this ? Do i need to change any settings for this in my already existing project /Solution ?
...
I am using a string to store key=value pairs, it has same format as QueryString
How can I easily parse it to array? or can I somehow use interal class QueryString("paramname") to access it?
...
The default code shows the Home menu item aligned to the right. I changed the ul:menu and added attribute float:left to get the 'Home' menu too be aligned to the left of the page but to no avail.
Is there way to show the 'home' menu to be on the left end of the page. I am trying to create a menu bar similar to SO as a learning project
...
Is a static variable in a webservice shared between all running invocations of the webservice on a server?
In my case I want a server-wide sync-lock, and I beleive I can accomplish that with a single
private static Object syncHandle = new Object();
Is that correct?
...
I like to create a session value that expires in 5 minutes.
How to do that, do I need to manually compare creation time when I read it?
Session("sessionval") = myvariable
Session("sessioncreated") = now
...