|
Sarfaraj Ahmed wrote: 3. url addrss: http://www.mycompnay.co.uk/customeremailaddres/936DA01F-9ABD-4d9d-80C7-02AF85C822A8
I think you can do like following :
Make the url like
http://www.mycompany.co.uk?custId=customer@mail.com&GUID=936DA01F-9ABD-4d9d-80C7-02AF85C822A8
While sending the Mail To Customer insert the mail id and Guid in DB or in a storage
CustID GUID
--------- ----------
customer@mail.com 936DA01F-9ABD-4d9d-80C7-02AF85C822A8
Now, When user Click on that url, he will comes to your sites, now you can retrieve CusID and GUID from query string. and validate with database if valid then you can also remove the entry from database too.
This is just my idea.
|
|
|
|
|
Thanks a lot.
I will follow the information.
If I get any problem I will let you know.
Thanks Again
Sarfarj Ahmed
|
|
|
|
|
Here is another suggestion. Read this[^] article. It talks about a different approach for user account verification.
|
|
|
|
|
I have seen this free .NET library that is designed for this very occasion-
http://www.sharewareconnection.com/-net-email-validation-library.htm[^]
It does a lot of different things so you should be able to make it work with your implementation. Try it out!
Ranjit Viswakumar
Professional Services Specialist
http://hostmysite.com/?utm_source=bb
|
|
|
|
|
Hi
I am not sure whether I am posting this in the right place, but I would like to know how I can use VB.Net ASP as an interface to copy word and WAV files from a folder on one server to a folder on another server.
Does anyone know how to do this?
Thanks
|
|
|
|
|
AndyASPVB wrote: VB.Net ASP
No such thing. VB.NET does ASP.NET, for which this is the forum. ASP is VBScript.
AndyASPVB wrote: o copy word and WAV files from a folder on one server to a folder on another server.
Well, that depends. If the server you're copying to is the server hosting the website, then you *could* do it that way, pretty easily.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Hi
I am having problem with my gridview not holding its checked state when being paged back and forth. I have used the code given below, which I found from another website. The only difference being that I am using a sqldatasource, and I changed it to rebind to my gridview as soon below. However, despite this, it is not holding the checked state.
Private Sub RememberOldValues()
Dim categoryIDList As New ArrayList()
Dim index As Integer = -1
For Each row As GridViewRow In GridView1.Rows
index = CInt(GridView1.DataKeys(row.RowIndex).Value)
Dim result As Boolean = DirectCast(row.FindControl("CheckBox1"), CheckBox).Checked
If Session(CHECKED_ITEMS) IsNot Nothing Then
categoryIDList = DirectCast(Session(CHECKED_ITEMS), ArrayList)
End If
If result Then
If Not categoryIDList.Contains(index) Then
categoryIDList.Add(index)
End If
Else
categoryIDList.Remove(index)
End If
Next
If categoryIDList IsNot Nothing AndAlso categoryIDList.Count > 0 Then
Session(CHECKED_ITEMS) = categoryIDList
End If
End Sub
Private Sub RePopulateValues()
Dim categoryIDList As ArrayList = DirectCast(Session(CHECKED_ITEMS), ArrayList)
If categoryIDList IsNot Nothing AndAlso categoryIDList.Count > 0 Then
For Each row As GridViewRow In GridView1.Rows
Dim index As Integer = CInt(GridView1.DataKeys(row.RowIndex).Value)
If categoryIDList.Contains(index) Then
Dim myCheckBox As CheckBox = DirectCast(row.FindControl("CheckBox1"), CheckBox)
myCheckBox.Checked = True
End If
Next
End If
End Sub
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As GridViewPageEventArgs)
RememberOldValues()
GridView1.PageIndex = e.NewPageIndex
GridView1.DataBind
RePopulateValues()
End Sub
My checkboxes are already disabled from user action because they are set by an image button I have on the gridview. Can you see what I need to change to keep the checked state when paging?
Thanks
|
|
|
|
|
Have you stepped through the code to see if the values are being stored, and what happens when the code attempts to set a checkbox ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi
I think I know what's happening!
Running the code through debug in Visual Studio 2008, I noticed that the code is working, and checkbox is being re-set. However, what I have noticed, and what I believe is that the whole page is being posted back because the whole gridview is being repopulated after the pageindexchanging event has been fired.
Is there away round this? I must point out, I mustn't use JavaScript because the website is being hosted on a client where it is being switched off.
Thanks
|
|
|
|
|
I have about six columns, and what I am looking to do is when any one of the six columns has been sorted into ascending of decending order for that state to remain when the next column is being sorted into either ascending or decending order. However, it is not sorting on two columns I need, I need it over the 6 columns, and thus when each column is sorted its state needs to be maintained until the user has filled up the sort expression. The sort expression needs to be maintained over the paging of the gridview.
I have been given this code by a member:
Protected Sub GridView1_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles GridView1.Sorting
Dim selectedColumn As String = e.SortExpression
Dim viewstateColumns As String
If ViewState("sortBLOCKED EXPRESSION Is Nothing Then
viewstateColumns = String.Empty
Else
viewstateColumns = ViewState("sortBLOCKED EXPRESSION.ToString()
End If
If viewstateColumns.IndexOf(",") >= 0 Then
viewstateColumns = String.Empty
ElseIf Not String.IsNullOrEmpty(viewstateColumns) Then
viewstateColumns = viewstateColumns & ","
End If
viewstateColumns = viewstateColumns & selectedColumn
e.SortExpression = viewstateColumns
ViewState("sortBLOCKED EXPRESSION = e.SortExpression
End Sub
Unfortunately, it doesn't sort on the first column and seems to work on only two columns, plus I am unsure how to create a sort expression to hold my sort order, which can be in any order (i.e. it is not sequential over columns of the 1,2,3, type, but could 2,1,3 , 5,1,6, etc)
So, can anyone help me, please?
Thanks
|
|
|
|
|
I have developed several n-tier web apps:
* business logic layer
* DALC
* presentation layer
As I understand, a Business Facade layer can go on top of the business logic layer - basically as an additional layer of abstraction. Is this correct?
How many projects have you worked on where you've used a Business Facade layer? What are the main variations of this architecture? What are the pros and cons of this architecture?
|
|
|
|
|
I think a more common layer is a Service Layer. Your domain (business logic) should be isolated from other layers. The first layer of isolation is the Data Access Layer, which abstracts your domain from the data store. The second layer of isolation is usually a Service Layer, or sometimes called the Application Layer. This layer is intended to isolate your domain from its consumers, presenting a simpler API to the world of consumers (presentation, other businesses, other departments, etc.) Some consider services to be part of the domain, and thats certainly a valid opinnion. The main goal is to provide a contract that the products that need to consume your domain can bind to, rather than binding directly to all the various business objects in your domain. This allows your domain and the consumers of it to vary as needed, without having broad repercussions when the domain needs to change in the face of changing business requirements.
|
|
|
|
|
Isn't a "Business Service Layer" the same thing as a "Service Facade"?
|
|
|
|
|
Not really. Services do provide a "facade", where a facade is a simplified API to a complex subsystem. However, services conform to a more strict set of rules, and are intended to be THE API, not a simplified API. Unlike a simple facade layer, which is just a simplification layer, the services in a service layer should conform to the following principles:
- formal contract
- loose coupling
- abstraction
- reusability
- autonomy
- statelessness
- discoverability
- composability
Conforming to those principles will maximize the long term maintainability of your project, keep layers loosly coupled, etc.
|
|
|
|
|
This is (possibly) just a quick one. I have a website set up with 3 roles, i want a user to be able to choose between 2 of these when registering (A and B for example), the third is the admin role. Is there anyways of adding this as a drop down list/radio button on the asp:creatuserwizard6
|
|
|
|
|
Hi all,
I am creating a type of control that is used to display fill-in-blank questions, the control will have a drop down list in the location of each blank with 4 options to choose from, like this
The elephant [is, are, us, we] a very big Mammal that [eat, eating, eats, ate] plants...
[is, are, us, we] = drop down list with 4 options that the student uses to choose the best answer.
The question is how to dynamically create drop down server controls AND position them in the correct place within the words of the paragraph?
Any ideas?
Thanks
And ever has it been that love knows not its own depth until the hour of separation
Mohammad Gdeisat
|
|
|
|
|
hi,i want to create graphs...plz help me..
txs in advance...
|
|
|
|
|
|
If you are working on .NET 3.5,Then You can sue Microsoft Chart Control. Or you can use some third party control like, Dundas Chart
|
|
|
|
|
If your interested in writing your own graphing controls, you should check out the Raphael JavaScript library. Its a common wrapper around the various vector frameworks in different browsers. You can use the simplified Raphael API to create vector graphics that work in IE (VML), FireFox (SVG), Opera/Safari (Canvas), etc.
http://raphaeljs.com/[^]
|
|
|
|
|
Hi,
I am using DataSet as a datasource to my CrystalReport and I have no problem in displaying the data. But there is a column called MoneyWithHeld and I am trying to find a way how to calculate the sum or total of these values. I searched online and have found two possible solutions
1).Using Formula Fields -- Created a field called TotalWithHeld and in the formula I just put Sum({DataSet.MoneyWithHeld}) and that is it but no luck. I am pretty sure I have missed some thing else here but not sure what it was. Becuase while I was trying to save this TotalWithHeld field I ran into some syntax errors and as a result of those while trying to run the report the error was 'The function cannot be used because it must be evaluated later' .
2).Running Total -- I picked my DataSet.MoneyWithHeld filed to 'field to summarize' text box and I picked the "Sum" under type of summary drop down. When I run my app it wouldn't give me any error as it was in the case #1 but it wasn't displaying the total but just the last value of the MoneyWithHeld in the last record. I tried picking the Count, distinct count but nothing has worked. Looks like here too I need to put some kind of formula by selcting the radio button 'use a forumula' but not sure how to put it to get the total.
I am kind of new to this Crystal reports would some one be kind enough to help me with this?
Thanks,
-L
|
|
|
|
|
Hi,
I am summing a column in my DataGrid and displaying total at the
footer with the below piece of code
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
'Snip out the ViewCount
Dim ContributionWithHeld As Integer = Convert.ToInt32(DataBinder.Eval(e.Item.DataItem, "ContributionWithHeld"))
myTotalContributionWithHeld += ContributionWithHeld
ElseIf e.Item.ItemType = ListItemType.Footer Then
e.Item.Cells(20).Text = "Total: " & String.Format("{0:#,###}", myTotalContributionWithHeld)
End If
and it works great and it dispaly the correct total when it binds the
data. But if I click on Edit row button in the grid then the Sum/Total
at the footer changes (deducts the value of that cell in that row from
the total). Looks like the the row that is in Edit mode is not being
taken into acount while summing the values.
Can some one help me with this how to change the above code or what I
else I need to do to display the Sum correct even if any of the rows
in Edit mode.
Also, the other thing I would like to be able to do is when a row in
Edit mode and as I change the value in the Cell that I would like
Sum , the Sum at the footer needs to be changed. May be I need to do
it under OnCellChange event but not sure where and how do I do it as I
never done this before.
Please help.
Thanks,
-L
|
|
|
|
|
HI,
Looks like it also works good as expected when I changed the If statement to include 'Or e.Item.ItemType = ListItemType.EditItem' at the end. So I am good with the Sum/Total now. But when I change the Cell I would like the Total/Sum also be changed. Any help appreciated.
Thanks,
-L
|
|
|
|
|
The following code snippet defines a hotspot which the user can click and where conditions can be created depending on the postback value.
Are there any tools or libraries in order to show the boundaries visually rather than counting the pixels?
<form id="form1" runat="server">
<asp:imagemap id="Imagemap1" runat="server" imageurl="Kids.jpg" xmlns:asp="#unknown">
Width="300" OnClick="Imagemap1_Click" HotSpotMode="PostBack">
<asp:rectanglehotspot top="0" bottom="225" left="0" right="150">
AlternateText="Sofia" PostBackValue="Sofia">
</asp:rectanglehotspot>
<asp:rectanglehotspot top="0" bottom="225" left="151" right="300">
</asp:rectanglehotspot></asp:imagemap></form>
Jon
|
|
|
|