15,894,646 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 M Ali Qadir (Top 50 by date)
M Ali Qadir
12-Aug-12 6:14am
View
hi, Thank you for replying but I have Done Some Different to make it happen,
For This i have Created a Class Of Prayer that holds both event and Prayer and Return Masjid from These explicit Methods, then I call Both of these Methods, and in Index Action of the Events I have Returned From the Index Action GetEvents() Method that was Casted in Masjid
and in View I have Make it @model CMg.Data.Masjid instead of Prayer same in events
Hope you all understand
M Ali Qadir
26-Jun-12 10:59am
View
Thank You, To Clear The Point I would say that I am using HostName of Server on my Local Machine.
M Ali Qadir
26-Jun-12 10:46am
View
In fact if you see my Post there I have Mentioned That when I use localhost It does not work And If I use server host Name then It works on my Machine then It works. Like http://www.masjidzamzam.com/services/AccountMembershipService.sv This Works Fine but not this One http://localhost:5229/Services/AccountMembershipService.svc
M Ali Qadir
26-Jun-12 10:39am
View
I have Try Using IIS, I have added Site to it, and also let project Use IIS but I am not able to extract data From the DB I think there may be some other Issue, But I if I change the Web Config to HostName then It works fine what could be the cure to this Problem. thank you
M Ali Qadir
26-Jun-12 10:36am
View
hi, Tim I have tried All Provided Stuff but Call to DB is not yet functional could you let me know some more Tips to Troubleshoot This problem
M Ali Qadir
26-Jun-12 8:47am
View
Yes Its Great Post Thank You
M Ali Qadir
26-Jun-12 8:37am
View
Yes Great Answer I think first Line is right that I may not have transferred the web service to my local computer with same setting as in the server, and I am accessing data inside my web service, I have does not setup IIS also I am trying it with Built in Development Server, Despite all this is true, Can you let me know some Material to Setup service on my local Computer With same Configuration as often in the server machines, I Hope I will get out of This problem. thank you Tim
M Ali Qadir
20-Jun-12 5:34am
View
I have put if(ModelState.IsValid) And in else { return RedirectToAction("Edit")}
and I have change the GridEditMode.Inline to GridEditMode.Inform and It is working.
M Ali Qadir
8-Jun-12 6:52am
View
Should I go through the SunTimes Class or Controller Class??
M Ali Qadir
7-Jun-12 8:41am
View
I have removed the Code you suggested, but not working yet, In fact my page showing same sunrise and sunset, what else I can do?? I don't Think I have Problem that is mentioned in "Nice one but question"
M Ali Qadir
11-May-12 12:47pm
View
I want to do Through C#
M Ali Qadir
30-Apr-12 14:01pm
View
I have Already Tried This thing but I want to do it with two Tables, Do you have any other solution to it.I also tried to Inner Join these two Tables but I don't have exact Idea about it.
Ali
M Ali Qadir
11-Apr-12 0:12am
View
I think Razor don't support for user controls such as register So in place of register what should I do?I already used a strongly typed View with Donation Model.
M Ali Qadir
11-Apr-12 0:06am
View
Yes I have already put the @RenderSection in the Layout but I don't think this the solution to my question please be specific.
M Ali Qadir
22-Mar-12 9:28am
View
Thank you I have Converted It
M Ali Qadir
20-Mar-12 5:40am
View
No Sir,That's not the Solution,why silverlight here i dont think so I just need that each control in listview should work explicitly.I never Use silverlight may It will work but I don't Have Idea.Idea I have Is to use C# coding to do It But I did Not Find some help so Please be Specific.
M Ali Qadir
19-Mar-12 7:13am
View
In Fact This The Aspx File Firstly I have to delete It and add New View to My Method And then Write All The logic Of this Page to my .cshtml File.
M Ali Qadir
12-Mar-12 9:43am
View
there may be problem with syntax "foreach (DataRow drTemp in ds.Tables[0].Select("a10 IS NOT NULL")"
M Ali Qadir
12-Mar-12 8:24am
View
Hi,
Please tell me one thing I am just at the edge of solving it.
if (e.Row.Cells[1].Text ==string.Empty)
{
GridView1.Columns[0].Visible = false;
}
I have used this code then I debugged it then at null row it is showing me ; a space character please tell me now How could I reomve this space and make my row invisible.
Thank you
M Ali Qadir
12-Mar-12 7:58am
View
Sir I have debugged its not getting to this event I dont think that this event works
M Ali Qadir
12-Mar-12 7:47am
View
ds.Tables[0].Select("a10!=''");I have use this
but exception "Cannot interpret token '!' at position 4."
M Ali Qadir
12-Mar-12 7:35am
View
I have Voted for your Marvelous ans 5/5
M Ali Qadir
12-Mar-12 7:34am
View
I will vote but please tell me
DataSet ds=new DataSet();
ds.Tables[0].Select("a10 !="");
a10 is column If I am going right?
In second line I think I am not declaring in right way.Please reply How to declare the second line for my second column.
M Ali Qadir
12-Mar-12 7:00am
View
Yes Understand Now Thank You Anik I will try to Implement It as you Suggest.
M Ali Qadir
12-Mar-12 5:26am
View
Yes from Excel to dataset,Sorry But I did not Understand Please elaborate more.
M Ali Qadir
12-Mar-12 4:47am
View
Hi,Anik
In fact I have imported the records from excel file,So I am Improving question with more code that tell that excel file imported to grid.
M Ali Qadir
11-Mar-12 5:09am
View
And I should write the code in same event as in my code "DataRowBound"?
M Ali Qadir
11-Mar-12 5:07am
View
Hi,Bala this code means that I am checking nulls after that i want that these null value shouldn't be displayed so writing simply "GridView1.Columns[0].Visible = true;" would be enough or not?
M Ali Qadir
11-Mar-12 4:18am
View
Yes That's the great idea "Anik" but How Could I implement on which event of grid would you please give an example,thank you
M Ali Qadir
8-Mar-12 11:54am
View
Is there no Ans Please Reply.
M Ali Qadir
8-Mar-12 6:32am
View
I have Found solution
M Ali Qadir
7-Mar-12 12:04pm
View
That's good sir could you please post some useful link for me to understand this process as I have Searched already, if I could find solution through google I may not come to codeproject.
M Ali Qadir
7-Mar-12 10:18am
View
would please elaborate more using codes so that I could better understand,please let me know that if i have add any handler for this also,If Yes then How should I code It to query db.thank you
M Ali Qadir
1-Mar-12 5:59am
View
Sir I am not using ajax And I am saving image on server,What kind Of tricks could be possible please elaborate thank you.
M Ali Qadir
29-Feb-12 13:11pm
View
Would you reply me please its getting into an annoying problem me I have tried many method to load the image but same issue that image always load after the page refresh.what should I do. thank you.
M Ali Qadir
29-Feb-12 12:43pm
View
I have this code Please have look and tell me how could I resolve this Issue.thank You
M Ali Qadir
29-Feb-12 5:00am
View
No,Its Yet same problem.I have changed the order but still FK conflict.
M Ali Qadir
28-Feb-12 11:23am
View
I have updated Question with Asp.Net and Vb.Net code,please have looks and tell me whats wrong where in the code.
M Ali Qadir
28-Feb-12 11:18am
View
Deleted
<pre lang="cs">
<asp:FileUpload ID="fuImage" Width="320" EnableTheming=true runat="server" Visible="true" />
<asp:Button runat="server" ID="btnUploadImage" OnClick="UploadImage" Text="Upload Facility Image" Visible="true" >
</td>
</pre>
<pre lang="cs">
Protected Sub UploadImage(ByVal sender As Object, ByVal e As EventArgs)
Try
Dim saveDir As String = ConfigurationManager.AppSettings.Item("BaseApplicationFolder")
' Get the physical file system path for the currently
' executing application.
Dim appPath As String = Request.PhysicalApplicationPath
If Not FACID = txtFacId.Text And Not String.IsNullOrEmpty(txtFacId.Text) Then
FACID = txtFacId.Text
End If
' Before attempting to save the file, verify
' that the FileUpload control contains a file.
If (fuImage.HasFile) Then
Dim savePath As String = appPath + "_images\assisted_living\fac_profile_pic\" + _
Server.HtmlEncode(fuImage.FileName)
If fuImage.FileName.Contains(FACID) Then
' Call the SaveAs method to save the uploaded file to the specified path.
' If a file with the same name already exists in the specified path, the uploaded file overwrites it.
If (File.Exists(savePath)) Then
File.Delete(savePath)
End If
fuImage.SaveAs(savePath)
Fac_picture.ImageUrl = "..\..\_images\assisted_living\fac_profile_pic\" + FACID + ".jpg"
fuImage.DataBind()
Else
lbl_message.Text = "The image name and facility name should match."
End If
End If
Catch ex As Exception
lbl_message.Text = ex.Message
End Try
End Sub
</pre>
M Ali Qadir
28-Feb-12 10:26am
View
I have updated it please guide me thank you.
M Ali Qadir
28-Feb-12 8:40am
View
Please reply to this post thank you.
M Ali Qadir
24-Feb-12 6:25am
View
I have this class
public DbSet<employee> Employees { get; set;
public DbSet<job> Jobs { get; set; }
And in Employee controller I have Declared the names and link these names also
var names = new List<employee>
{
new Employee{Name="Azhar ul Haq"},
new Employee{Name="Saqib jillani"},
new Employee{Name="Wisal Ahmad"},
new Employee{Name="Akhtar sb"},
new Employee{Name="M Ali Qadar"},
new Employee{Name="Miss Sadaf"}
};
return View(names);
So Ho should I command my pic link to go to db column TimeIn.
Thank you.
M Ali Qadir
24-Feb-12 6:11am
View
In fact I am going To make a simple application in which I want that system time should be noted when ever I click on the Linked image on my home page ,it note the system time in db column timeIn How could it will be possible Please guide.
Thank you.
M Ali Qadir
21-Feb-12 12:59pm
View
In fact I want that when I enter the value in the text box then it changes the height of graph Respected column according to the value entered. I have tried the above line of code then this code is changing the length of my graph Not the column If there is any material to read about all about this kind of work please suggest me so that I could thoroughly Understand Thank you.
M Ali Qadir
21-Feb-12 12:38pm
View
Deleted
I have tried to Add series Name That I have Put As name "Series1" but it is not including it is there any problem yet.
M Ali Qadir
21-Feb-12 12:17pm
View
Will you please Elaborate,I can Make the text box autopostback property true then how I will change the series at run time. In fact I want my data in text box should be bound to the Graph Image.
M Ali Qadir
16-Nov-11 13:47pm
View
I have learnt a lot about c#,
as professional projects i want to this task if you could guide in some steps.
M Ali Qadir
19-Aug-11 7:13am
View
thanks sir.
M Ali Qadir
19-Aug-11 7:08am
View
yes great that was my task to do.hope you will help in future.thanks
M Ali Qadir
19-Aug-11 6:59am
View
No i want that option of cross button should be there but when i click on it ,it message me that you can't close it.
Show More