|
hi frndz,
i am using c# to build a website in asp.net. i want to use messagebox control in my webforms. can u tell me the way out ....
with thanks
Tarun Suneja
|
|
|
|
|
|
Use Javascript's Alert[^] function or VBScript's MsgBox[^] function.
Eslam Afifi
|
|
|
|
|
1 - it's not ASP, it's ASP.NET. They are different
2 - you can't show a message box in C#, because C# runs on the server.
3 - don't use VBScript unless you only want your site to work in IE
So, use javascript ( someone said that, I wanted to just clarify some points )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Apart from being so rude as to ask this over and over, you've not really made clear why you'd WANT an ASP.NET application reading or writing the registry ? I mean, it's only going to access the registry on the server, why would you need to do that ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sorry to ask again and agian the issue is as i already mentioned before im not accessing any registry it"s a simple webform which is not having any code in code behind file and i made an msi package of that and installed in other machine and then i got the error what i showed u before....
Please let me know if it is not clear...
modified on Saturday, January 31, 2009 5:39 AM
|
|
|
|
|
You're going around in circles. The fact is, you have an exception that says you're accessing the registry. So, you need to use breakpoints to work out what line of code is doing it, obviously without you realising.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
how we can change our webpage url ?
eg: index.aspx to www.google.com/accounts/ServiceLogin?service=orkut&hl=en-US&rm=false&continue=http%3A%2F%
|
|
|
|
|
I assume you just mean that there's no .aspx in that URL, the rest is just query string parameters. You can configure IIS to process any extensions you like, and you can use URL rewriting to not show the actual URL being directed to.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
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
|
|
|
|