|
You have to create an object of the class and call its function.
for eg:-
Dim f As New Webform11
Button1.Text = f.name1() 'name1() is a function which is present in the webform11
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
check my article currency Conversion using Web Services.
its a easy implementation for a web service.
keep Learning and you never will be out of date...
|
|
|
|
|
Hi
How do i impersonate a piece of code, i dont want to set impersonate=true for whole apllication instead i want one particluar piece of code to impersonate.
And the code to impersonate is related to office automation
|
|
|
|
|
|
My aspx webpage have a table, i want make one of the cell become button , so i can click on the cell and perform some action same as button funcion ? how i do it ?
Best regards,
Chee ken
|
|
|
|
|
Put Javascript in the onclick event. Example:
---
b { font-weight: normal; }
|
|
|
|
|
I am using MailMessage class in ASP.NET.
There i need to have a provide Reply-To ID.So that once the user clicks reply ID will appear in the TO address automatically.
So that anybody can reply directly to the ID which i have mentioned regardless of the inbox.
Sathiyaraj Ganesan
|
|
|
|
|
store the email-id of your users in a database. whenever anybody clicks on the link, retrieve the email-id from the database and put that value in the To address.
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Ability to specify reply-to address (instead of using from address while replying)
Reply-To : dilp@rediffmail.com
The user will specify the Reply-To while sending mail and at the receiver's end,From Address will be info@mydomain.com(provided by the mail server) and if he clicks reply then the Reply-To address specified by the sender(i.e dilp@rediffmail.com) will appear in the To Address.
Sathiyaraj Ganesan
|
|
|
|
|
hello
i learn with article
http://msdn.microsoft.com/practices/apptype/webapps/default.aspx?pull=/library/en-us/dnpag/html/diforwc-ap02.asp#diforwc-ap02_plag_howtodesigncrudform
THE SECTION
How To: Design Data Maintenance Forms to Support Create, Read, Update, and Delete Operations
i found this article very good my objective is design the data access layer with application block
The article is very nice but i have some problem ..
Idont know what is the problem
LAYER BUSINESS ENTITY
----------------------------------
i have a dataset typed CustomerDS
LAYER DATA ACCESS
-----------------------------------------------------
Public Function GetById(ByVal customerId As Integer) As CustomerDS.Customer * I HAVE ERROR ONLY I CAN PUT customerDataTable AND CustomerDS.customerDataRow
Try
Dim customer As New CustomerDS
' Execute the "select single entity" stored procedure
Dim reader As SqlDataReader = SqlHelper.ExecuteReader(Me.connectionStr, "Customer_SelectByID", customerId)
Try
' Populate the dataset with reader rows
SQLHelperExtension.Fill(reader, customer, customer.Customers.TableName, 0, 1)
*THE SQLHELPEREXTENSION I HAVE ERROR WITH THIS
Finally
reader.Dispose()
End Try
' Return the first row
Return customer.Customers(0)
Catch e As SqlException
End Try
COMO DEVUELVO EL DATASET CON LA TABLA CUSTOMER
LAYER BUSINESS LOGIC
----------------------------------
' Return the customer with the specified ID
Public Function GetById(ByVal customerId As Integer) As CustomerDS.Customer * I HAVE ERROR IS NOT DEFINED
' Create the DALC component
Dim customerDalc As New CustomerDalc
' Get the specified customer using the DALC component
Return customerDalc.GetById(customerId)
End Function 'GetById
IN MY PAGE ASPX
------------
' Create a "customer" business component
Dim customerBc As New CustomerBc()
' Get the specified customer's details from the data store
Dim customer As CustomerDs.Customer = customerBc.GetById(CInt(ViewState("CustomerId"))) *******I HAVE ERROR CustomerDS.Customer
' Populate the form controls with customer details
txtCompany.Text = customer.CompanyName
txtContact.Text = customer.ContactName
i dont understan why i dont have CustomerDS.Customer
this is my xml
<xs:schema id="CustomerDS" targetnamespace="http://tempuri.org/CustomerDS.xsd" elementformdefault="qualified"
="" attributeformdefault="qualified" xmlns="http://tempuri.org/CustomerDS.xsd" xmlns:mstns="http://tempuri.org/CustomerDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="CustomerDS" msdata:isdataset="true">
<xs:complextype>
<xs:choice maxoccurs="unbounded">
<xs:element name="Customer"> ***************here there is the table customer
<xs:complextype>
<xs:sequence>
<xs:element name="CustomerId" msdata:readonly="true" msdata:autoincrement="true" type="xs:int">
<xs:element name="CompanyName" type="xs:string" minoccurs="0">
<xs:element name="ContactName" type="xs:string" minoccurs="0">
<xs:element name="Address" type="xs:string" minoccurs="0">
<xs:element name="City" type="xs:string" minoccurs="0">
<xs:element name="Region" type="xs:string" minoccurs="0">
<xs:element name="PostalCode" type="xs:string" minoccurs="0">
<xs:element name="Country" type="xs:string" minoccurs="0">
<xs:element name="Email" type="xs:string" minoccurs="0">
<xs:unique name="CustomerDSKey1" msdata:primarykey="true">
<xs:selector xpath=".//mstns:Customer">
<xs:field xpath="mstns:CustomerId">
thanks for the time
|
|
|
|
|
Hi All,
I need to maintain scrolling position of IFrame control when the page in IFrame is postback.
Is there everyone know how to code?
Thank you in advanced,
Jib
Jibcht
-- modified at 0:51 Monday 18th September, 2006
|
|
|
|
|
Is it the page in the iframe or the page containing the iframe that is doing the postback?
---
b { font-weight: normal; }
|
|
|
|
|
This is a simple question that i just can't seem to find info on. After you let VSWeb2005 create the Membership system for you, how do you change the password regular expression? I understand that besides changing the passregularexpression property on the CreateUserWizard control, the server side must be changed as well, how do I do this? Thanks.
|
|
|
|
|
hi all
i am creating a web site using ASP.Net 2003 and i want to enable my application to send an auto E-mail to the user after a successfull submit of the data with some info and i want also to validate the user's E-mail
thank u all
abdelhameed81
|
|
|
|
|
Where is the question?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
i just want to knw hw to do all that as i did not do all that before in any application
abdelhameed81
|
|
|
|
|
|
Using SQl Server 2000 Reporting Services ??
hi
i am Using SQl Server 2000 Reporting Services with:
1)- windows 2003 server
2)- VS 2003 VB(asp.net)
3) sql 2000 server
what the VB code that i can use it to display and print report within web app
by using VB(asp.net) code ??
|
|
|
|
|
Hi guys
How does one change the registry keys to use the eventviewer/logger?
thanks
|
|
|
|
|
To make an entry of your application you first need to make an entry in Registry.
To make an entry in registry follow these steps:
1. In the run command of windows type RegEdit.
2. In the screen go to HKEY_LOCAL_MACHINE -> SYSTEM -> CURRENTCONTROLSET -> SERVICES ->
EVENTLOG -> APPLICATION
3. Right click on the Application and Then New -> Key
4. Then give the name of your key which you want to use in your application (ie. abcd).
5. Then click on the key you have just created (abcd).
6. In the right hand side pane right click and then New -> StringValue
7. give the name of the string value as "EventMessageFile" (without double quotes).
8. Then double click on the String value and paste this path in ValueData:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll" (without double quotes").
Bingo :-> !!! now you can use the key name in your application to log the errors in eventviewer.
I hope it is of some help.
Deepak Surana aka. ~deeZ
|
|
|
|
|
The effect I am after is to squash just one edge of a photo to make it look like its going off into the distance - this isn't a straight skew. So the corners would be going clockwise from top left
0,0
100,10
100,90
0,100
Any help would be great - its driving me mad search the web for a solution to this. I figure its either sooooo simple no one has ever had to ask before or its sooo complicated no one has worked out how to do it yet
|
|
|
|
|
A week later, no replies - I guess I should take that as a "no" then.
|
|
|
|
|
Hi everyone
I've tried to write a very simple mail client using ASP.NET 2.0 but i have a problem.I installed a free SMTP server tool on my computer (laptop) and it worked if i use Internet connection at my company.However i can not send any email at home.I use another ISP at home.I dont understand whether ISP concern?i turned off the free SMTP server and use SMTP virtual server of IIS then it did not generate any error but i can not received any email even in bulk.By the way can anyone tell me how to use SMTP server of Gmail?Thanks in advanced
|
|
|
|
|
I am trying to create a simple control that inherits from class CompositeControl. There are 3 controls: a checkbox, a third party datepicker and a validator. The idea is to require the user to select a date if the user causes the checkbox to be checked. If the checkbox is not checked then the code clears the datepicker.
The problem I am running into is with the id given to the datepicker. I named it "DatePicker" and if I call the composite control "Composite" on the Web form then when I run without the validator I can see from the source that on the client side the control is given an id of "Composite_DatePicker".
If I add the validator and point it to "Composite_DatePicker" I get an error message saying that there is no control called "Composite_DatePicker". How do I get around this?
|
|
|
|
|
Have you set the Id property of all the controls.
And make sure you call the method EnsureChildControls() before any validation or condition.
And write all the code for creating the control in CreateChildControls() method.
Deepak Surana aka. ~deeZ
|
|
|
|