15,891,777 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by parisa heidari (Top 23 by date)
parisa heidari
4-Jun-12 2:49am
View
It was true, however thanks.
parisa heidari
4-Jun-12 2:46am
View
Thank you so much :)
parisa heidari
4-Jun-12 2:38am
View
Yes but it wasn't fired so i changed my code and gridHomework was loaded but the hyperlink column was not changed:
protected void dpdGroup_SelectedIndexChanged(object sender, EventArgs e)
{
int GroupId =Convert.ToInt32( dpdGroup.SelectedItem.Value);
CourseGroup group = DB.CourseGroups.Where(g => g.Id == GroupId).First();
IEnumerable<homework> lstHomework = group.GetHomework();
GridHomework.DataSource = lstHomework;
GridHomework.DataBind();
foreach (GridViewRow gvRow in GridHomework.Rows)
{
int HwId = (int)GridHomework.DataKeys[gvRow.RowIndex].Value;
Homework Hw = DB.Homeworks.Where(h => h.Id == HwId).First();
HyperLink link = new HyperLink();
link =(HyperLink)gvRow.FindControl("HyperLink1");
link.NavigateUrl = Hw.DscripPath;
}
GridHomework.DataBind();
}
and in html:
<asp:TemplateField HeaderText="شرح تکلیف">
<itemtemplate>
<asp:HyperLink ID="HyperLink1" runat="server">ِDownload
parisa heidari
3-Jun-12 7:55am
View
Thank you Mr. bahrami it was useful.But what was the broblem why event wasn't fired?
When i set a break point it was fired and i found my problems in code.
parisa heidari
3-Jun-12 4:13am
View
I'm solving this problem with changing relations and use sgldatasource.
parisa heidari
3-Jun-12 4:05am
View
Deleted
I don't know what you mean but if i understand right:
Yes, there is one to many relationship from Professor to CourseGroup and ProfId is foreign key in coursegroup.
parisa heidari
2-Jun-12 9:44am
View
Deleted
Hi,Thank you Mr. Rahul i used from your link. But it don't solve my problem.
I have a gridview that at first column i bind Id and fourth colum is a HyperLinkField : <asp:HyperLinkField HeaderText="Description Homework" Text="Download" /> .
I want when the gridview is loaded Download convert to link and its navigateUrl set to DescripPath, I wrote this code but it doesn't work:
protected void GridHomework_RowDataBound(Object sender, GridViewRowEventArgs e)
{ if (e.Row.RowType == DataControlRowType.DataRow) {
int HwId =Convert.ToInt32( e.Row.Cells[0].Text);
Homework Hw = DB.Homeworks.Where(h => h.Id == HwId).First();
HyperLink Hl = (HyperLink)e.Row.Cells[3].FindControl("HyperLinkField");
Hl.NavigateUrl = Hw.DscripPath; }
GridHomework.DataBind(); }please help.
parisa heidari
2-Jun-12 8:15am
View
I need to join two tables and the result set as gridview datasource so i cann't use sqldatasource to bind data to gridview
parisa heidari
2-Jun-12 8:08am
View
Hi, While binding to the grid. it sets gaduatedStd as Grid DataSource but when it run (GridGaduated.DataBind();) it throws that error.
parisa heidari
2-Jun-12 2:23am
View
Deleted
Thanks But i had written GridGaduated.DataBind()
parisa heidari
2-Jun-12 2:19am
View
Thanks but i had written GridGaduated.DataBind();
parisa heidari
1-Jun-12 14:55pm
View
Excuse me but I'm very new in programing which file is database create script? And how can I give it to you? Do I copy it like above?
parisa heidari
31-May-12 15:35pm
View
Thank you for helping.
parisa heidari
31-May-12 15:21pm
View
thanks Rajesh your suggestions was very useful they solved my problems.At first Saving changes in DB was not permited so i remove my DB and recreate it and Id column turns to identity.
parisa heidari
31-May-12 15:12pm
View
Deleted
thanks Rajesh your suggestions was very useful they solved my problems.At first Saving changes in DB was not permited so i remove my DB and recreate it and Id column turns to identity.
parisa heidari
31-May-12 11:43am
View
Deleted
i solved the problem of changing the name of dataContext but I still have that problem with insert object in CourseGroup class
parisa heidari
31-May-12 11:37am
View
Deleted
i solved my problem whit replacing Element (the name that name of datacontextclass change to) with name of my DataContext(HwMangementDataContext) class but i don't know why this happened still.
parisa heidari
31-May-12 11:30am
View
thanks it was very useful.
parisa heidari
31-May-12 9:40am
View
i create it manually an i have one datacontext.
parisa heidari
31-May-12 4:03am
View
thanks Rajesh but when i did it the name of dataContext class change to Element automatically why?
and i get this error:
The type or namespace name 'HwMangementDataContext' could not be found (are you missing a using directive or an assembly reference?)
parisa heidari
30-May-12 11:02am
View
hi Bryian , i dont have any code in page_load event of the master page it just from the beginnig of event goes at the beginning of page_load event of the master page and throw the error
thanks
parisa heidari
30-May-12 10:57am
View
thanks Linto Leo Tom but it is stoped at beginnig of event and it don't arrive this line additionally crs is not null but i used your suggestion.
parisa heidari
30-May-12 10:39am
View
Excuse me , but i don't know jQuery i just start lerning asp.
the value is set with this code:
foreach (Course crs in DB.Courses)
{
ListItem item = new ListItem(crs.ToString());
dpdCourse.Items.Add(item);
}
Show More