Hello Geeks,
Can some one give me a best way to implement a daily job with .NET technology.
I have an asp.net application with the sqlserver database hosted in shared hosting, GODaddy in my instance.
My application is used to add / change the data in the database which is performing quite fairly at this time.
I got a new requirement to ...
Is it safe to use the attributes collection of a web control to store extra data?
e.g.
DropDownList ddl = new DropDownList();
ddl.Attributes.Add("ExtraData", "SomeData");
...
When the following line is called when running a website from the VS2008's web server i get a "The trust relationship between this workstation and the primary domain failed." exception.
if (User.IsInRole("SomeRole"))
...
I have turned UAC off, and set VS 2008, and it's built-in webserver, to run as an Administrator, and i have also re...
Hi,
I am using the JS APIS for Google Friend Connect in my ASP.NET app. I am not able to run the application at all. If any body could please let me know how to get the FriendList and show it in ASP.NET page that will be great help.
Thanks very much
...
I am using a GridView in asp.net 2.0 and I want to perform inline editing. I am using an object datasource. Because I want to use validation controls on the integer fields in my gridview, I have made them into <TemplateFields> and added a datatype validator and a range validator. This allows me to either have a blank field, or an integer...
Where do you host your customers' ASP.NET sites? I am about to develop a few sites, and I am looking for a good place to host (cheap, fast, good bandwidth, good storage, updates, service packs, etc.)
I have also thought about earning revenue for the hosting/domain, even though I am not actually hosting it (kinda sounds bad when you put ...
Hi,
I have 2 asp.net web applications, one of which is the main application and the second one is referencing the first application for like master pages , themes etc, and the main frameset that will point to the second application's webform based on database values (menu generated from database);
All my actual forms are in the second ...
Does anyone know why a client-side javascript handler for asp:CheckBox needs to be an OnClick="" attribute rather than an OnClientClick="" attribute, as for asp:Button?
For example, this works:
<asp:CheckBox runat="server" OnClick="alert(this.checked);" />
and this doesn't (no error):
<asp:CheckBox runat="server" OnClientClick="ale...
Hi,
I have an update panel with some controls in it. for example, I have a label, a textbox and a button to postback.
My label text is retrieved from the resource file, therefore, during page load I do the following
Page_Load()
{
If(!isPostBack)
{
Label.Text = //Resource value;
}
}
Problem is, after posting ...
Most of the tips on how to implement validation in ASP.NET MVC seem to center around the Model (either building service layers between model and controller or decorating properties of the model with validation attributes).
In my application I use ViewModels for all communication between the controllers and the views.
I have a ViewMode...
Chart on reportviewer does not load unless i click view report button when combolist parameters are passed.
All the selected parameters are passed correctly and report loads only after clicking 'view report' button on the report viewer.
I have this report viewer on an ASP.NET page and my parameters are passed using session variables cre...
Hi I've a simple code to insert data into db in button click event. It is executing fine and insert data into db. After inserting data if i press f5 button it is again inserting a new row into db with the same values.
Button click event fires on each f5 button (refresh)
Wat is the problem?
Thank you,
Nagu
...
I am using SubSonic 3.0.0.3 (the ActiveRecord approach) in an HttpHandler that I have in its own library. For it to work in the end, I have to have the connection string in the website's web.config instead of the class library's app.config. Is this the expected result or a bug?
...
I'm trying to bind an image using Eval() with VB.NET and ASP.NET, but am running into issues:
Code snippet
<bri:ThumbViewer Id="Th1" runat="server"
ImageUrl='<%# Eval("Name", "~/SiteImages/ram/3/{0}") %>'
Height="100px"
Width="100px"
/>
I set strImagePath in the code-behind as:
strImagePath ="~/SiteImages/ram/3/"
H...
Any api's available or any reference documents??
Thanks
...
I left the .net about 3 years back when I was working on .net 2.0. And in these three years I wasn't working on .net at all. Now, I have got a project which is in .net 3.5. But I have noticed there are a lot of technologies introduced between these two versions.
Is there any resource which can help me to quickly grasp the things which a...
I would like to use a TextBoxor Label (item) inside of a Gridview. When field is clicked, I would like to display list of records that contain:
- Item Name
- Description
- Price
- Image
- Add Button
...
Hi guys
I have just started using OutputCache on some of my controller actions and I am not quite getting the response I would expect.
I have set the cache time to 5 minutes and the Expires header is coming up the same as the Last-Modified header which is the time that the request was made.
This is the header I am currently getting:
...
When we write our own custom HTTPHandlers aren't they behave the same way as ICallBackEventHanlder does? we use both to make ajax calls from our web page, isn't this correct? or my understanding wrong, I wont doubt if it is :(
Obviously HTTPHandlers are more broader concept since a web page (.aspx) etc are also http handlers.
...
hi guys,
I have following code in page load
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
GetDetails()
PopulateRepeater()
End If
End Sub
Sub PopulateRepeater()
Dim dt As DataTable = GetDetails()
Dim dtD...