Hi again Guys, I want to display the duration only Hour, Minutes, and Second in data Gridview by Subtract TimeCheckOut from TimeCheckIn in ASP.NET using LINQ to SQL
Here is code behind:
Dim db = new MyDataContext
Dim user = from u in db.Employees select IDNumber = u.IDNumber, _
FirstName = u.firstName, LastName = u.lastName,...
I have been working with PHP for a long while now, and I am in general pretty familiar with Microsoft IDEs and concepts behind everything including OOP. What I am trying to find, And have looked for, is a tutorial or reference website that shows the specifics about the syntax of C# like how to make classes, functions, variable types...ec...
I don't know if this is possible so bare with me on this one. Can you link to a specific value in an options drop down box from another page? In other words, let's say that I'm on page 1 and I want to anchor link to page 2 that has an options drop down box with 3 different values in it. Let say by default when you go to page 2, the drop ...
Hello all,
This is my first time posting on Stackoverflow, but I've been reading through many questions & answers for a couple months now! Now, I'm stuck and I desperately need help.
Background info:
Site is located at http://www.mobiuspc.com and the section in question is the "configurator" button on my top row navigation.
Everything...
I have an ASP.NET page where the page is making use of jQuery UI dialog. When a user is clicking a button (btnGo) in a page, I will check if the user is logged in or not. If not logged in, I would show the jQuery UI dialog to login. I used this code:
<body>
<form id="form1" runat="server">
<div>
<br />
<asp:TextBox ID="txtModel...
Hi all,
I have been working on winforms using C# in my company for quite a long time, and I have a fair experience implementing those. However, I need to change my job and work somewhere else. The market in here is mostly in need for web applications developer which I never worked with before. How difficult is it to move to using ASP.NE...
Hello!
I have store in SQL Server 2005 audio and video files. I want to play this files in ASP.NET without storing them on filesystem.
With images stored in SQL Server 2005 I use a custom HTTP Handler, but I don't know if I can do the same with video and audio files.
Which is the best way of doing it? Silverlight?
Maybe I need a phys...
I need to run an application on the server. I have an executable file, which runs perfectly well on my own permissions through terminal services. It also runs well on my own machine through the asp.net when I run the site with my VS.
When I tried running my site on the real IIS it just hanged. I tried changing the credentials of the Sta...
I am trying to display random images
heres my code
private void Page_Load(object sender, EventArgs e)
{
int num1=0;
Random randNum = new Random();
num1 = randNum.Next(0, 9);
Image1.ImageUrl = DisplayNumber(num1);
Image1.Visible=true;
}
protected string DisplayNumber(int i)
{
string imagepath="";
switch...
I want to set user date format yyyyMMdd using culture name. Which culture name have to specify to accomplish this?
...
Is it possible to create and add own template into FormView's Auto Format selection? I had a standard design which I would like to apply across the board to all my form view, instead of copy-and-paste into individual one then manually editing it.
I'm referring to the auto generated ItemTemplate, EditItemTemplate, InsertItemTemplate
...
can i send a server control from the aspx.cs page
...
I have an ASP.NET page where I have a button When a user clicks on the button,I will check whether the user has logged in or not.If not logged in I will show a modal popup to login (using jQueryUI). I have placed one textbox(txtPassword) and one button(btnLogin) control in the Div which will be shown by the jQueryDialog.But in btnLogin's...
hi guys,
i have value in hdnField in form1.aspx .Iam assigning value to hiddenfield in javascript.I want to get that value in aspx.vb in another form,form2.aspx.Can anybody help
...
We have an ASP.NET web forms application which occasionally generates a validation error like below.
What can be the reason for this?
A validation error has occurred.
Exception type: System.Web.HttpRequestValidationException
Exception message: A potentially dangerous Request.QueryString value
was detected from the client
(_T...
is it possible to make a default typecast for an enum?
I use enum for a lot, such as states and I want to compare enums directly to LINQ fields, but I have to typecast all the time.
...
I have found when using NHibernate and creating a one to many relationship on an object that when the many grows very large it can slow down dramatically. Now I do have methods in my repository for collecting a paged IList of that type, however I would prefer to have these methods on the model as well because that is often where other de...
What is the difference in functionality between
<asp:Button id="button1" Text="Click me" runat="server" OnClick="submitEvent" />
and
<input type="button" id="button1" runat="server" value="Click me" />
Does the input with runat="server" attribute has other or limited properties and methods?
Thank you!
...
Hi,
I've put together a simple form to highlight the concepts of dynamic forms. What I need to do is add a control to the page when the user clicks the "Add" button.
I have a simple counter at the moment that stores the amount of controls created, which is incremented when the button is clicked.
At first I thought it would be as simp...
Hi guys,
I'm trying to display a panel to the user when an asynchronous call is made, but only if that happend from a specific call.
using the normal "get control" script I have mine like:
function pageLoad() {
try {
var manager = Sys.WebForms.PageRequestManager.getInstance();
manager.add_endRequest(OnEndRequest);...