מוזר

Admini

New member
חלוקה לדפים

להעזר ברכיבים של ASP.net או לבנות לבד ? חשוב לציין שהכל עובד בצד לקוח (JS).
 

Admini

New member
שגיאה תמוהה

יובל וגלעד - אני יודע שאולי תרצו לשרשר את זה להודעה הקודמת שלי - אבל אני חושב שעכשיו היא תרד לעמוד הבא, ואם לא אז תנו לה לעשות את זה
השגיאה:
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.​
הבעיה: אני מנסה להעביר לפונקציה אובייקט Connection בשיטה הזו:
Func(Conn)​
 

gilad g

New member
טיפה יותר קוד ../images/Emo13.gif

על איזו שורה אתה מקבל את השגיאה
איפה אתה מגדיר את conn
 

Admini

New member
OK ../images/Emo13.gif

ה-Conn מוגדר ב-Page_Load
'Title.getConn() מחזירה את מחרוזת החיבור dim Conn as OleDbConnection = new OleDbConnection (Title.getConn())​
השורה:
Response.Write(CheckLogin(Conn , Request.Cookies("Snitz00User")("Name"), Request.Cookies("Snitz00User")("Pword")))​
הפונקציה:
Function CheckLogin(Connection As Object, sUsername As String, sPassword As String) As Integer​
 

Admini

New member
זו

השורה:
Response.Write(CheckLogin(Conn , Request.Cookies("Snitz00User")("Name"), Request.Cookies("Snitz00User")("Pword")))​
 

Admini

New member
רגע

אי אפשר לשלוח מחרוזת ריקה לפנוקציה ? או שאני לא יכול לטפל בכלל בעוגיה ריקה בלי טיפול שגיאות ? כנראה פיספסתי משהו
 

Admini

New member
עוד שאלה

יש לי ASCX עם הבאר של האתר אני רוצה להציג הודעת שגיאה עם הבאר... מהי הדרך הכי יעילה לעשות את זה ?
 

gilad g

New member
המממ ../images/Emo26.gif

---- title.ascx ----- <script language="C#" runat="server"> //This can be as code-behind as well.. public string Title; </script> ... .. <%=Title%> ... .. --- Page.aspx ------ <%@ Register TagPrefix="x" TagName="y" src="title.ascx" %> ... <x:y runat="server" Title="Welcome to my site!" /> ..​
 

Admini

New member
DataGrid ו-JS

DataGrid יוצר HTML ואני עובד עם פונקציות של JS. או שפיספסתי משהו.
 

gilad g

New member
../images/Emo35.gif

ואתה תזרוק את כל השורות ללקוח על ההתחלה
 

Admini

New member
לא

אני אעשה חלוקה בשיטות שעבדתי איתן עד עכשיו (בדרך כלל ב-SQL)
 

Admini

New member
OleDbDataReader

Dim oReader As OleDBDataReader = Cmd.ExecuteReader​
עובד תקין אצלי במחשב וכשמעלים לשרת:
No value given for one or more required parameters. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: No value given for one or more required parameters.
יש רעיון ?
 
למעלה