|
deepseeindeepsy wrote: If I inserted it using nvarchar field in db
That would be utterly retarded, because you'd lose the ability to work with it as a time.
This was my first google hit[^]. Was that so hard ? You can return just the time portion as a string from a datetime in the database, which is what was being suggested, use the functions in SQL Server to get back just the time, even if you store a datetime.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
In SQL Server 2008, there is Time Data Type so that you can insert only time value there.
|
|
|
|
|
hi!
i'm working on google maps api. i send hundreds of Geocode requests to google map api therefore its take to much time to load the page. Is there any way to show header and left menu while waiting for google maps. please share some ideas with code help... thanks in advance
|
|
|
|
|
Show the map on a iframe[^]. So other parts of your page will load while you wait for map to load.
Best wishes,
Navaneeth
|
|
|
|
|
iframe needs src="" to a page, but i have just one div where i'm showing the map.. how can i use iframe with my map?
|
|
|
|
|
putting it in a div and then hiding the div with javascript will work just fine.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi to All,
Could anyone please help me finding a proper control, or may be an plugin to display a sets of images with some description with it....I have 100 of images like that...the user should be able to see say 1 15-20 at a time...first he sud see without details...on some user interection on the page user can see the details of it...My main intension is to make UI very attractive too
I am new to asp.net and ajax...please help me out..
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
hrishiS wrote: I am new to asp.net and ajax...please help me out..
If you're new, why are you working on a project like this ? Why are you using AJAX if you're new to ASP.NET ?
Is this for work, for for yourself ? If there's nothing in the ASP.NET AJAX library that you can use, you'd have to search the web, I assume writing something is not an option.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Christian,
Thanks for your reply...
I like to learn new staff...And i believe, best way is to do some project. Hence, I am making an project, which if its comes up good i will deploy it. Thats it. And this work is not for any one but for myself as i have told you...I was just looking for some hints so that i can move forward.
Anyway,thanks for your advices, i will keep those in mind..
-----------------------------
I am a beginner
|
|
|
|
|
Read about Repeater control[^]. It allows you to take more control over the rendered HTML.
hrishiS wrote: I am new to asp.net and ajax...please help me out..
You don't need AJAX here AFAIK.
Best wishes,
Navaneeth
|
|
|
|
|
I will bet any amount you like that he has no idea what AJAX actually is, and he's really asking for some client side script to make his thumbnails jump out and to make the whole thing as cool as it can be.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how to get folder select dialog box .
|
|
|
|
|
Why would you want to select a folder in a website ? What would you do with the folder path ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
yes i want it on my site.
i had used FolderBrowserDialog . But it gives error like
System.Windows.Forms.FolderBrowserDialog m_obBrowser = new System.Windows.Forms.FolderBrowserDialog();
m_obBrowser.ShowDialog();
urrent thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.
|
|
|
|
|
bhavna4321 wrote: yes i want it on my site.
But, why ?
bhavna4321 wrote: System.Windows.Forms.FolderBrowserDialog m_obBrowser
What does this tell you ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello ? FWIW, it's my bedtime and I'm staying up to try to help you here. Why do you want to browse for a folder in your ASP.NET app ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: it's my bedtime
9PM is too early to sleep
Best wishes,
Navaneeth
|
|
|
|
|
Not for me, I'm an old man. Plus, we had a late night last night and an early start today.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
if not now please help me out early next morning so that i can solve it at today night at least.
i am trying out in javascripting too but in vain
function function1() {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var parentFolder = fso.GetFolder('c:\\');
}
|
|
|
|
|
bhavna4321 wrote: function function1() {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var parentFolder = fso.GetFolder('c:\\');
}
This will only work in IE, do you not want to support Firefox, etc ? There is no folder browser dialog offered by HTML, which is obviously what you're working with here. You could write an ActiveX plugin ( which will also only work in IE ), but, I ask again, why on earth would you want to browse for a folder anyhow ? Of what use could it possibly be ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I'm trying very hard to help you, do you mind telling me what you're trying to achieve by browsing for a folder on your site ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Are you talking about fileupload control..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register" Title="Untitled Page" %>
<script type="text/javascript" language="javascript">
function ActivateStep()
{
ListBox1.DataSource = Roles.GetAllRoles();
ListBox1.DataBind();
}
function DeactivateStep()
{
Roles.AddUsersToRole(User.Identity.Name, ListBox1.SelectedValue);
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="style1">
<tr>
<td>
</td>
</tr>
<tr>
<td>
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#F7F6F3"
BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="0.8em" ActiveStepIndex="2">
<SideBarStyle BackColor="#5D7B9D" BorderWidth="0px" Font-Size="0.9em"
VerticalAlign="Top" />
<SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />
<ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
ForeColor="#284775" />
<NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
ForeColor="#284775" />
<HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True"
Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
<CreateUserButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
ForeColor="#284775" />
<TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<StepStyle BorderWidth="0px" />
<WizardSteps>
<asp:CreateUserWizardStep runat="server" >
<ContentTemplate>
<table border="0" style="font-family:Verdana;font-size:100%;">
<tr>
<td align="center" colspan="2"
style="color:White;background-color:#5D7B9D;font-weight:bold;">
Sign Up for Your New Account</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User
Name:</asp:Label>
</td>
<td>
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is required."
ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is required."
ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="ConfirmPasswordLabel" runat="server"
AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server"
ControlToValidate="ConfirmPassword"
ErrorMessage="Confirm Password is required."
ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
</td>
<td>
<asp:TextBox ID="Email" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="EmailRequired" runat="server"
ControlToValidate="Email" ErrorMessage="E-mail is required."
ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Security
Question:</asp:Label>
</td>
<td>
<asp:TextBox ID="Question" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="QuestionRequired" runat="server"
ControlToValidate="Question" ErrorMessage="Security question is required."
ToolTip="Security question is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Security
Answer:</asp:Label>
</td>
<td>
<asp:TextBox ID="Answer" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="AnswerRequired" runat="server"
ControlToValidate="Answer" ErrorMessage="Security answer is required."
ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:CompareValidator ID="PasswordCompare" runat="server"
ControlToCompare="Password" ControlToValidate="ConfirmPassword"
Display="Dynamic"
ErrorMessage="The Password and Confirmation Password must match."
ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="color:Red;">
<asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
</table>
</ContentTemplate>
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep runat="server" />
<asp:WizardStep runat="server" Title="choose roles" OnActivate="ActivateStep()" OnDeactivate="DeactivateStep()">
Select a role:<br />
<asp:ListBox ID="ListBox1" runat="server">
</asp:ListBox>
</asp:WizardStep>
</WizardSteps>
</asp:CreateUserWizard>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</asp:Content>
error:only content controls are allowed directly in a content page that contains content control.
|
|
|
|
|
mylogics wrote: error:only content controls are allowed directly in a content page that contains content control.
The error means what it says. Your code is too hard to read for me to spend a half hour figuring out where it's wrong.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
it is giving error at the script starting tag:
|
|
|
|