16,004,727 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 .NET 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 TanzeelurRehman (Top 63 by date)
TanzeelurRehman
17-Apr-13 2:09am
View
I want to implement listview because it is more optimized and can be the replacement of any .net control, due to its templated nature. I just want to implement how nested listview (upto nth level) can be implemented using listview
TanzeelurRehman
17-Jan-13 0:02am
View
Thank you for your great time,
Stay Blessed
Regards
TanzeelurRehman
TanzeelurRehman
16-Jan-13 5:21am
View
If you can manage from start then it will be your kindness sir
TanzeelurRehman
16-Jan-13 4:59am
View
Thank you
I have all my documnets in a folder named doc, I have two type of sessions to be checked one is Session["FrontHiddenID"] and the other is Session["HiddenID"]. If one of the session exist then allow him to download otherwise redirect to login page. If you have time then please submit me some code, i will be very grateful
TanzeelurRehman
16-Jan-13 1:13am
View
Thanks
I have two type of users one is for front end and one for the admin end, In this httphandler i have to check both of them, if one of the session exist (front end user or admin user)then allow him to download the file otherwise redirect him to login page. Can we implement this scenario in form authentication, (e,g The form authentication should allow if any of the user either front or admin exist. otherwise redirect it to login page) if so pleas guide me.
TanzeelurRehman
15-Jan-13 14:25pm
View
Thank you for your response
Does forms authentication secure my files too
TanzeelurRehman
10-Jan-13 4:40am
View
Mammoth thanks for your quick reply.
TanzeelurRehman
13-Nov-12 14:07pm
View
Basically I want to implement server - client application. Is it possible?
TanzeelurRehman
12-Nov-12 13:17pm
View
Yes, all the console should be attached to one application. for normal one console is created but i need 4 consoles to be created from one application. One more is it possible to send and receive messages from all other consoles
Thanks in advance
TanzeelurRehman
12-Nov-12 12:17pm
View
Thanks for the reply. I am trying to do but i am not getting where to start
TanzeelurRehman
30-Sep-12 4:10am
View
Hmmm that is what i want. Thank you @pasztorpisti
TanzeelurRehman
29-Sep-12 2:02am
View
I am using stdio.h from the standard library.I will do the following steps
1) I will read the file in binary mode, that will provide me the byte arrary (Am i Right), And i will modify each byte (Pixel) according to my need.
TanzeelurRehman
29-Sep-12 0:38am
View
Is this possible that i will get the image file in byte stream, and convert each byte to some ascii values as you have mentioned above. If so then would you please provide me how to convert image to byte steam or byte array in c.
TanzeelurRehman
29-Sep-12 0:18am
View
Thank you for your reply
I am going to elaborate it in step by step way what i have to develop
1. A c program which will ask for an image file.
2. when the image file is provided, the program will convert it into text file something like the conversion in
http://www.ascii-art-generator.org/
3. Another module in the program should convert the converted text file in step 1 and step 2 into image file again. it doesn't matter if the picture quality loss if the text file is converted into image again.
So i need help. How can i achieve this? what should be the logic?
Regards
TanzeelurRehman
TanzeelurRehman
29-Sep-12 0:16am
View
Thank you for your reply
I am going to elaborate it in step by step way what i have to develop
1. A c program which will ask for an image file.
2. when the image file is provided, the program will convert it into text file something like the conversion in
http://www.ascii-art-generator.org/
3. Another module in the program should convert the converted text file in step 1 and step 2 into image file again.
So i need help. How can i achieve this? what should be the logic?
Regards
TanzeelurRehman
TanzeelurRehman
28-Sep-12 15:09pm
View
Thanks for your reply, i just want to convert image into ascii text file and the convert to image when needed by another module, first i want to convert image file into ascii text file, in another module i want to convert that ascii text file into image file
Regards
TanzeelurRehman
TanzeelurRehman
13-Apr-12 3:40am
View
I want to remove the Session ID of the new entered use in the website based on some criteria.
TanzeelurRehman
4-Apr-12 3:33am
View
Thanks for the response. I got the functionality but i don't know about the extension. Basically it counts the number of codes with in the function
e,g
if(true)
{
return something;
}
else
return nothing;
So in the above statements there are two number of code blocks or flows. If and else, so it will show 2. All the statements which are connected to each other are counted as 1,
Code block and flow of control is the main concern of this unknown extension
TanzeelurRehman
21-Mar-12 2:17am
View
http://www.bluenile.com/build-your-own-diamond-ring?forceStep=STYLE_STEP&track=tab#STYLE_STEP
Check the above link you will find a Build your own ring portion. That is what i want to implement
TanzeelurRehman
13-Mar-12 1:25am
View
I found an article, basically i was querying wrong. Thanks
TanzeelurRehman
13-Mar-12 1:08am
View
So can you share some of the articles links
TanzeelurRehman
5-Mar-12 2:19am
View
Even i dont open the images, I generate html markup, where the picture has to display. Nothing more
TanzeelurRehman
5-Mar-12 2:05am
View
When the picture is in use in html markup on another page, will that page to be close before deleting the picture. Because now i am running the application and it is working accurately. a day before it was throwing exception that the file is in use, so couldnot be deleted
TanzeelurRehman
2-Mar-12 5:25am
View
protected void grdAllCars_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
var dataKey = grdAllCars.DataKeys[e.RowIndex];
var companyId = Utilities.GetCompanyId();
if (dataKey != null && companyId != null)
{
decimal cId = Convert.ToDecimal(companyId);
decimal CarId = Convert.ToDecimal(dataKey.Value.ToString());
var objContext = new CarShowRoomEntities();
var showRoomData = objContext.tbl_Cars.SingleOrDefault(car => (car.CarId == CarId && car.CompanyId == cId));
var allImages = objContext.tbl_Car_Image.Where(image => image.CarId == CarId).ToList();
var largeImagePaths = new List<string>();
var thmbImagePaths = new List<string>();
foreach (var img in allImages)
{
largeImagePaths.Add(img.CarImagePath);
thmbImagePaths.Add(img.CarThmb_ImagePath);
objContext.DeleteObject(img);
}
objContext.DeleteObject(showRoomData);
objContext.SaveChanges();
try
{
foreach (var thmbImagePath in thmbImagePaths)
{
var fi = new FileInfo(Server.MapPath(thmbImagePath));
if (fi.Exists)
{
fi.Delete();
}
}
foreach (var largeImagePath in largeImagePaths)
{
var fi = new FileInfo(Server.MapPath(largeImagePath));
if (fi.Exists)
{
fi.Delete();
}
}
}
catch
{
}
if (ViewState["SearchQuery"] != null)
PopulateGridViewBasedOnQuery(ViewState["SearchQuery"].ToString());
else
PopulateGridViewBasedOnQuery();
}
}
TanzeelurRehman
2-Mar-12 4:40am
View
Thanks for your response.
I got that i have to dispose the image files where i am using. I have image gallery. Where i am using the links to the file images. Nothing more. how do i dispose the images where i have used them in links
TanzeelurRehman
2-Mar-12 2:13am
View
Sorry for now, later i can post the error. Now the server is down, we are doing some work on it.
As i know, the images are in use that's why it is giving error. pictures are uploaded on the location. Deletion is creating problems. it seems that temporary files for the images are created which are not allowing the pictures to be deleted. How to delete the temporary images first and where are they located. Just guide me in this scenario
TanzeelurRehman
7-Feb-12 3:30am
View
Yes, Simple asp.net file control is uploading files correctly to the folder, but uploadify control is not uploading, It is giving HTTP 407 and IO 2038 error
TanzeelurRehman
6-Feb-12 3:03am
View
I need all the colums from both the table group by CarId from the car table, but need only top 5. How to do this in sql. If possible then please guide me any other solution will also be appreciated
Thanks
TanzeelurRehman
17-Jan-12 3:25am
View
Thanks
TanzeelurRehman
17-Jan-12 1:23am
View
I have replied to you in the comment,Check plz
TanzeelurRehman
17-Jan-12 1:18am
View
Hope that it will work, but my situation is different, I have table not list, Where the id in the table must be present in the list item,
img id is my list having int values.
The linq code is as under
var db = new CarDataContext();
var deleteImages = from deletimg in db.tbl_Car_Images where imgId.Contains(delete.Car_Id) select deletimg;
TanzeelurRehman
14-Jan-12 4:51am
View
But I modified the setter property with && statement in the .designer.cs.That if the value is String.Empty, Then setter do nothing, otherwise it will update the property what in the text box
TanzeelurRehman
13-Jan-12 6:26am
View
Deleted
Reason for my vote of 5
Great and To the point
TanzeelurRehman
11-Jan-12 0:59am
View
Ok, Some of the problem got solved, when i get the image bytes from the server, how can i display them on webpage.
TanzeelurRehman
30-Dec-11 6:32am
View
Thanks for the Response and your time,
Stay Blessed,
TanzeelurRehman
30-Dec-11 5:41am
View
I have changed but now IE is not working
TanzeelurRehman
30-Dec-11 5:34am
View
Is this possible so that i can make it completely dynamic, that where ever in the text box i will click i can write urdu in that text box, In this case which you have mentioned, it is only for text box having the id txt1
TanzeelurRehman
27-Oct-11 3:02am
View
Thanks
TanzeelurRehman
7-Oct-11 2:39am
View
I can resize the image to my specified dimensions. But i want to get from user the appropriate image to upload. I google it a lot and read article in this regard. All the article says that it is impossible to do in javascript, due to security reason.
TanzeelurRehman
6-Oct-11 13:55pm
View
Is this possible to get the image Dimension using javascript, so that if the file to be uploaded verifies the appropriate dimension will be uploaded other wise it will show alert and cancel the uploading process.
TanzeelurRehman
26-May-11 4:31am
View
Error Source
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +24
System.Xml.XmlDocument.Load(XmlReader reader) +114
System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency& dataCacheDependency, CacheDependency& transformCacheDependency) +239
System.Web.UI.WebControls.XmlDataSource.GetXmlDocument() +156
System.Web.UI.WebControls.XmlHierarchicalDataSourceView.Select() +17
System.Web.UI.WebControls.TreeView.DataBindNode(TreeNode node) +133
System.Web.UI.WebControls.TreeView.PerformDataBinding() +307
System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +99
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
System.Web.UI.WebControls.TreeView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e) +45
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
TanzeelurRehman
26-May-11 3:47am
View
I have tried already that way, but problem is that it is giving error, when the tree node is clicked.
TanzeelurRehman
26-May-11 3:04am
View
ok then how can i set it to only selection mode so that i can fire the selectednode event
TanzeelurRehman
26-May-11 2:24am
View
Thankyou brother
I know that NavigateURl property is used to get and set the url for the node, i dont want so, I want to fire the selectednode event but due to the value in navigateurl property it is jumping to the url mentioned and skips the selectednoede event
TanzeelurRehman
25-May-11 8:18am
View
It seems that the link which you have sent is in russian language
TanzeelurRehman
25-May-11 7:55am
View
In the node url field i have kept the url of the destination page but i want to append a query string with the url, thats why i need to fire the selectednode changed event, but it is not firing, it moves directly to the url specified in the navigate url field
TanzeelurRehman
5-May-11 4:31am
View
Basically i had a problem in my website!
I have written code in the start and end functions of Global.asax
I am feeling that the active users are getting incremented and the code is not working when a user is leaving the website. so issue there, thats why i submitted the question i am a asp.net developer working for atleast 1 year. It was making me confuse. When a user visits asp.net make session for the user. I want to get total active sessions, if any functionality there please guide me
Regards
TanzeelurRehman
TanzeelurRehman
28-Apr-11 3:04am
View
Thank you for the response
There are no html pages in the project, basically we have an administration section in the project where we are using fckeditor for content writing and we save them in the database. when the data entry operator writing contents in the fck editor, he uses tables, and also he doesnot know about this type of codes. so i need such a solution that all table tds contents accept the tds build by asp.net menu should go left align and the asp.net menu should go center align
TanzeelurRehman
28-Apr-11 2:44am
View
Thanks for the response
I am not getting, which one i have to text-align to the right,
Basically i want to left align all the td data through out the project and all the menu items of the asp.net menu to align center. but i dont know it is not working basically i am not able to debug the problem coz my design approach is weak
TanzeelurRehman
28-Apr-11 2:30am
View
This is the css which i have applied to tds of my project
td
{
text-align:left;
line-height: 150%;
}
For asp.net menus i have used the following css code
MenuTextAlignmentCenter
{
text-align: center;
}
You can check the online version of the project
http://n.fbr.gov.pk/OfficeHomePage.aspx?view=Office%20Home%20Page&ActionID=53&ArticleID=548
TanzeelurRehman
6-Apr-11 6:32am
View
Thankyou
Can i get the ACL for the folders using C# and using one from the ACL can i upload files
TanzeelurRehman
2-Apr-11 2:07am
View
Thank you, Now i am near to the point of solving my confusion. I was reading an article in which it says that when the first user visit the website, application object gets created and it get destroys either the iis stops or the last user leaves (Mean if there is no user). One more question is this right that CLR runs with in the appdomain
TanzeelurRehman
1-Apr-11 3:55am
View
Thanks for your response,
TanzeelurRehman
1-Apr-11 3:55am
View
is this right that all application level setting and configuration resides with in this object.
TanzeelurRehman
1-Apr-11 3:53am
View
Thank you for your response, I found it very informative
TanzeelurRehman
28-Feb-11 2:37am
View
Brother when i use IE8 on windows server 2003, or IE7 the problem arises. On all other and latest version it is running ok
TanzeelurRehman
28-Feb-11 1:20am
View
<asp:Menu ID="Menu2" runat="server" BackColor="#FFBE04" DataSourceID="XmlDataSourceHomeTopBar"
DynamicHorizontalOffset="1" Font-Names="Verdana" Font-Size="0.9em" ForeColor="Black"
MaximumDynamicDisplayLevels="12" Orientation="Horizontal" StaticSubMenuIndent="10px"
Width="908px" CssClass="MenuTextAlignment"
DynamicPopOutImageUrl="~/Images/Display/DisplayMenu.gif" Font-Strikeout="False"
ItemWrap="True" StaticPopOutImageUrl="~/Images/Display/DisplayMenu.gif" Font-Bold="True"
>
<staticmenustyle horizontalpadding="20px">
<staticselectedstyle backcolor="#6BA0C0">
<staticmenuitemstyle cssclass="MenuTextAlignment" horizontalpadding="4px"
="" verticalpadding="2px" height="20px">
<dynamichoverstyle backcolor="Black" forecolor="White">
<dynamicmenustyle backcolor="#6BA0C0" cssclass="IE8Fix">
<dynamicselectedstyle backcolor="#507CD1">
<dynamicmenuitemstyle cssclass="MenuTextAlignment" horizontalpadding="5px"
="" verticalpadding="5px" backcolor="#FFBE04" height="20px" width="200px">
<databindings>
<asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="NavigateUrl" TargetField="Target"
TextField="MenueTitle" ToolTipField="MenueTitle" />
<statichoverstyle backcolor="Black" forecolor="White">
</asp:Menu>
TanzeelurRehman
28-Feb-11 1:11am
View
I have sent the markup below
TanzeelurRehman
28-Feb-11 1:10am
View
Deleted
<body >
<form id="form1" runat="server">
<div align="center" >
<table border="0" width="908" id="table1" cellspacing="0" cellpadding="0" bgcolor="#D7DAE6" >
<tr>
<td colspan="3" class="HomeTop">
<asp:Image ID="imgTop" runat="server"
ImageUrl="~/Images/Display/top_banner.jpg" BackColor="#003399" />
</td>
</tr>
<tr>
<td colspan="3" style="height: 10px" width="97%" align="right">
<asp:Menu ID="Menu2" runat="server" BackColor="#FFBE04" DataSourceID="XmlDataSourceHomeTopBar"
DynamicHorizontalOffset="1" Font-Names="Verdana" Font-Size="0.9em" ForeColor="Black"
MaximumDynamicDisplayLevels="12" Orientation="Horizontal" StaticSubMenuIndent="10px"
Width="908px" CssClass="MenuTextAlignment"
DynamicPopOutImageUrl="~/Images/Display/DisplayMenu.gif" Font-Strikeout="False"
ItemWrap="True" StaticPopOutImageUrl="~/Images/Display/DisplayMenu.gif" Font-Bold="True"
>
<staticmenustyle horizontalpadding="20px">
<staticselectedstyle backcolor="#6BA0C0">
<staticmenuitemstyle cssclass="MenuTextAlignment" horizontalpadding="4px"
="" verticalpadding="2px" height="20px">
<dynamichoverstyle backcolor="Black" forecolor="White">
<dynamicmenustyle backcolor="#6BA0C0" cssclass="IE8Fix">
<dynamicselectedstyle backcolor="#507CD1">
<dynamicmenuitemstyle cssclass="MenuTextAlignment" horizontalpadding="5px"
="" verticalpadding="5px" backcolor="#FFBE04" height="20px" width="200px">
<databindings>
<asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="NavigateUrl" TargetField="Target"
TextField="MenueTitle" ToolTipField="MenueTitle" />
<statichoverstyle backcolor="Black" forecolor="White">
</asp:Menu>
<asp:XmlDataSource id="XmlDataSourceHomeTopBar" runat="server" OnTransforming="XmlDataSourceHomeTopBar_Transforming" XPath="MenuItems/MenuItem" TransformFile="~/App_Data/TransformXSLT.xsl" EnableCaching="False"></asp:XmlDataSource>
<asp:XmlDataSource id="XmlDataSourceHomeLeftBar" runat="server" OnTransforming="XmlDataSourceHomeLeft_Transforming" XPath="MenuItems/MenuItem" TransformFile="~/App_Data/TransformXSLT.xsl" EnableCaching="False"></asp:XmlDataSource><asp:XmlDataSource id="XmlDataSource1" runat="server" OnTransforming="XmlDataSourceHomeLeft_Transforming" XPath="MenuItems/MenuItem" TransformFile="~/App_Data/TransformXSLT.xsl" EnableCaching="False">
</asp:XmlDataSource>
<asp:XmlDataSource id="XmlDataSource2" runat="server" OnTransforming="XmlDataSourceHomeTopBar_Transforming" XPath="MenuItems/MenuItem" TransformFile="~/App_Data/TransformXSLT.xsl" EnableCaching="False"></asp:XmlDataSource><asp:XmlDataSource id="XmlDataSource3" runat="server" OnTransforming="XmlDataSourceHomeTopBar_Transforming" XPath="MenuItems/MenuItem" TransformFile="~/App_Data/TransformXSLT.xsl" EnableCaching="False">
</asp:XmlDataSource>
</td>
</tr>
<tr>
<td valign="top"
align="left" class="HomeBackGround" style="width: 219px"
>
<div id="MainMenue" runat="server" class="CollapsiblePanelTab2" align="left">
Main Menu</div>
<div >
<asp:Menu ID="MnuLef" runat="server" BackColor="White" DataSourceID="XmlDataSourceHomeLeftBar"
Dyn
TanzeelurRehman
28-Feb-11 0:52am
View
My page consists of table and i have added divs into table cells according to my requirements.
As i see that is the problem of Top Main Menu which is Asp.net menu control.
TanzeelurRehman
28-Feb-11 0:40am
View
Basically the presentation of the website on all the browsers except the 6.0 version of IE is Ok. So my question is that why the presentation is getting disturb in IE.6.0.
I Have already mentioned the web portal address
"n.fbr.gov.pk"
Please check the above url address in IE6.0 and guide me why the presentation is getting disturb in IE 6.0
TanzeelurRehman
23-Feb-11 3:15am
View
Thankyou Sandeep Mewara, Basically there was error on DataAccess Layer, It got solved
TanzeelurRehman
23-Feb-11 2:48am
View
First of All Thanks for your reply
Should i run the whole website through debugging.
Show More