Search:
Type: Posts; User: Lethal
Search:
Search took 1.21 seconds.
-
It's also worth mentioning that not all objects are able to be persisted to viewstate. The class must be serializable, either by applying the Serializable attribute to the class or implementing the...
-
You do not need to specify an id or the runat attribute for bound columns.
-
This expression is termed a 'Data Binding Expression'. So, when you call the DataBind method on a control or the page itself, the asp.net page parser will traverse through the page parse the...
-
You have to handle the ItemDataBound event and change the value of the column. I would add a literal control to the column, then in the ItemDataBound event handler, do a find on the control and set...
-
You can either call a method from within your item template for the value or you could hook into the ItemDataBound event and set the value from there.
-
No, just make sure you copy the latest dll's to the main app's bin directory.
-
-
Why not just bump up the Session Timeout expiration?
-
Pretty much do what the error message is saying. The asp.net account does not have the appropriate permissions to access that folder, so right click the folder and set the permissions for the...
-
All you have to do is create your own template column for the datagrid and embed one of the validator controls (required, compare, regex, etc).
-
How about creating an enum with your different formatting options and exposing a property so the end user can choose which one to render.
-
The dynamically created checkbox's have to be re-created and loaded on each page request, so you should keep a flag in viewstate and check this guy to see if you need to re-created them. Or, you...
-
What is the purpose of the button? If you want to run some client-script, set the onclick attribute to your function name.
-
You could do the data population in the prerender event, since this event gets called before the html is spit back to the client. (haven't tested this though)
If the containers visible property...
-
Yes, what we all said is correct (I elected not to go into the gory details), and MS recommends doing this in the Page Init event handler, rather than the page load.
-
You are going to have to add the controls to the control tree on each load of the page, so instantiate and add your controls in the page init event handler.
-
Very nice portal. The code base has been nicely improved since the first release.
-
The dataset doesn't get sent to the client, only the html (and viewstate) that is spit out, the one record. The dataset is kept in memory on the server.
-
Caching is stored on the webserver, but Microsoft have released a Caching application block where you can specify other persistence mediums. Since this is a read-only app and data changes are...
-
I personally haven't used the control, but it sounds like your xml document may not be well-formed. Let's see your xml.
-
Caching sounds like a viable solution but how often does the data change? If it does change frequently, you may be able to get away with refreshing the cached data say every 30 minutes or so. Then...
-
The type you are trying to pass is:
System.Web.UI.Page
Make sure you have a ref to the System.Web assembly and use the full qualified type name or add a namespace to System.Web.UI.
-
There are two ways to pull the data out. You can either let the event bubble up through the datagrid's event chain, or you can set the ItemCommand for the linkbutton in your aspx to the event...
-
I didn't read the entire thread, but you should really be putting the value in the CommandArgument property and pull it out of the linkbutton this way.
-
Ah, you have a lot to learn my brother. Recordsets are of the past. :)
Seriously though, do some research on ADO.NET and you'll see your problem can be solved quite easily.
-
You could load it up into a memory stream and create your image object from the byte stream.
-
This is exactly what Session State is utilized for. In reality, if you are developing a production application, your web server will most likely have enough fire power to handle the load. Also, the...
-
In order to serialize those types, you must mark them with the serializable attribute or implement the ISerializable interface. I know one of the reader/writer objects doesn't work well with...
-
In order to access a server control from your code-behind, you either have to create a public/protected control declaration or use the FindControl() method. There is not a one-to-one mapping for all...
-
You can use one of my many list controls and when the form is submitted, you can iterate through the items collection and do your validation.
-
You can use the Response object:
Response.Redirect("MyPage.aspx")
-
If you want to display the attributes, your going to need to iterate through the collection for each node. Also, you won't have to worry about recursion, since attributes cannot have child...
-
Are you trying to add a row dynamically or a column? Give me a more detailed example of what your looking for, and I'll wire it up.
-
You need to do the following:
Dim MyGuid As Guid = New Guid(Request.QueryString("myGuid"))
-
Yes it possible, I would suggest to you to do some research on multi-threading in .NET.
-
Sure you can.
The page base class exposes a Cache property or you can get a reference by using:
HttpRuntime.Cache
-
In this situation, I would using ASP.NET caching mechanism to store your files. Also, you can add cache file dependencies when you insert your item into cache, and when the underlying file changes,...
-
There are some free .NET O/R mapper tools out there, which basically generate your business and data tiers and handle all database communication. Try doing a google and you will find a whole bunch.
-
Hellswraith pretty much summed it up.. :bigyello:
-
.NET Types are split up into two categories:
Reference Types
Value Types
The difference between the two is where they are placed in memory. Value types are placed on the stack and...
|
Click Here to Expand Forum to Full Width
|