16,004,686 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 Zubair Alie (Top 73 by date)
Zubair Alie
24-Aug-15 6:11am
View
You can attach an event with each combo box handled in a common callback.
i.e.
cmbx.SelectedIndexChanged += cmbx_SelectedIndexChanged;
and
void cmbx_SelectedIndexChanged(object sender, EventArgs e)
{
var cmbxId = ((ComboBox)sender).Name;
}
If it's not helpful then please elaborate your requirement more.
Zubair Alie
22-Aug-15 6:15am
View
I will write an article on it later on. for now i have created a sample for you. go and download from following URL.
https://onedrive.live.com/redir?resid=370C796C5D65D27D!1152&authkey=!AITvcciqL5Tvgis&ithint=file%2crar
Zubair Alie
22-Aug-15 5:11am
View
let me write a sample for you. will share in a while
Zubair Alie
22-Aug-15 5:10am
View
have you added the parameter in your method as well?
i.e.
[WebMethod]
public static void DeleteItem(string value)
{
//method body.
}
Zubair Alie
22-Aug-15 3:54am
View
Is there any user specific configuration? i.e. the network or any directory path?
Exception tells that you are giving invalid path on which there is no service or page is hosted to listen the request.
Zubair Alie
22-Aug-15 3:51am
View
In your case it will be something like this...
var lableValue = document.getElementById('lblRoomId').value;
and then
PageMethods.DeleteItem(labelValue);
Zubair Alie
22-Aug-15 3:48am
View
You can send control value to webmethod from javascript by following..
var controlId = "MyTextBox";
var Controlvalue = document.getElementById(controlId).value;
and then pass that value to your pageMethod....
PageMethods.UIControl(controlId, controlValue);
I hope it will help.
Zubair Alie
9-Apr-15 5:56am
View
You may read SignalR, Hopefully it will help you communicate between your site and client (installed on mobile)
Zubair Alie
11-Jun-14 11:09am
View
xsl:value-of select="count(NewDataSet/SCH_PATIENT_PLANS/Rows)"
it returns number of rows (say 20)
I need to get rows where Column1 value is equal to '2'
Zubair Alie
12-Feb-14 2:15am
View
If Service provider; provides a static list of number codes with their city,area registeration then you may use that otherwise you will have to search for any third party service which provides such facility.
as for this, you need to communicate with servers of Mobie Service providers (which is not authorized to every indivisual).
Zubair Alie
12-Feb-14 2:11am
View
What file you have saved in database and how you saved it? I am afraid, you need to make your question correct with proper discription of what you are doing and what exactly you require to be done.
Zubair Alie
12-Feb-14 1:37am
View
Post your code snippet of transfer data (record by record) to .cs page. I will try to fill the gap in it.
Zubair Alie
11-Feb-14 8:58am
View
Add control inside a div and make its position absolute with proper Top left right and bottom attributes.
Zubair Alie
11-Feb-14 8:14am
View
am currently using iframe but want to not to use extra pages for single task. have found a way to show pdf on page using <object> tag but now how to assing byte[] to its attribute [data] is a problem :)
Zubair Alie
10-Jan-14 6:01am
View
what you want to show in asp.net (from your NT service)?
Zubair Alie
10-Jan-14 5:38am
View
Hi, I do know what web garden is. what i mean to ask is What make us to use it and how to determine what number of worker processes (Maximum Worker Processes) should we create for our website?
Zubair Alie
22-Sep-13 9:07am
View
DataField is the name of column inside your datasource. If your datasource is either NULL or does not contail column UserID atleast then you are expected must to receeive the error you reported here.
Note: Put your cs page under debug mode and look onto your datasource in Quick Watch and fix the issue you are running with.
Good Luck :)
Zubair Alie
19-Sep-13 7:04am
View
Assign your columns with id and runat='server'. and just hide them from code behind
i.e
<table>
<tr >
<td id="testTd" runat="server">
....
and in code behid...
testTd.Visible = checkbox.Checked;
----------------------------------------------
and in js
if(chk.checked)
document.getElementById('testTd').style.visibility = 'hidden';
else
document.getElementById('testTr').style.visibility = 'visible';
Zubair Alie
19-Sep-13 6:51am
View
Put your grid inside UPDATE PANEL and auto-post back on checkbox click.
After Binding the grid
Use
Grid.Column[i].Visible = !Grid.Column[i].visible;
Zubair Alie
19-Sep-13 4:14am
View
Deleted
Instead of Label; Use LiteralControl. it might help (not sure)
Zubair Alie
17-Sep-13 10:08am
View
(Y)
Zubair Alie
17-Sep-13 10:08am
View
Deleted
(Y)
Zubair Alie
17-Sep-13 10:04am
View
Check Fredrik's solution. + NAME_OF_YOUR_SERVER_HERE = the IP or the URI. i.e. 192.158.0.123
Zubair Alie
17-Sep-13 9:56am
View
running your query in MS-SQL returns something like this...
Incorrect syntax near '('.
Zubair Alie
17-Sep-13 9:50am
View
I noticed that Mr.Ahmad is not concerned about Invoice table but want to delete the records from InvoiceDetail table. It made me to think a way that he might have deleted the parent records by some way and now wants to delete those records from child table whose parents are lost from Invoice Table.
Zubair Alie
10-Sep-13 2:31am
View
View the Solution # 3 for using FileUpload in UpdatePanel.
Zubair Alie
9-Sep-13 7:09am
View
Get updated result set from database and rebind your grid to display updated records.
Zubair Alie
9-Sep-13 7:01am
View
you might have some issue running with your definitions...
See
<!DOCUMENTTYPE html.......
Copy and paste your page headers inside your question area. it seems you are misplacing something there.
Zubair Alie
23-May-13 8:27am
View
Deleted
@Mohan...i must rank you 1 if you write your recent comment in your question or solution area. :)
Zubair Alie
4-Dec-12 8:54am
View
it seems that your connection string is not correct or may be the port.
Zubair Alie
28-Nov-12 8:47am
View
i have updated a solution. Try this method body and see what happens
Zubair Alie
28-Nov-12 8:36am
View
do one thing, wrap your code body inside try catch this way
botton1_click()
{
try
{
//copy and past your method body here
}
catch(Exception ex)
{
MessageBox.Show(ex.Tostring());
}
}
then see what error pops up
Zubair Alie
30-Oct-12 9:31am
View
Am sorry that i left to enter the Ethernet. it is 1Gbit and both machines (client / server) are connected to same Giga LAN switch in datacenter.
anyways, i have got to know by your comments that its not possible to have such speed with this equipment.
Thanks
Zubair Alie
30-Oct-12 1:48am
View
Sorry i was on holy event leaves. I am currently equipped with 1U Dell PowerEdge server with Dual Xeon HT 3.0 & 4G Ram where Harddisk is of 15k rpm
Currently what i did was, sent a sequence of byte array packets to a webservice and webserivice is appending the packets in a file created at server.
I think i must switch to TCP connection.
am i right?
for now the maximum speed i have achieved is 620KBps
Zubair Alie
25-Oct-12 13:38pm
View
hmm... ok let me try to google or summarize the requirements then will get back to update the post (if required)
Thanks for your kind support Mr.Dave.
Zubair Alie
25-Oct-12 13:06pm
View
sorry for short description. let me clear you the scenario.
It is required to upload the file(s) to the server of size greater than 4GB. we require to upload this file to the server with around 100Mbps speed. additionally we require to keep track of bytes transmitted/remaining to offer pause and resume feature.
Zubair Alie
25-Oct-12 12:39pm
View
currently i implement it using web services but its not too much speedy.
Zubair Alie
25-Oct-12 12:38pm
View
I am to design this for a data-center. I mean the system or network capabilities are not an issue. but i am looking for a best practice to stream the data to and from with upto 100Mbps.
Zubair Alie
10-Oct-12 8:53am
View
what is the purpose of DataGridView here?
you may have dataTable returned. you simply place a label & assign it a row[0]["CustomerName"] and datasource this table to dropdownlist where displayMember of dropdownlist will be ["MovieName"].
is it clear..?
Zubair Alie
10-Oct-12 8:47am
View
i think in MS Access you need to generate another copy & Truncate all the tables.
what my practice is, i remain with my empty tabled MS Access file inside code directory & place its replica in User AppData folder. during testing environment use the .mdb file placed inside User's AppData folder. This way, while deployment you remain with clean database and you do not need to delete all the rows you inserted while development or testing.
Zubair Alie
9-Oct-12 8:36am
View
if you have a table to sort. why don't you go for DataGridView where sorting & paging are facilitated?
read http://asp-net-example.blogspot.com/2008/12/aspnet-gridview-sorting-example-how-to.html
Zubair Alie
2-Aug-12 2:46am
View
assign them an alias
Zubair Alie
27-Feb-12 15:28pm
View
problem statement is to detect the external drives right they are plugged into machine. (USB ports and SD slot to monitor)
Zubair Alie
21-Feb-12 5:28am
View
i resolved the issue by self but you provided much better solution than i produced
am adding my own solution in solution list. you may have a look on that too.
Zubair Alie
29-Dec-11 5:54am
View
you need to write windows service to read the records from database after specific interval of time.
add another field in table with title "sent" of type boolean. it will help you during query un-sent emails...
Zubair Alie
28-Dec-11 1:32am
View
to DropDown you can assign the front end value (TEXT) and back end id (VALUE)
see
ddl.DataTextField
dd.DataValueField
Zubair Alie
28-Dec-11 1:25am
View
if running fine in editor then for sure you have some problem at code end.
try the simple query...
Select * from CustomerGroupContacts
see what results it provides to you. catch the exception as well to see what the actual exception is.
Zubair Alie
28-Dec-11 0:51am
View
try writing your query in simpler way.. try this
SELECT
a.cusg_id,
(a.cusg_id+'___'+b.cusid_name) as customername
FROM
CustomerGroupContacts a INNER JOIN
CustomerIDs b ON a.cusg_id = b.cusg_id
Zubair Alie
28-Dec-11 0:48am
View
query should not provide any exception. try this query in query editor of management studio.
focus on the connection string or (DB credentials/Domain Name)
may you have any problem in connection.
Zubair Alie
8-Dec-11 2:49am
View
preffer to have Lossless compression achieved. i tried to compress it in LZW but have found no size reduction.
currently looking into Encoder class of .net.
"http://msdn.microsoft.com/en-us/library/system.drawing.imaging.encoder.compression.aspx"
the objective is only to reduce the size.if you have some better idea then please share.
Zubair Alie
24-Nov-11 23:24pm
View
i have resolved the issue.
actually i meant to write a page on which i had to make only few lines to execute.
HTML side only contain <@Page> directive and .vb end had code inside it.
"This page i wrote to post back the control onto it through javascript and execute few lines of .vb code."
for me the question was...to how to post the data onto it. now the data has been posted to the page through HTTPContext object. :)
Thanks for your solution.
solution is abslutely wirte,but it was not the scenario to implement utility class.
Zubair Alie
24-Nov-11 8:17am
View
timer isn't a good practice..you use FileWatcher.. as the file get modified... you read the file
Zubair Alie
23-Nov-11 0:19am
View
make sure that your TestForm Constructor is not having any code which is making nested calls...because
Test openTest = new Test()
this line can't provide stackoverflow exception unless your TestForm's constructor is not having any problem inside.
and post the portion of Form1 you are writing for showing and hiding. secondly the constructor of TestForm. i will see where the issue is.
Zubair Alie
22-Nov-11 8:20am
View
it looks like you are programming in c#. see inside your program.cs file inside your project.
go inside Main method to see that on Run, which form you are pointing.
Zubair Alie
22-Nov-11 8:09am
View
which tree you wanna show, is it a wooden tree? i suggest MS Paint to draw it :) (just kidding)
provide description of your problem statement.
Zubair Alie
22-Nov-11 8:04am
View
with binary tree, use a count veritable for counting the length of tree. so when the tree is stop getting more children, you would have a length check that up to what extent algorithm is working fine. and then rectify your algorithm :)
Zubair Alie
21-Nov-11 4:26am
View
the provided problem is a way to persform some acotions on another webpage. this way we can create a webpage which is not having its exsitance for getting load. this page is just for background working.
but the thing is... how i can i send a call to it and the paramenters to pass.
Zubair Alie
21-Nov-11 4:24am
View
Thanks SAKryukov, i can understand this. am not to achieve the HTML dynamic rendering or scenario based rendering.
My Scenario is
I have a web page, i wish to post a call to another page for performing some action but i do not wish to lose the currently loaded page.
i mean to call Page2.aspx from Page1.aspx in such a way that Loaded page (page1.aspx) will not postback.
and i do not wish to use JSON as well.
hope you understand the scenario.
Zubair Alie
17-Nov-11 0:16am
View
the way you are creating, you are creating local veriable, of whom reference you lost right after executing these lines of code.
you need to declare the "Test openTest;" at top of the cs file (global veriable).
and for the second time, while showing back the hidden form. call show() with the same object.
"openTest.Show();"
for more clear example. view the solution i provided above.
Zubair Alie
16-Nov-11 0:54am
View
dr.GetValue[0] => Java Property
dr[0].toString() => .Net Property (C#)
Zubair Alie
16-Nov-11 0:54am
View
dr.GetValue[0] => Java Property
dr[0].toString() => .Net Property (C#)
Zubair Alie
16-Nov-11 0:49am
View
code is fine.
may you have any quantity stored at index 0 if datarow. you can check it in (AddWatch) that what value you are receiving in dr[0].toString();
Zubair Alie
16-Nov-11 0:40am
View
Hi SAKryukov,
You are pointing out right things but the way you are pointing out it may disappoint or pressurize member. because may he is at a student level now.
treat him in the way he asked a question
hope you understand
Thanks :)
Zubair Alie
15-Nov-11 2:09am
View
Thanks SAKryukov,
1- Link you provided is helpful for me regarding engines used by browsers.
2- as far as access controls over system concerns, it depends upon the nature of application. we are not interacting with general public. we are medical software provider. and for us it is mandatory to get the patients reports and upload them to server for record.
if you have any solution for acquiring scanner control in web-browser then please share your knowledge. (currently we may go for IE and firefox only)
Zubair Alie
15-Nov-11 1:35am
View
Or if anyone knows about SDK for only web scanning functionality, then please share it.
Zubair Alie
3-Nov-11 1:18am
View
Sorry Iosmac, i had to write anchor but used dock instead. anyways i have achieved the solution.
thanks for your participation.
Zubair Alie
3-Nov-11 1:17am
View
Issue resolved. i would like to add a bit to your solution. if i directly put the label on form, set dock to i.e. top and AutoSize to false.. it was not effective.
but when i put the panel on form, doc the panel to i.e TOP and then add label inside the panel and set following properties of label. then i achieved what we are discussing.
thanks for your answer. :)
Zubair Alie
2-Nov-11 15:46pm
View
Dock property set to (left,right,top) and TextAlign property is set to center but the textbox is growing from left to right. means the left side position of label remains static and do not grow or shrink
Zubair Alie
24-Oct-11 1:12am
View
Thanks Mehdi for web URL. even using dynamic soft we need to install a plugin at user end. can we have any solution to not to install any thing at client end and we achieve this functionality as well?
Zubair Alie
17-Oct-11 9:53am
View
as it's Type convertion or initialization error so please look
during installation wizard, are you performing any culture specific task? if not then secondly look inside config file for duplicate keys you may added (if any)
Zubair Alie
17-Oct-11 9:38am
View
set width in percentage
Zubair Alie
12-Oct-11 9:48am
View
inaccessible due to protection level occurs when your method is set to private and you can't have access to it. make it protected instead of private.
Zubair Alie
12-Oct-11 9:47am
View
Deleted
inaccessible due to protection level occurs when your method is set to private and you can't have access to it. make it protected instead of private.
Show More