|
yes.. ur assemption is true...but giv me an example to rewrite default.aspx to default
|
|
|
|
|
I've just checked, and if you use the keywords I gave you, google does in fact give you tons of examples.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
use MVC for this...
They are doing a superb job for ASP.NET in MVC framework.
Abhishek Sur
|
|
|
|
|
i need regular expression which should accept money value
acceptable values
10.000
15435432
12
0.5
.5
and non acceptable values..
0.00
.00
0.00000
00.000
0000.
any help would be appriciated..
umerumerumer
|
|
|
|
|
So, you want to insist on at least one digit that is not 0 ? As in [1-9] ? You could download expresso to help you build this expression, that's what I typically use.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i have downloaded expresso but it is quite tough to use....
umerumerumer
|
|
|
|
|
I recommend buying the O'Reilly book 'mastering regular expressions'. They really are very easy, and the book is excellent. Also, there's good info on how regex works on the web, I think the W3C site has some good tutorials.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
When i Run my program in my LAN system and IE Explorer. It showing following error.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://indus/web/home.aspx'. Line 1, Position 2
<![CDATA[<%@ Page Language="VB" debug="true"%>]]>
-^
Code in ASP.Net
]]>
How can I solve this problem ????
|
|
|
|
|
Well, you could make it valid XML. You could also take note - the code block is not being processed here, it's being presented verbatim. So, whatever you're hoping to do is not working.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanx's Christian for reply. I got solution.
|
|
|
|
|
|
Don't double post. This is what you should have asked in the first place, that's why I asked what I did, to get to the core issue. But, everyone can still see that thread.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am wroking on a WebSite ASP.NET 2.0 with SQL Server 2000 & VB.NET.
In SaleInvoice i want that a value that a user input in textboxes inset into grid when user click on add button. when user fineish all his inputs and he review from GridView and want any change or delte can do. When finish click on save button all data of grid plu max invoice no, current data + clint code insert into database tables. Someone help me to accomplish it.
|
|
|
|
|
Well, this is trivial with a gridview, all the stuff you need, is built in. What have you done so far ? Written any code ? Referred to any books ? done any google searches ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i have to check it on a sample page with 2 text box plus 1 gridview. Code is as :
Partial Class Default2
Inherits System.Web.UI.Page
Private dsSelect As New DataSet
Private Sub CreateGridTable()
dsSelect.Tables.Add("Region")
dsSelect.Tables(0).Columns.Add("RegionID")
dsSelect.Tables(0).Columns.Add("RegionDescription")
End Sub
Protected Sub TextBox2_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
Dim vCount As New Integer
If dsSelect.Tables.Count = 0 Then
CreateGridTable()
Me.GridView1.DataSource = dsSelect.Tables(0)
End If
vCount = dsSelect.Tables(0).Rows.Count
dsSelect.Tables(0).Rows.Add()
dsSelect.Tables(0).Rows(vCount).Item("RegionID") = Me.TextBox1.Text
dsSelect.Tables(0).Rows(vCount).Item("RegionDescription") = Me.TextBox2.Text
Me.GridView1.DataSource = dsSelect.Tables(0)
Me.GridView1.DataBind()
End Sub
End Class
|
|
|
|
|
Your code is illegible because none of your variable names are meaningful. However, reading it, I really can't work out why you expect it to work. dsSelect is a member, and all it contains, is the text you entered. So, your gridview1 will always contain one item - the item you just entered. Seems stupid to me. What do you expect it to do ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
For that i need help of else one how i can make code in a such a way that it can output properly.
|
|
|
|
|
Need help how to finalize it.
|
|
|
|
|
Hi ,
May i know how to change the asp.net worker process identity to Local system using any script or bat file in "IIS 5.1"....Please help me out regarding the same.......
Securirty is not a problem as im using the web application for intranet application....
|
|
|
|
|
Why do you want to do this then ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Because as i deploy my simple web application in which i have only one web form and that cs file doesn"t have any code and created an msi (windows installer) and i installed that msi in other system and in that system if access my web application i got an error like...
Exception Details: System.Security.SecurityException: Requested registry access is not allowed
Stack Trace:
[SecurityException: Requested registry access is not allowed.]
System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) +51
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +7460233
System.Security.Cryptography.Utils.get_FipsAlgorithmPolicy() +239
System.Security.Cryptography.MD5CryptoServiceProvider..ctor() +25
System.Web.Compilation.AssemblyBuilder.AddChecksumPragma(BuildProvider buildProvider, CodeCompileUnit compileUnit) +8569699
System.Web.Compilation.AssemblyBuilder.AddCodeCompileUnit(BuildProvider buildProvider, CodeCompileUnit compileUnit) +52
System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) +462
System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) +99
So i guess by default aspnet account access registry which is not allowable......
|
|
|
|
|
Why would an ASP.NET app write to the registry ? Why not use a config file to store your data ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
No Christian im not at all trying to write registry it"s a simple webform with no code in cs file still im getting the error as i mentioned above ...
And suppose if i want to write the registry then what should i do as it is a requirement in our project..Please let me know....
And in iis 6.0 i have tried cahnging the process identity of the Application pool to local system thru adutils.vbs which is a Admin script provided by IIS which present in Admin scripts in inetpub folder but im unable to do in IIS 5.1 because Application pools are not present here and so im struggling how can i change the process identity to local system in IIS 5.1 thru script or bat file Please let me know as im struggling from 4 to 5 days...
modified on Saturday, January 31, 2009 2:47 AM
|
|
|
|
|
Hi all,
In my application, i have one requirement that i want to show popup type reminder on particular time which is set by user. This is call center type application in which executive set the reminder to call on particular time and all his reminder message and time are inserted into the database and to show popup, it will fetch the reminder data from the database.
I have one clue to implement it, but performence wise its not good to implement it. So Is there any way to implement it???????????
Thanks in advance...
Krishnraj
|
|
|
|
|
You can set a timeout in javascript, so you can inject the code to do that, with the appropriate timeout value based on the users timezone ( which you can also find with js, but that's a little tricky, if you know their timezone, that would make it a lot easier ). So, the page you send, can be set with a timer to show that message, without having to refresh or use ajax.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|