|
ASP.NET 2.0 is the current version of the ASP.NET web application platform. Among the features it adds:
- a host of new server controls, including data source, login, navigation, and web part controls
- support for master pages, themes, and skins to assist developers with page layout
- a full membership API to support authentication and authorization requirements typical of commerce and community web sites
- a number of caching improvements
- a number of language enhancements for VB.NET and C#
- a bunch more stuff
Take a look at the quickStart tutorials on http://www.asp.net[^] to get you started.
|
|
|
|
|
Error = ; expected before or after word row, on line marked with
The code is:
private void DataGridEditUser_UpdateCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
//Find the record that is to be edited
int id = (int)this.DataGridEditUser.DataKeys[e.Item.ItemIndex];
this.oleDbDataAdapterEditUser.Fill(this.dataSetEditUser);
:(this.dataSetEditUser.tblUser row = this.dataSetEditUser.tblUser.FindByUser_ID(id);
//Edit the record it
TextBox aTextBox = (TextBox)(e.Item.Cells[1].Controls[0]);
row.UserName = aTextBox.Text;
//Ipdate the record in the database
this.oleDbDataAdapterEditUser.Update(this.dataSetEditUser);
this.DataGridEditUser.EditItemIndex=-1;
this.DataGridEditUser.DataBind();
}
Tried different things but can't work it out. Any help appreciated.
|
|
|
|
|
how can i create and send mail
Qamar
|
|
|
|
|
System.Web.Mail has everything you need.
--------------------------------------------------------
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!
|
|
|
|
|
Hi,
Mail code using SMTP mail server,
using System.Web.Mail;
//Code to send mail
MailMessage mail = new MailMessage();
mail.To = "SentPerson@yahoo.com";
mail.Subject = "New Mail Test";
mail.Body = "Test mail sent";
mail.BodyEncoding = Encoding.ASCII;
mail.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = "www.servername.com" //smtp server
mail.From = "GetPerson@yahoo.co.in";
SmtpMail.Send(mail);
Hope this help u...
|
|
|
|
|
we are trying to develop a folder tree which will came from left side of the browser window. something life in vb will click on toolbox button and it will apper and if we again click it will again minimize.
any one have idea about this how to do this?
vipin desai
|
|
|
|
|
Look at the TreeView control.
--------------------------------------------------------
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!
|
|
|
|
|
Hi all,
I need some ideas or thoughts:
I have a GridView I am populating from a cached DataView with sorting and paging.
My pager row is a custom template with a drop-down list: The user selects the page of the ddl and they are posted-back to that particular page using the cached DataView and a filter.
This worked fine on it's own, in both IE and Firefox.. No problems there..
but as soon as I placed the GridView in a content control in a C# Content page, which is called into the Master page ContentPlace Holder, the Paging NO LONGER functions in Internet Explorer, yet the paging works fine in Firefox.. Also, the sorting works like a charm in both IE and Firefox, in the Master page configuration.
I even tried setting a breakpoint while attaching to the IE process (w3wp.exe) and guess what: the breakpoint isn't getting hit!!
Is their a difference in the event model when using a Master Page, and only in IE?? anyone have any thoughts???
Thanks!
-Eric
Practice sesquipedalianism!
|
|
|
|
|
Hi there,
What do you mean by it's not working in IE? Does that mean the dropdownlist in the pager template does not post the page back? Or the event gets fired and the code gets executed but the page index does not change?
|
|
|
|
|
The event seems to never fire, at least I cannot get it to break in VS when attaching to the process. The ddl has it's AutoPostBack set to true, and it works fine without the Master page.
Practice sesquipedalianism!
|
|
|
|
|
Hi,
Go to kynou.com and try to use the search keyword GridView. I found a tutorial that talks about your question.
I hope I helped.
sfdsfsdf
|
|
|
|
|
I looked at this kynou site but the tutorial was unbearably basic and has no content about rendering custom pager controls. Are you sure this is where you saw it??
Also, an update.. the standard paging controls work, if I remove my custom pager row template, and I am also seeing the same behaviour with imagebutton controls as well, in multiple IE browsers.
Any thought appreciated.
-Eric
|
|
|
|
|
Sorry, I see now your question. I didn't pay attention very well. The GridView thing caught my eyes because I just went through a tutorial from kynou.com and I wanted to share with you.
Sorry
sfdsfsdf
|
|
|
|
|
The system is occuring the following problem while openning the new project of ASP.net with C# or VB.net
1.The Web server reported the error while attempting to create or open the new web project located at the following URL http://localhost/Web Application1.The connection with the server could not be established.
I have installed the IIS.
Please help me sort out this problem.
Thank You
Pankaj Garg
-- modified at 0:28 Sunday 30th April, 2006
|
|
|
|
|
Hi there,
Do you install the IIS before or after the .Net framework? Have you tried with the local IP address of the machine instead of the localhost name. Btw, this is a known issue which you can quickly find the solution with a little help from Google[^].
|
|
|
|
|
I have a web user control within a dtatList
<asp:DataList runt="server" ID="me">
<MyAddon:MyWUC MyProperty='<%=MyVariable%>>
</asp:DataList>
but the property in my WUC comes out as <%=MyVariable%>>
How do I get it to come through with the value.
Or I tried to see if I could access the WUC through ItemCreated of the dataList. But I cant find it. Anyone have any ideas?
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Nick,
I guess you may want to use the data binding expression <%# ... %> instead of the inline expression <%= ... %> .
|
|
|
|
|
Yeah I tried that also.
I ended up just doing a findControl in the ItemCreated event and setting the data directly from there
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Hi there,
Currently I am creating an application for a library system where I have a field which is Available in my database.I am creating a web system using ASP.NET using VB code.It is a Text type and I decided to have it either Yes or No for the value.I am using Access database for your info.
I also have a text box where user can just key in the serial code of the book to borrow from data grid generated.
While I am using ASP.NET Web Matrix and I am quite new to the ASP.NET, I resorted to use the Update Wizard for performing the update data by the user from the text box.
I have tried to grab user's value in the text box (which is the serial code)
and update the Available field on the dB.However, after modify some code from the wizard, I couldnt get it workable.And there are many errors.
Below are the code after generating the wizard for Update data :-
Function Test(ByVal serialNumber As String, ByVal available='No' As String) As Integer
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\Inetpub\wwwr"& _
"oot\db\equipment.mdb"
Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)
Dim queryString As String = "UPDATE [portable] SET [Available]
=@Available='No' WHERE ([portable].[SerialNumber"& _ "] = @SerialNumber)"
Dim dbCommand As System.Data.IDbCommand = New
System.Data.OleDb.OleDbCommand
dbCommand.CommandText = queryString
dbCommand.Connection = dbConnection
Dim dbParam_serialNumber As System.Data.IDataParameter = New
System.Data.OleDb.OleDbParameter
dbParam_serialNumber.ParameterName = "@SerialNumber"
dbParam_serialNumber.Value = serialNumber
dbParam_serialNumber.DbType = System.Data.DbType.[String]
dbCommand.Parameters.Add(dbParam_serialNumber)
Dim dbParam_available='No' As System.Data.IDataParameter = New
System.Data.OleDb.OleDbParameter
dbParam_available='No'.ParameterName = "@Available='No'"
dbParam_available='No'.Value = available='No'
dbParam_available='No'.DbType = System.Data.DbType.[String]
dbCommand.Parameters.Add(dbParam_available='No')
Dim rowsAffected As Integer = 0
dbConnection.Open
Try
rowsAffected = dbCommand.ExecuteNonQuery
Finally
dbConnection.Close
End Try
Return rowsAffected
End Function
I tried to modify after code has been generated by the wizard and it is shown below:-
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB
Services=-4; Data Source=C:\Inetpub\wwwr"& _
"oot\db\equipment.mdb"
Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)
Dim queryString As String = "UPDATE [portable] SET [Available]=@Available='No' WHERE ([portable].[SerialNumber"& _
"] = @SerialNumber)"
Dim dbCommand As System.Data.IDbCommand = New System.Data.OleDb.OleDbCommand
dbCommand.CommandText = queryString
dbCommand.Connection = dbConnection
Dim dbParam_serialNumber As System.Data.IDataParameter = New System.Data.OleDb.OleDbParameter
dbParam_serialNumber.ParameterName = TextBox1.Text
dbParam_serialNumber.Value = TextBox1.Text
dbParam_serialNumber.DbType = System.Data.DbType.[String]
dbCommand.Parameters.Add(dbParam_serialNumber)
Dim dbParam_available='No'
Dim dbParam_available As System.Data.IDataParameter = New System.Data.OleDb.OleDbParameter
dbParam_available.ParameterName = @Available
dbParam_available.Value = available='No'
dbParam_available.DbType = System.Data.DbType.[String]
dbCommand.Parameters.Add(dbParam_available='No')
Please advise or if you have any better solution to this implementation.
I am actually performing for checking out library books from the system.
And I intend to re display the updated data grid on bottom page with those updated data been greyed out.I have tried to find the correct coding for Update for using Access database but as of now, I can only find references using SQL or MYSQL database.
Thanks in advance,
-Jason
|
|
|
|
|
I've got a new client I'm working with who's dead set on eliminating postbacks at the expense if my sanity.
One of their forms has 4 drop down lists, all related. My original design had a onchange postback to update the related lists with appropriate choices. Simple and easy to understand/maintain, but not the customer experience they want.
Here's a brief example:
List 1. Available Service Periods
List 2. Available Service Locations - Changes based on period availability.
List 3. Available Service Types - Changes based on location
List 4. Available Services - Changes based on selected type
I can't seem to come up with a javascript scheme to represent this relationship, update all the select lists and also have it available on the server side during postback to save the user selections.
Anyone solved anything like this, and have a suggestion?
|
|
|
|
|
|
This looks pretty promising, thanks!
|
|
|
|
|
Hi
I have a business and an employee we have dismissed, we have now found he has taken client files, can anyone tell me how to find his hotmail password? we need to access the user hotmail to see what damage has been domne to my business,
please email me, youracces2005@hotmail.com
thanks
|
|
|
|
|
For that, you would have to contanct the company that provides the hotmail mail service, e.g. Microsoft.
When you ask in a forum, expect the answer in the forum, not in your email.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks, and i will next time keep to the forum,
|
|
|
|