15,912,457 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 Irbaz Haider Hashmi (Top 83 by date)
Irbaz Haider Hashmi
12-Feb-13 8:43am
View
Search Google ASP.NET for beginners and go through tutorials.
Irbaz Haider Hashmi
12-Feb-13 8:43am
View
Is this a question or your project requirement.
Irbaz Haider Hashmi
12-Feb-13 6:51am
View
I am not sure why your boss does not allow this but if you want to do it using javascript
ScriptManager.RegisterClientScriptBlock(this, GetType(), "Redirect", "window.location.href = 'http://www.codeproject.com'", true);
Irbaz Haider Hashmi
12-Feb-13 6:48am
View
You can set the navigation url but to invoke these you need to invoke their onclick function.
Irbaz Haider Hashmi
12-Feb-13 6:08am
View
What have you done so far?
Irbaz Haider Hashmi
12-Feb-13 6:04am
View
yes but you have to be more descriptive for this to get help.
Do you have dropdown, checkbox, radio button. how selection is performed.
Irbaz Haider Hashmi
12-Feb-13 4:33am
View
just add id and runat to the anchor tag and you can refer that on server side
<a href="YourLink" id="ahref" runat="server">My link
Irbaz Haider Hashmi
12-Feb-13 4:23am
View
you want to reference anchor tag in the click event of linkbutton on server side?
Irbaz Haider Hashmi
12-Feb-13 4:12am
View
what error?
Irbaz Haider Hashmi
12-Feb-13 4:11am
View
you want anchor tag instead of link button?
Irbaz Haider Hashmi
12-Feb-13 4:10am
View
Two forms on different machines? if two forms are on same machine why you need tcp connection for that?
Irbaz Haider Hashmi
12-Feb-13 4:00am
View
What have you done so far. Provide your work.
Also provide the table structure.
Irbaz Haider Hashmi
12-Feb-13 3:59am
View
What do you mean by completed?
Irbaz Haider Hashmi
12-Feb-13 3:56am
View
You can't.
Irbaz Haider Hashmi
11-Feb-13 10:50am
View
try entering the complete URL of the webservice. what error are you getting? 403,404?
Irbaz Haider Hashmi
11-Feb-13 10:14am
View
When a control is render on page the id of the html elements get changed. More information will be required in order to understand this. What error you are getting? or your javascript function is not executed at all.
Try by adding debugger; in javascript.
Try moving your code on the page rather than writing it on control.
Irbaz Haider Hashmi
11-Feb-13 4:19am
View
The control must be on the page to get the ID. Above code will return empty string if it doesn't find that control on page and client id if it finds that. I am thinking you scenario is much complex to this. Tell me more details about it or try to adjust it according to your requirements.
Irbaz Haider Hashmi
11-Feb-13 4:08am
View
Are you referring to Link Server?
insert into Table1
Select * from [LINKESERVERNAME].[DATABASENAME].[dbo].[TABLENAME]
Irbaz Haider Hashmi
11-Feb-13 3:58am
View
Try adding dropdown on change function in Repeater OnItemDataBound Event.
Pass Exact values to the Javascript function of the controls you want to show and hide with that particular dropdown.
Irbaz Haider Hashmi
7-Feb-13 10:38am
View
Go to service properties and add admin account information in Log On.
If this does not work kindly paste the Exception here.
Irbaz Haider Hashmi
7-Feb-13 10:21am
View
I also was not getting emails than i verify my email address with code project and not i am getting emails.
Check your settings also.
Irbaz Haider Hashmi
7-Feb-13 2:43am
View
Done.
Irbaz Haider Hashmi
7-Feb-13 2:40am
View
Ok, Is your button is inside update panel and after it posts back does it changes anything that is outside of update panel? Try doing it by removing update panel.
Irbaz Haider Hashmi
6-Feb-13 18:04pm
View
You have a small range that's why it seems that the numbers might not be random. Try it with 1000 and you will see that it has random values.
Irbaz Haider Hashmi
6-Feb-13 17:30pm
View
Still you are having issue?
Have you attached the debugger?
Does it goes to page load when you hit the button? Does the screen splashes that shows post back? if screen splashes then it must go to Page Load. Attach your debugger there.
It looks like we all have to diagnose the problem. You are working in Visual Studio? Open the design double click the button and then a function will be added. Add your code there.
One more thing is there any update panel on the page?
Irbaz Haider Hashmi
6-Feb-13 12:08pm
View
Updated that line of in the solution . :)
Irbaz Haider Hashmi
6-Feb-13 11:50am
View
Actually i told him the solution.
Above solution suggests that its no a good practice.
But his internal guide is forcing him to do so. So for an academic learning purpose i think its okay for him to know how it can be implemented.
Irbaz Haider Hashmi
6-Feb-13 11:27am
View
Yes you are right but i think he wants to execute the code particularly specified for the button.
Irbaz Haider Hashmi
6-Feb-13 11:11am
View
Also one more thing remove this usesubmitBehavior="false"
Irbaz Haider Hashmi
6-Feb-13 11:10am
View
If you are using Visible="false" then the button is not on the page after render. have you set the button visibility true in the code side?
Irbaz Haider Hashmi
6-Feb-13 11:09am
View
It will post back but it will do nothing.
Irbaz Haider Hashmi
6-Feb-13 11:07am
View
Are you using your Connection String in the javascript?
Irbaz Haider Hashmi
6-Feb-13 8:42am
View
I just figured out that i posted in comment. I am posting as solution so others can see it.
Irbaz Haider Hashmi
6-Feb-13 8:40am
View
you are welcome
Irbaz Haider Hashmi
6-Feb-13 7:30am
View
keyCode - C Uppercase
Irbaz Haider Hashmi
6-Feb-13 7:26am
View
margin and padding is defined twice?
Irbaz Haider Hashmi
6-Feb-13 7:22am
View
What you are doing is checking the keyword rank on search engine. And google does not like this at all.
You can scrap google but after few requests it will give you captcha and requires human interaction.
Second way was using google search api but i think google has depreciated it.
You can see google products for lates API
Irbaz Haider Hashmi
6-Feb-13 7:17am
View
Can you send the details of the query and indexes on the table?
Indexes can really help you here.
Irbaz Haider Hashmi
4-Feb-13 9:11am
View
Can you paste the query generated by this here ?
Irbaz Haider Hashmi
4-Feb-13 9:07am
View
Any error you got?
Irbaz Haider Hashmi
4-Feb-13 9:07am
View
string sqlIns = "INSERT INTO [Programs] (CodProgram, directory, logo ,description ,class ,type) VALUES ("+idprogram+",'"+"'shortcuts\\" +txtname.Text +".lnk','"+"'icons\\" + txtname.Text + ".jpg','"+txtdescription.Text+"','"+class+"','"+type+"')";
myConnection.Open();
try
{
SqlCommand cmdIns = new SqlCommand(sqlIns, myConnection);
cmdIns.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
myConnection.Close();
Irbaz Haider Hashmi
4-Feb-13 9:01am
View
You can't.
Irbaz Haider Hashmi
4-Feb-13 8:55am
View
remove these
cmdIns.Parameters.AddWithValue("@codprogram",idprogram);
cmdIns.Parameters.AddWithValue("@directory", "'shortcuts\\" +txtname.Text +".lnk'");
cmdIns.Parameters.AddWithValue("@logo", "'icons\\" + txtname.Text + ".jpg'");
cmdIns.Parameters.AddWithValue("@description", txtdescription.Text);
cmdIns.Parameters.AddWithValue("@class", class);
cmdIns.Parameters.AddWithValue("@type", type);
and directly add parameters in the
string sqlIns = "INSERT INTO [Programs] (CodProgram, directory, logo ,description ,class ,type) VALUES (@codprogram,@directory,@logo,@description,@class,@type)";
run and if it is not inserted again. Try run the query generated by this directly on SQL.
Irbaz Haider Hashmi
4-Feb-13 8:45am
View
I am not sure right now as it looks ok to me but few things you can test here.
[Programs] replace with dbo.[Programs]
Run the query with the data and see if there is any length issue with the parameters you are passing and the parameter length in the datatable
Irbaz Haider Hashmi
4-Feb-13 7:57am
View
go to services.msc and check the mysql services and give them the admin rights and try to restart that. If it pop out any error update your question with that error.
Irbaz Haider Hashmi
4-Feb-13 7:05am
View
Can you update the query here too?
Irbaz Haider Hashmi
4-Feb-13 6:57am
View
Use Max(renewaldate) and add group by condition. this will give you the latest renewaldate.
Irbaz Haider Hashmi
4-Feb-13 5:24am
View
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" valuetocheck="4">
</form>
Irbaz Haider Hashmi
4-Feb-13 4:57am
View
What are your needs that aren't satisfied?
Irbaz Haider Hashmi
4-Feb-13 4:49am
View
Provide the query please
Irbaz Haider Hashmi
4-Feb-13 4:43am
View
You must try it first by yourself and if you get some issues then post here.
Irbaz Haider Hashmi
4-Feb-13 2:54am
View
Remove this
EC.eid in (select LIDList FROM #2)
and add in inner join
inner join #2 t2 on t2.LIDList = EC.eid
Irbaz Haider Hashmi
4-Feb-13 2:53am
View
CREATE NONCLUSTERED INDEX IX_doc_educator_master_01 on dbo.educator_master
(/*ADD COMMA SEPERATED COLS WHICH ARE IN WHERE OR CONDITION CLAUSE*/)
INCLUDE(/*ADD COMMA SEPERATED COLS WHICH ARE IN SELECT CLAUSE*/)
ON [PRIMARY]
THIS IS HOW TO CREATE INDEXES
Irbaz Haider Hashmi
3-Feb-13 18:33pm
View
You need to make your question more clear.
Irbaz Haider Hashmi
3-Feb-13 18:29pm
View
Gridview is rendered as table. If you have some default css applied to table then you have to check that out as well.
Irbaz Haider Hashmi
3-Feb-13 18:19pm
View
try using
BorderWidth="0px";
Irbaz Haider Hashmi
3-Feb-13 18:11pm
View
Please make it more clear. I cannot understand what are you saying right now.
Irbaz Haider Hashmi
3-Feb-13 17:36pm
View
Thats what i want you to search out. :)
RowDataBound is binding the grid with data.
Irbaz Haider Hashmi
3-Feb-13 17:13pm
View
comboBox1.Text = ((WebBrowser)tabControl1.SelectedTab.Controls[tabControl1.SelectedIndex]).Url.AbsoluteUri;
Irbaz Haider Hashmi
3-Feb-13 17:04pm
View
Try it changing the color after binding the grid.
Irbaz Haider Hashmi
3-Feb-13 16:30pm
View
I think you put the same question here
http://www.codeproject.com/Questions/539282/howplustoplusextractplussubstringsplusfromplusaplu
check this out i have answered you there.
Irbaz Haider Hashmi
3-Feb-13 16:26pm
View
You can use Regex for this
Here is a good regex tool to test and create your regex
http://gskinner.com/RegExr/
Irbaz Haider Hashmi
3-Feb-13 15:38pm
View
For tab control you can use Selected event. When you select any tab then you can get the webbrowser url and update that in combox box. This is what i think you want to achieve?
http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.selected.aspx
On comboxbox selection changed you want to navigate the selected webbrowser to the selected url?
Irbaz Haider Hashmi
3-Feb-13 15:34pm
View
http://msdn.microsoft.com/en-us/library/bb399001(v=vs.100).aspx
Irbaz Haider Hashmi
2-Feb-13 12:50pm
View
Just check if request is null or not. Check i have updated the code.
Irbaz Haider Hashmi
2-Feb-13 12:13pm
View
You want to get the Tab text?
if so you can get like this
tabControl1.SelectedTab.Text
Irbaz Haider Hashmi
2-Feb-13 8:58am
View
comboBox1.Text = ((WebBrowser)tabControl1.SelectedTab.Controls[0]).Url.AbsoluteUri;
Irbaz Haider Hashmi
2-Feb-13 8:57am
View
If you want to add this after document complete event of webbrowser you can add that event to webbrowser.
You can search for other events of webbrowser as well. and can decide what suits you best.
Irbaz Haider Hashmi
2-Feb-13 8:26am
View
Can you describe what error you are getting from it?
Irbaz Haider Hashmi
2-Feb-13 6:48am
View
can you send the HTML tag of ImageButton?
Irbaz Haider Hashmi
2-Feb-13 6:33am
View
Yes you can
Irbaz Haider Hashmi
2-Feb-13 6:33am
View
http://support.microsoft.com/kb/308569
Irbaz Haider Hashmi
2-Feb-13 6:21am
View
Can you send the code of it?
Irbaz Haider Hashmi
2-Feb-13 3:45am
View
Pass that as a variable too.
Irbaz Haider Hashmi
1-Feb-13 15:28pm
View
Go to Services.msc -> open properties of the service and check the service to interact with desktop.
Irbaz Haider Hashmi
1-Feb-13 13:01pm
View
Add the javascript on page and bind the function from code dynamically
ImageButton1.Attributes.Add("onclick", "youfunction('"+ImageButton1.ClientID+"',"+strwidth+","+strheight+");");
this is how you can pass the parameters to the function.
Irbaz Haider Hashmi
1-Feb-13 12:08pm
View
.Home_menuHomeLink:visited {
background: url(images/Home.png) no-repeat left top;
width: 62px;
height: 20px;
display: block;
text-indent: -10000px;
}
Did you tried putting this in the css style sheet? What i am seeing here the issue is with the visited links only, otherwise they are looking fine. try clear the cache as well and then check that on explorer. With IE it gets messy as there are many things in styling that are not compatible with chrome,firefox and IE.
Irbaz Haider Hashmi
1-Feb-13 11:27am
View
Run the installation file as an Administrator.
Irbaz Haider Hashmi
1-Feb-13 10:47am
View
Before adding the record you can use foreach loop to iterate through all the items of the gridview and if that exists you can show the error.
Other solution is that before inserting the record in database check the database if the record already exits in the database.
Irbaz Haider Hashmi
1-Feb-13 10:35am
View
Your question is not that much clear right now.
You mean in debugging the first image you want to click the button again?
I think you need to look at Threading and Delegates for this.
Irbaz Haider Hashmi
1-Feb-13 10:31am
View
You might be having issue in the visited links in IE.
in your CSS add this style as well.
.Home_menuProductsLink:visited
{
}
Irbaz Haider Hashmi
1-Feb-13 5:19am
View
You can set the variable value from your page code
ScripManager.RegisterClientScriptBlock
Irbaz Haider Hashmi
1-Feb-13 5:09am
View
Here are few things that you can avoid.
- Creating index on hash table might not be necessary here
- using Case in Sum function might not be necessary here
- Move IN checking from where clause to inner join
- Create Indexes on your tables. This might be very tricky. Because if you create extra indexes it can effect your other insertion and updation transactions.
Creating indexes on your tables will really help you here.
CREATE NONCLUSTERED INDEX [INDEXNAME] ON [TABLENAME]
(Columns that are used in where conditions)
INCLUDE(columns that are used in select clause)
ON [PRIMARY]
Do it for each table and see the effect. Check your execution plan before and after indexing.
Show More