.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links


Posted By:      Posted Date: August 31, 2010    Points: 0   Category :ASP.Net
Hi I'm new to the ASP world. I have a website with a form on it that has a buttonevents.cs file. It contains nothing. To start I don't know what the first line of code should be? I tried  header("Location: C:\HostingSpaces\cotsdata\cotsdatabase.com\wwwroot\forms\FrmVolunteer-dbupdate.aspx"); Have no idea the page just comes up blank when I add this line of code. Secondly the first record is coming up for the form which is good, it's pulling from a sql database. Now I need to make the buttons go to the next and porevious records and create a new record. Keep in mind I have no idea what I'm doing so here is the code I'm goofing around with with no luck:   public {void Command3_Click(object sender, EventArgs e) //Previous Record  //if(dsDataSet!=null)  // {  // dtDataTable = dsDataSet.Tables[0];  // totRow=dtDataTable.Rows.Count;   // if ((int)ViewState["currRow"] < totRow) // { // ViewState["currRow"]= totRow - 1; // } // SetNavigationRecord(); // } //this.Command3_Click.Text = "|<"; //this.Command3_Click.Click += new EventHandler(Command3_Click); //this.Volunteer.MovePrevious(); //<asp:TextBox runat="server" TextMode="MultiLine" style="COLOR:#000000; POSITION:absolute; TOP:71pt; LEFT:119pt; HEIGHT:26px; WIDTH:266pt; BACKGROUND-COLOR:#ff

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend