PDA

View Full Version : مشکل در هست (دلیل اجرا نشدن)



sg.programmer
دوشنبه 08 آبان 1391, 11:20 صبح
سلام
این برنامه مشکلش کجا هست روی لوکل اجرا میشه ولی در هاست اجرا نمیشه و گیر میکنه



protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
if (GridView1.SelectedIndex > -1)
{
TextBox1.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[3].Text;
//TextBox2.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[4].Text;
TextBox7.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[4].Text;
TextBox8.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[5].Text;
TextBox3.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[6].Text;
TextBox4.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[7].Text;
TextBox5.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[8].Text;
TextBox6.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[9].Text;
CodeMeli = TextBox7.Text;
//fetch
}
}

aliblue
دوشنبه 08 آبان 1391, 14:11 عصر
خوب CustomError mode=off کن ببین چه خطایی میده؟
در ضمن من برای این که به محتویات یک سلول سطر انتخاب شده دسترسی پیدا کنم توی رویداد GridView1_SelectedIndexChanged ، کد زیر رو می نویسم:
GridView1.SelectedRow.Cells[3].text;

sg.programmer
دوشنبه 08 آبان 1391, 19:16 عصر
سلام تشکر
این خطا را میده


Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'School.Admin.AddStudents'.

Source Error:

Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Administrator.Master" AutoEventWireup="true" CodeBehind="AddStudents.aspx.cs" Inherits="School.Admin.AddStudents" %> Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> Line 3: </asp:Content>
Source File: /Admin/AddStudents.aspx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634

sg.programmer
دوشنبه 08 آبان 1391, 19:21 عصر
سلام تشکر
خطای زیر را میده


Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'School.Admin.AddStudents'.

Source Error:

Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Administrator.Master" AutoEventWireup="true" CodeBehind="AddStudents.aspx.cs" Inherits="School.Admin.AddStudents" %> Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> Line 3: </asp:Content>
Source File: /Admin/AddStudents.aspx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634

sg.programmer
دوشنبه 08 آبان 1391, 19:29 عصر
سلام تشکر
خطای زیر را میده


Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'School.Admin.AddStudents'.

Source Error:

Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Administrator.Master" AutoEventWireup="true" CodeBehind="AddStudents.aspx.cs" Inherits="School.Admin.AddStudents" %> Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> Line 3: </asp:Content>
Source File: /Admin/AddStudents.aspx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634

fakhravari
دوشنبه 08 آبان 1391, 20:22 عصر
درست پابلیش نشده.

sg.programmer
دوشنبه 08 آبان 1391, 21:41 عصر
اره حق با شمابود
من طریقه پابلیش را نمیدونم
ولی من وقتی سایت را تغییر دادم و تو هاست میریختم فقط فایل تغییر یافته را میریختم و فایل های websitename..pdb , .dll را نمی ریختم که با ریختن این دو فایل مشکلم حل شد
بازم تشکر

sg.programmer
دوشنبه 08 آبان 1391, 21:46 عصر
اره حق با شمابود
من طریقه پابلیش را نمیدونم
ولی من وقتی سایت را تغییر دادم و تو هاست میریختم فقط فایل تغییر یافته را میریختم و فایل های websitename..pdb , .dll را نمی ریختم که با ریختن این دو فایل مشکلم حل شد
بازم تشکر