|
Hey!
How i can get a length of a video(extension:flv) using C# ?
i've searched a lot of articles but i cant find.
Thanks.
|
|
|
|
|
When change screen resulotion through code in asp.net with code then no probleam. After publish and run on localhost and change screen resulotion then show error:
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
please tell me how solve this probleam.
|
|
|
|
|
Rinki Mukheraji wrote: When change screen resulotion through code in asp.net with code then no probleam.
That only works in the special case where the server computer and the client computer is the same physical computer, i.e. you are browsing on the server to the same server, and when you are using the same user account for browsing that the server is using for running the server code, e.g. when you are running the site in Visual Studio.
For any other sitation your code would try to change the resolution of the user interface on the server computer, not the client computer. As the web server application is running without a user interface, this is not possible.
Rinki Mukheraji wrote: please tell me how solve this probleam.
Very simple: Don't try to change the screen resolution in a web application. It's not possible.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I am using Regular Expression control for Custom validation. I am trying to validate the logical Drive so My requirement is: First Character should be C-Z,Second Character":", and third Character "\" and Remaining character anything. i.e. "D:\....."
I am using expression like "^([C-Zc-z]{1}:\)*" But its not validating my requiremt correctly.
Any Correction will be great help.
Thanks
Binod K.
(Miles to go before I sleep)
|
|
|
|
|
Hello!
What do you mean with, Not validating correctly??
by the way.
try:
"^([C-Zc-z]{1}:\\)*"
Andreas Johansson
IT Professional at Office IT Partner i Norrbotten Sweden
What we don't know. We learn. What you don't know. We teach
|
|
|
|
|
Hi,
Anyone out there who can help me I have to implement a Custom MembershipProvider but my problem is our database Schema is totally different from one of the many examples and the which default. One other thing I just need to know is if I implement the Custom Membershoip Provider do I have to declare the methods like GetUser() the way it is and with the same parameters? Guys please help I'm tired of cracking my head.
And ooh, here is the table I'll be using:
[UserID] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Password] [nvarchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Email] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Company] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Tel] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Fax] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PosAddr1] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PosAddr2] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PosAddr3] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PosCode] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PhysAddr1] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PhysAddr2] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Town] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DateStamp] [datetime] NULL CONSTRAINT [DF_Users_DateStamp] DEFAULT (getdate()),
[LastPasswordChange] [datetime] NULL CONSTRAINT [DF_Users_LastPasswordChange] DEFAULT getdate()),
[PasswordPeriod] [int] NULL CONSTRAINT [DF_Users_PasswordPeriod] DEFAULT (0),
[Question] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Answer] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[lastActivityDate] [datetime] NULL,
Please HELP!
|
|
|
|
|
|
Hi,
I am developing one application in that i have to calculate bank account credit scores.Please anyone give me the suggestion about how to calculate credit scores and how to verify bank account details programmatically.I will be very thankful to all.
Thanks in Advance
pavani
|
|
|
|
|
This sounds a bit dodgy.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
You can validate a bank sort code and that a bank account has the correct check digit, but thats about as far as you can go. Try Google for further details.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i have gridview in which i have 5 columns.last one column is update
<Columns>
<asp:BoundField DataField="UserfirstName" HeaderText="Name" ItemStyle-CssClass="grid-text">
<ItemStyle CssClass="grid-text" />
</asp:BoundField>
<asp:BoundField DataField="ProcessName" HeaderText="Process Name" ItemStyle-CssClass="grid-text">
<ItemStyle CssClass="grid-text" />
</asp:BoundField>
<asp:BoundField DataField="Coname" HeaderText="Company Name" ItemStyle-CssClass="grid-text">
<ItemStyle CssClass="grid-text" />
</asp:BoundField>
<asp:BoundField DataField="EndDate" HeaderText="End Date" />
<asp:CommandField HeaderText="Update" SelectText="Update" ShowSelectButton="True" />
</Columns>
when user will click on ...i want to make 2 colums(Name,EndDate) editable for user.
Can any one help me in tht?
|
|
|
|
|
In Edititemtemplate field use textboxes for (Name , EndDate) . when u click update button only that fields changes.
|
|
|
|
|
Hi,
I am using .net 2.0 & Sqlserver 2005. I have databases for the months, i.e., I have to insert recrods into the db of the current month. For example I can insert and handle records from October db only when the current month is October. But this should happen automatically. Users don't have permissions to change the db. I don't have idea to implement this. Please help me to implement this.
Thanks.
|
|
|
|
|
Hi Kandalu,
All the element in the connection string will be same you only have to replace the database name for each month. So just get the curreent month and update the connection string dynamicaly so that the recrods can be insrerted for the current month.
Thanx
|
|
|
|
|
Hi HemJoshi,
Thanks for your quick reply. I thought like you. But I don't know where to set the connection string either as an application variable or at the page load event? In .net if we change the current date, the changed date only appear when we use the "DateTime.Now()" function. I don't know how to get the correct date whenever the user change the date.
Could you tell me how to implement this?
Thanks.
|
|
|
|
|
Hi kandalu, do not use DateTime.Now()it will fatch the client current date.Create a procedure at database side which will return the current date(using getdate()).This will always return the cureent date of the database server.
Thanks
|
|
|
|
|
Hi HemJoshi,
Thanks. I tried through sqlserver and got it right.
Thanks.
|
|
|
|
|
Hello all,
I have created a dotnet application using Asp.net Ajax but when i deployed the application on server then i got following web.config error.
Can anybody tell me what should i do to solve the error so that my application run properly on server.
<br />
<br />
<br />
Configuration Error<br />
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.<br />
<br />
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (E:\web.config line 53)<br />
<br />
Source Error:<br />
<br />
Line 51: <br />
Line 52: <httpmodules><br />
Line 53: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /><br />
Line 54: </httpmodules><br />
Line 55: <br />
<br />
<br />
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
rahul.net11 wrote: Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (E:\web.config line 53)
Error message is clear, isn't it? Server don't have AJAX server extensions installed.
|
|
|
|
|
Hi Navaneeth,
To solve the error should i have installed Ajax server extension on my server. I have copied all the dll (like Ajax toolkit.dll) on my server. Is it necessary to install Ajax extension?
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Yes it is necessary to install AJAX extensions.
|
|
|
|
|
Ajax should be installed by the person who is maintaining the server. contact contact ftp provider and ask them to install ajex. then it will work.
|
|
|
|
|
jegastar wrote: Ajax should be installed by the person
You mean AJAX extensions, right? AJAX and AJAX server extensions are different.
|
|
|
|
|
Hi,
How can we communicate with linux server from .net application? I need to upload/download files to linux server using .net desktop/web application preferably using sftp.
-Thanks,
Priya.
|
|
|
|
|
Hi friends,
I am using Asp.Net application. From my codebehind i call the javascript function. so i am using,
Page.ClientScript.RegisterStartupScript(Me.GetType(), "onLoad", "showcontent()", True)
Now i registered script.Now i call the function showcontent in my contentpage.
//window.onLoad=showcontent();
function showcontent()
{
alert("enter");
}
while my contentpage load, this script fire and give alert message.But it doesn't fire.It gives script error. ie
"missing ;before statement.[Break on this error] showcontent()Sys.Application.initialize();\n
This error is happened in firefox. Run in IE nothing happened. The script is not fired in IE. what is the problem? I cant find it.
Please help me if u can.
Hope ur's reply
Thanks
<div class="ForumSig">Every Successful Person Have A Painful Story</div>
|
|
|
|