15,893,594 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 Anurag Sinha V (Top 200 by date)
Anurag Sinha V
10-Jul-14 5:54am
View
select * from Table where assetType='SMPS'and assetType='MotherBoard'
Anurag Sinha V
10-Jul-14 5:20am
View
plz edit your question in a meaningful way..the current question doesnot give any information as to where are you stuck.
Anurag Sinha V
13-Jun-14 12:11pm
View
Thats a typo mate. Ignore it. The second column name is LastAccessTimeForServer2
Anurag Sinha V
13-Jun-14 8:18am
View
Hi..for 2 columns its gonna gv the correct result..I have around 40 columns for which I need to find a generalized approach..just for simplicity I had given the question with 3 columns.
And there's a typo in the column names..both are different...can u help to find the generalized solution...thxx
Anurag Sinha V
14-Mar-14 1:17am
View
Session.Abandon() should do what you're looking for...
Anurag Sinha V
14-Mar-14 0:46am
View
You can try something as below:
if(!string.IsNullOrEmpty(txtuserid.text)&& !string.IsNullOrEmpty(txtpassword.Text)
{
if(txtuserid.Text=="someUserID" && txtpassword.Text=="somePassword")//Validate this from the DB or config file
{
do some stuffs
}
else
{
Session["Custom"]=txtuserid.Text;
Do your stuffs and when your code is done, clear the session as Session["Custom"]="";
}
}
Anurag Sinha V
14-Mar-14 0:39am
View
even in the above case you need to provide some custom id to the user for the current session, i.e if the user closes his/her browser you need to clear the session...post some code as to what you have tried..then may be we will get a clear picture...
Anurag Sinha V
14-Mar-14 0:15am
View
email sent...
Anurag Sinha V
26-Feb-14 2:55am
View
what error?
and at what line of code?
edit the question and post your code
Anurag Sinha V
26-Feb-14 1:14am
View
Question is not clear. Please elaborate.
Anurag Sinha V
13-Jan-14 0:06am
View
How come all the id's are same?
Anurag Sinha V
12-Jan-14 23:41pm
View
+5 for the links Gitanjali..
Anurag Sinha V
6-Jan-14 3:39am
View
Improve the question buddy...Certainly not clear..Post as to where you're stuck with the code and stuffs.
Anurag Sinha V
6-Jan-14 3:35am
View
Please be more specific and improve your question.
Anurag Sinha V
6-Jan-14 3:34am
View
Are you sure you have created an HTML page in a Windows project??
Anurag Sinha V
30-Dec-13 1:54am
View
IMO, your code var email = document.signup.email.value and variables equivalent to it are not picking up correct values..why don't u use var email=document.getElementById('<%=email.ClientID%>'); and try....
Anurag Sinha V
30-Dec-13 1:44am
View
How are you calling the Validate function???
Anurag Sinha V
22-Dec-13 23:38pm
View
People are not here to do your homework buddy...
Try something and then ask as to where you are stuck...
Anurag Sinha V
27-Oct-13 3:23am
View
post some code..it will be easy to understand your query
Anurag Sinha V
26-Oct-13 16:20pm
View
Try to use IsPostBack property
Anurag Sinha V
26-Oct-13 7:03am
View
http://stackoverflow.com/questions/6750183/special-characters-in-url-query-string
have a look
Anurag Sinha V
26-Oct-13 7:00am
View
Then mention Javscript in your question too..How will people assume here what are u thinking or using?
Anurag Sinha V
26-Oct-13 6:38am
View
Please be more specefic...give some code on what are you trying to do..
Anurag Sinha V
26-Oct-13 6:36am
View
Are u calling this Js function from a .aspx page or a usercontrol .ascx.cs???
Anurag Sinha V
9-Oct-13 12:01pm
View
sure..will do so...thank you
Anurag Sinha V
9-Oct-13 7:36am
View
you result variable will store the first array of the arrayList right?
If yes then shouldn't the condition be changed to i < arrayList[0].Length
Anurag Sinha V
9-Oct-13 7:30am
View
Hi Phil.O, Can you explain the logic behind your solution? I have some confusions.
Anurag Sinha V
9-Oct-13 7:29am
View
Can you post the code as to what do you have?
Anurag Sinha V
9-Oct-13 7:25am
View
Are you sure you have an arraylist??Or is it an array?
Anurag Sinha V
9-Oct-13 7:17am
View
The return from your JavaScript has to drive your asp.net validation???
Anurag Sinha V
9-Oct-13 7:15am
View
The question which you are asking is pretty difficult..to code your own OCR is actually tough..you'll have to use some 3rd party tools like tesseract..Please see the second solution posted by Richard.
Anurag Sinha V
8-Oct-13 4:28am
View
How is the above script called??
Anurag Sinha V
8-Oct-13 2:08am
View
Nothing is difficult to learn if one tries.
Btw what kind of website do you want to code?
Anurag Sinha V
8-Oct-13 1:45am
View
try target=_self in your aspx page
Anurag Sinha V
6-Oct-13 7:37am
View
i have comma separated values as categoryid and classid's..hence the if condition will fail when multiple comma separated values arrive from the UI becuse it has equal to sign..
Anurag Sinha V
3-Oct-13 7:05am
View
Its Convert.ToInt32..
Anurag Sinha V
3-Oct-13 4:27am
View
http://www.authorcode.com/how-to-use-regular-expression-for-validating-phone-numbers-in-net/
try the above link
Anurag Sinha V
3-Oct-13 2:33am
View
If yes, then why don't you go for something like "columnname IN ('+@keyword+')'"??
Anurag Sinha V
3-Oct-13 2:32am
View
Are you trying to compare one of the columns of the table to the @keyword variable?
Anurag Sinha V
30-Sep-13 7:55am
View
np
Anurag Sinha V
29-Sep-13 13:27pm
View
Sent..check your inbox
Anurag Sinha V
28-Sep-13 10:46am
View
done
Anurag Sinha V
26-Sep-13 5:49am
View
where and how is display(); defined?
Anurag Sinha V
26-Sep-13 5:21am
View
Where and how is the OnChange event defined??
Please elaborate your question.
-Anurag
Anurag Sinha V
26-Sep-13 4:23am
View
Please post the whole code...No inference can be derived by the above lines.
-Anurag
Anurag Sinha V
23-Sep-13 11:01am
View
Post this above error to the forum in that link..They will be able to answer much properly
Anurag Sinha V
23-Sep-13 10:58am
View
Guess Radgrid is a third party component by Telerik..It would be better if you post this query on Telerik's forums...They will be able to understand much and help...
Anurag Sinha V
23-Sep-13 7:09am
View
try running this code in Compatibility View in IE.
Anurag Sinha V
23-Sep-13 7:06am
View
So what exactly do you want this code to do??
Anurag Sinha V
23-Sep-13 6:46am
View
What is the problem??
Anurag Sinha V
23-Sep-13 5:54am
View
what are you testing? where are you testing?
please be clear
Anurag Sinha V
15-Sep-13 11:36am
View
sent..check your inbox..
-anurag
Anurag Sinha V
12-Sep-13 3:44am
View
Yep..good point
Anurag Sinha V
11-Sep-13 4:25am
View
Then my friend you can try something like below:
have the update statements in a batch, put them in a stored procedure and have a variable act as a flag. I mean to say, when all the updates are successfully executed, set the flag variable as 'Success' or anything else.
In your UI code, check the flag value and then retrieve the updated data set from the Db and bind your gridview.
Its just an idea, I know you will have your questions, but keep this as a reference and try to build something with the above idea in mind.
-Anurag
Anurag Sinha V
11-Sep-13 2:55am
View
How is your DB getting updated?
Is it manual or via a job or something?
Anurag Sinha V
11-Sep-13 2:53am
View
Rightly said Mr. SA, the above question is not a straight forward one and I agree on the fact that an irregular shape has to be approximated as the nearest polygon..
NIce suggestions..
-Anurag
Anurag Sinha V
30-Aug-13 7:07am
View
Roger that Mr. Phil.
Anurag Sinha V
30-Aug-13 4:55am
View
what in the world is this...
improve your question buddy
Anurag Sinha V
30-Aug-13 4:52am
View
Yep...just keep a track as to how will your UI code take into account the flag values at the start and end of the stored procedure..Am sure you'll find a method for quick retrieval...
Have fun!!!
regards
Anurag
Anurag Sinha V
30-Aug-13 4:20am
View
Error message plz...
Anurag Sinha V
21-Aug-13 6:06am
View
use caption property of the gridview...
Anurag Sinha V
21-Aug-13 5:56am
View
Use Split method...
Anurag Sinha V
21-Aug-13 1:47am
View
np..god bless.. :)
-anurag
Anurag Sinha V
18-Aug-13 2:02am
View
rightly said Mr SA...
Anurag Sinha V
16-Aug-13 5:45am
View
Interesting question Adarsh..need to see it...
Anurag Sinha V
16-Aug-13 0:30am
View
@Stephen..I don't think there is any binding for https..basicHttpBinding, wsHttpBinding work for https if we have the security mode as transport.
I have created https binding using 'Edit bindings' in IIS. https is configured to use port 443. Any other thoughts? If you have any sample and stuffs can you post them here...
Appreciate your assistance..
Anurag
Anurag Sinha V
5-Aug-13 1:23am
View
Manuel, the link which you provided is not the answer to the question..you have misinterpreted the question...thanks anyways
Anurag Sinha V
25-Jul-13 7:19am
View
Post some code mate...
Anurag Sinha V
22-Jul-13 3:21am
View
Hello yloginov..I have solved the above issue and evrythng works pretty fine now..
Thanks for all your inputs and suggestions...
regards
Anurag Sinha V
17-Jul-13 0:26am
View
Hii Mr. yloginov...thanks for all the suggestions, somehow I am able to populate my dropdwonlist..changed my window.open to window.showModalDialog to get back a return value.For the time being its working fine..Do you have any idea as to how can I postback the dropdwonlist on its click..I mean to say there is some legacy code written by somebody else and I hv to fix that.I would give you a detailed explanation.
For the very first time, if a user clicks on dropdown, only Selected should be visible.
Then he can open the popup and create a new view and this view shall be populated in the dropdown. These 2 work.
Thridly, if he/she closes the browser or somehow the browser gets closed, he/she should see Standard as well as the view he/she has created, which is not happening. The code is such that on close of the browser if a postback occurs, then his/her views will be visible. Can I use AutoPostBack=true in this case only for the dropdwonlist?
Any thoughts..Thanks for your time though..
Regards
Anurag
Anurag Sinha V
16-Jul-13 2:42am
View
btnOK_Click gets called after the Page_Load of the usercontrol..If my button OK was a HTML control, i could get the code to work, but the ASP.NET button control is giving me problems...so as per me, the hidden button stuff is the only method left...do you have some sample code or something?
-regards
Anurag Sinha V
16-Jul-13 2:25am
View
"Behaves as null" means that I have debugged it numerous times and yet it is null...dropdownlist in the user control itself becomes null...ANy pointers would certainly help Mr. SA.. :)
-anurag
Anurag Sinha V
7-Jul-13 0:44am
View
Hey Mate...links look pretty ok...i will try and will update thread...
-regards
anurag
Anurag Sinha V
6-Jul-13 14:36pm
View
thanks fr the reply mate..if my table has two rows then fourthname.fifthname,sixthname will come after the frst 3 entried vertically..i mean i will like it to be like dat...
u got ny idea???
will b very helpful
Anurag Sinha V
3-Jul-13 9:01am
View
Awesome link Rais..thanks for that..I had an ampersand (&) in my entry..changed it to & and it worked..Meanwhile do you knw what can we write in order to pass a dot(.) in xml??
Anurag Sinha V
1-Jul-13 7:53am
View
hey there..
hv sent u the code for this very question to the email id given above..
check it..
-anurag
Anurag Sinha V
1-Jul-13 7:36am
View
Are you sure about the question and the code which you need?
the above question caters to your need??
-anurag
Anurag Sinha V
1-Jul-13 7:35am
View
Deleted
Are you sure about the question and the code which you need?
the above question caters to your need??
-anurag
Anurag Sinha V
19-Jun-13 9:28am
View
no problem..keep learning
-anurag
Anurag Sinha V
19-Jun-13 2:18am
View
Also you will hv to use some APIs like thundersms.com API...
try n u will get it...
Anurag Sinha V
19-Jun-13 2:16am
View
hey Jayanti..u cn visit the below URL for further understanding..
http://www.ozekisms.com/index.php?ow_page_number=230
hv a look and do as per the steps...it should work..
regards
anurag
Anurag Sinha V
16-Jun-13 5:21am
View
Hey..what platform you aiming at??
dot net, java, android??
question is not clear..plz be specific?
Anurag Sinha V
13-Jun-13 14:49pm
View
http://www.dotnetcurry.com/ShowArticle.aspx?ID=109
the above link might help...hv a look
-anurag
Anurag Sinha V
13-Jun-13 14:45pm
View
Call a server side code in your Javascript function via AJAX and in the server side code, write code for updation of the Db.
Anurag Sinha V
7-Jun-13 4:08am
View
Post some code...question is ambiguous without it....
Anurag Sinha V
4-Jun-13 5:05am
View
Debug and see at what piece of code you are getting error and stuffs...
Anurag Sinha V
25-May-13 2:49am
View
where are you stuck??
Anurag Sinha V
16-May-13 3:03am
View
I guess the fromDate and toDate are some strings...you can change them to frst DateTime format and then execute the query..Google for related stuffs..you will find many...search effectively...
Cheers
Anurag Sinha V
16-May-13 1:41am
View
select someDate from dbo.SomeTable where ValidDateColumn >='date1' and ValidDateColumn <='date2'
try it plain n simple..it should work
Anurag Sinha V
16-May-13 1:35am
View
why are you giving # in your query?
Anurag Sinha V
8-May-13 10:21am
View
well knockout.js i havent used buddy..better you go to the concerned website and ask...try using jquery and aftr that try migrating it to knockout.js...
Anurag Sinha V
8-May-13 6:23am
View
authenticate ur login page to use a user id and password..on successful authentication, redirect the users to the desired page...
Anurag Sinha V
4-May-13 2:10am
View
And what is the question?Where are you stuck?
Anurag Sinha V
22-Apr-13 7:18am
View
post some code buddy..question is unclear without a reference code...
-anurag
Anurag Sinha V
22-Apr-13 4:01am
View
hey, your question is not clear...database doesnt depend upon scrolls or else...you need to see how many tables you need, what should be the strategic columns and stuffs...
try it and aftr that if you face a crisis, contact CP
Anurag Sinha V
18-Apr-13 13:30pm
View
Ohhk..din't realize that..guess need to R&D more..do u see any soln to my above code??
Anurag Sinha V
18-Apr-13 11:26am
View
Hi, I haven't called anything on Page_Load...let's forget about the states dropdown...i just wana populate the country dropdown using PageMethods.
Using server-side methods or even using a cascading dropdown is a cakewalk...wana do a different approach...Any idea where am I going wrong in the above code???
-regards
anurag
Anurag Sinha V
17-Apr-13 1:17am
View
Hmm..thanks mate..it looks different..I will try it and will update the thread..
-regards
anurag
Anurag Sinha V
17-Apr-13 1:11am
View
So what do u suggest?
-Anurag
Anurag Sinha V
17-Apr-13 0:43am
View
Hmm..thanks for your time mate..will try to do as per your suggestion...
Anurag Sinha V
17-Apr-13 0:05am
View
And what if I dnt wana use the AJAX cascadingdropdown?
Anurag Sinha V
12-Apr-13 14:24pm
View
email sent..have a look
Anurag Sinha V
12-Apr-13 14:10pm
View
wats ur email id??
Anurag Sinha V
10-Apr-13 12:57pm
View
just FYI..have mailed u the sample code..have a look..
-ANurag
Anurag Sinha V
10-Apr-13 5:56am
View
Ask you manager or seniors in your company...This is not a .NET question.
Anurag Sinha V
10-Apr-13 5:27am
View
Np....enjoy
-ANurag
Anurag Sinha V
10-Apr-13 5:25am
View
Yes you are total free to do so..go ahead.. :)
-Anurag
Anurag Sinha V
10-Apr-13 5:22am
View
Ohh ok..in that case..i hv copied it..you can go ahead and delete it...
-ANurag
Anurag Sinha V
10-Apr-13 5:21am
View
Kool..i will try to send a working model...
-Anurag
Anurag Sinha V
10-Apr-13 5:18am
View
as the name suggests, it helps people to create connected applications. you can have few methods in your interface and can implement those methods in another class inheriting that interface. Search Google and even on CP.you will find numerous stuffs...
-Anurag
Anurag Sinha V
10-Apr-13 5:13am
View
Hey Mate,
right now i'm in offc fighting with a piece of code..i will work upon it and will send you the code. If you are ok, you can send me your email id and i will try to send you the working code by night. And its appreciable to see that you have tried something..Keep coding..
-ANurag
Anurag Sinha V
10-Apr-13 4:26am
View
kool
Anurag Sinha V
10-Apr-13 4:21am
View
On the SelectedIndexChanged event of the dropdownlist, bind your textbox to a datasource which will be basically a datatable having the results from your SQL table. these results wil;l be actuallt the names of the states.
Try it. It will work.
-Anurag
Anurag Sinha V
9-Apr-13 4:49am
View
np...keep coding
Anurag Sinha V
9-Apr-13 4:25am
View
I don't think you can do the stuff which you posted as a question, but this link also might help you..have a look
http://mattberseth.com/blog/2007/06/aspnet_ajax_invoke_a_static_me.html
Anurag Sinha V
9-Apr-13 4:23am
View
http://forums.asp.net/t/1531113.aspx
refer this link..
Anurag Sinha V
9-Apr-13 4:18am
View
use an Update statement with the where clause...
or use Insert statement without the where clause if its a new insert to the table..
-Regards
Anurag Sinha V
9-Apr-13 4:16am
View
np..:)
Anurag Sinha V
9-Apr-13 4:14am
View
Is it something related to web services??
can you post some code or else?
Anurag Sinha V
9-Apr-13 4:11am
View
thank you.. :)
Anurag Sinha V
9-Apr-13 4:10am
View
thank you... :)
Anurag Sinha V
9-Apr-13 4:10am
View
apt explanation....+5 from me..
Anurag Sinha V
9-Apr-13 3:42am
View
And what's the error??
Anurag Sinha V
8-Apr-13 5:15am
View
You can develop IOS , Android apps using .net via Mono...vixit Xamarin...
Anurag Sinha V
8-Apr-13 3:48am
View
What platform do you want to use?
via Backend? via Frontend?
Edit your question and please be more clear...Then people over here will be able to help you in the right direction..
-Anurag
Anurag Sinha V
8-Apr-13 3:36am
View
So, where are you stuck??
Anurag Sinha V
6-Apr-13 7:58am
View
Ok...I see...you can put the above delete statement in a job and schedule the job to run daily at whatever time you want...You can find jobs in SQL server agent..right click it and you can see some default jobs..create a new one and try
Anurag Sinha V
5-Apr-13 16:29pm
View
ohh..My bad..didn't see that you have written 'Error on this line'...
close the connection in finally{} block and then try...
Anurag Sinha V
5-Apr-13 16:26pm
View
Hey,
Put breakpoints in both the functions and try to debug at which point you're facing this error.
then you might understand where you're wrong..Try it
Anurag Sinha V
5-Apr-13 3:49am
View
Yes, I agree with the above suggestion..Please see your Event Viewer. It will have the exact errors.
-Anurag
Anurag Sinha V
4-Apr-13 9:31am
View
np..enjoy..
-anurag
Anurag Sinha V
4-Apr-13 4:11am
View
your code looks pretty ok..just try to include the actual values in the DAL file...
cmd.Parameters.Add(new SqlParameter("@customer_id",and else))....
-anurag
Anurag Sinha V
4-Apr-13 4:03am
View
Hmm..thanks for the info..
I guess you need to remove the double slash from your connection string.
Instead of EXPERT-17A055DD\\SQLEXPRESS, it should be EXPERT-17A055DD\SQLEXPRESS...
check the following link:http://stackoverflow.com/questions/1830824/instance-failure-in-asp-net
-Anurag
Anurag Sinha V
4-Apr-13 3:31am
View
one advantage can be thought of as: you can cuatomize your control as you wish, you can style it as you wish...and you can call it 'n' numbers of time as you wish...
-Anurag
Anurag Sinha V
4-Apr-13 2:45am
View
elegant solution buddy..+5 from me..
have used TryParseExact numerous times..
-Anurag
Anurag Sinha V
4-Apr-13 1:33am
View
you can have another form in your project asking for user's server name, database name,login credentials and else and replace these stuffs in the connection string on a button click..This way wherever you install the form will first ask for the user's stuffs and then do the work...Try it
Anurag Sinha V
29-Mar-13 6:58am
View
handle the button click in code behind...check the anwser of the user against the correct answer by using if loops and award mark for the correct answer and no mark for wrong answer..In the end..add all the marks and display in the lblyourmarks...try it..
Anurag Sinha V
28-Mar-13 3:32am
View
Hi ryanb31....you suggestion works..we actually need to encode the quotation marks since its in the form of an XML...
And I am doing this coz this is a client requirement...had done these stuffs via other means too but the client wants these things to be included in the configuration file..hence the drill...
_Anurag
Anurag Sinha V
27-Mar-13 9:31am
View
Thanks ryanb31..will try it out and will keep the thread updated...
-Anurag
Anurag Sinha V
27-Mar-13 2:50am
View
I don't think so. WebServices only expose behaviors(methods) and not state(members).
Anurag Sinha V
27-Mar-13 2:05am
View
Hey,
WebMethods expose only methods and not members...
For exposing your members via properties you might wana do something like below:
<pre lang="c#">private string text="Dark Knight";
[WebMethod]
public string SetText(string value)
{
text=value;
return text;
}
[WebMethod]
public string GetText()
{
retrun text;
}</pre>
Hope it helps
-ANurag
Anurag Sinha V
27-Mar-13 1:48am
View
Hi,
Functions exposed as [WebMethod] will be available when you add the web service reference..
Anurag Sinha V
26-Mar-13 15:08pm
View
Sure will..whenever I fall into some code trap,CP comes to rescue..You guys are doing a great job..I also imagine myself sometime later in your shoes... :)
-Anurag
Anurag Sinha V
26-Mar-13 14:37pm
View
Elegant solution Mr. Sergey....just class...My application executed successfully..I gladly accept the solution. And yes I totally agree that I should probably segregate the WPF and excel code bits. Thanks a lot..
Regards
Anurag
Anurag Sinha V
21-Mar-13 6:41am
View
I am not aware of it Maa'm. I don't even know what's a live view.
Are you talkin about List View?
Anurag Sinha V
21-Mar-13 5:35am
View
Don't know..somehow the solution has been submitted twice..dnt mind fr that..:)
Anurag Sinha V
21-Mar-13 5:23am
View
Mate,
Check whether you have set AutoPostBack as true for your first DropDowmList.
This is the main problem which I face a number of times.
Otherwise i dont see any problem of the selectedindexchanged event not firing..
-ANurag
Anurag Sinha V
20-Mar-13 11:45am
View
Thank you Prasad..i will try this and will update it over here too...
-Anurag
Anurag Sinha V
15-Mar-13 4:26am
View
Hi,
Use typecasting.
e.CommandArgument is actually an Object type and 1 is an integer, you can't subtract an object type and an integer type.Try to convert your operands in the same type and execute it.
Anurag Sinha V
14-Mar-13 6:39am
View
Ahh, the code aint visible properly in the comment section.I am writing the above code in another solution below.
Have a look at it and try.
Anurag Sinha V
14-Mar-13 6:37am
View
Hi, I understood your scenario.
The required field validators will actually show their text besides the textbox itself, to which they are applied.
So I suggest, in this case, you may remove all the required field validators and call a Javascript function on the Submit button click.Check whether the textboxes are filled and display an alert or write the error message on to a label near to the submit button.Something like this:
<script text="javascript">
function CallMe()
{
var x=document.getElementById("id of textbox").value;
if(x=="" || x== null)
{
alert("Some stuffs are missing");
}
}
You can call this Javascript function from the C# code behind on the button click as below:
protected void button_click()
{
Page.RegisterStartupScript(this.GetType(),"alert","CallMe();",true);
}
The reason why I have chosen Javascript to do this cause it will do client side validation and your app will not have to go to the server or any postback.
Hope it helps.
-Anurag
Anurag Sinha V
14-Mar-13 5:56am
View
Hi,
Edit your question and add the code what you have pasted over here.
Its unreadable here.
-regards
Anurag Sinha V
14-Mar-13 5:55am
View
hmm...debug and check what is the error there and try to remove it..
i dont have access to your computer, hence i cant debug from here...
i have provided you with a sample code buddy...try to remove the errors and excel..:)
-anurag
Anurag Sinha V
14-Mar-13 3:21am
View
Hi,
Please post the code and wahtever you have tried.
It will help us in understanding the situation.
-Regards
Anurag Sinha V
14-Mar-13 2:35am
View
Hi,
Didnot understand what are you trying to say here.
Can you be more precise?
Anurag Sinha V
13-Mar-13 1:06am
View
You can use Polymorphism, which is an OOPS concept, by implementing method overloading or method over-ridding...Its the easiest as per my opinion
Anurag Sinha V
12-Mar-13 7:09am
View
Hi, give me some time buddy..am in office..will post the code in a while...
-anurag
Anurag Sinha V
12-Mar-13 3:26am
View
Ohh..I saw it just now..Thanks for noticing that...:)
-Regards
Anurag Sinha V
12-Mar-13 3:18am
View
@Onurag19....May i ask why was my code converted?
-regards
Anurag Sinha V
12-Mar-13 3:09am
View
Post your code plz..
Anurag Sinha V
12-Mar-13 0:12am
View
Hi,
What does your column RowCDate denote?Is it a DateTime column? If yes, then I guess you need to set your user defined variable @PackageStartTime as DateTime.
Try it....Everything apart from this looks fine in your code.
Hope it helps..
regards
anurag
Anurag Sinha V
9-Mar-13 12:14pm
View
hey..sent u a sample code to ur id..hv a look..hope it helps..
keep learning..:)
Anurag Sinha V
9-Mar-13 11:32am
View
hey..will send u a sample 3 tier web app in a while..
regards
anurag
Anurag Sinha V
9-Mar-13 10:58am
View
I cn send a sample web app for your starting..what's your email id??
it will be difficult to post the whole code here..
-anurag
Anurag Sinha V
9-Mar-13 9:11am
View
in the comments section the tags are not visible...let me add a solution to it below..
Anurag Sinha V
9-Mar-13 9:10am
View
hi...i guess you can just define your connection string in a normal way...
<connectionstrings>
<add name="conn" connectionstring="Data Source=DEVELOPER-PC; Initial Catalog=Development; Integrated security=true" providername="System.Data.SqlClient">
you were trying to retrieve the providerName via the code they have given in the website..i don't see the necessity of it...try to give the connection string as above and remove the dbprovidername code from your total code and it should work...try it
-anurag
Anurag Sinha V
9-Mar-13 2:52am
View
hi..
post some code...your problem cnt be understood wdout the code...
regards
anurag
Anurag Sinha V
9-Mar-13 2:48am
View
hi i guess u r havin problems wd your connection string..can u post ur code as to what have you done in your connection string??
Anurag Sinha V
8-Mar-13 6:46am
View
Was it asked to do with C++?Now i see it was asked under C++ section.
Gosh I missed that, thought it would have been asked for a C# app..
Thanks for pointing it out Richard... :)
Anurag Sinha V
8-Mar-13 6:20am
View
hey, u might want to check this link...it has something which might interest you. Basically you will have to create event handlers for each button and on the main button click you will have to have a nested loop to see which button has been clicked...Check out this link:
http://stackoverflow.com/questions/12659844/how-do-you-figure-out-if-any-of-the-buttons-was-clicked-in-c
-anurag
Anurag Sinha V
8-Mar-13 6:07am
View
have a look at the below solution..hav tried something..
reagrds
Anurag Sinha V
8-Mar-13 5:56am
View
Hi,
Aren't you selecting the buttons from the list of buttons?
If you are thn i guess you would know which button has been selected initially and else.
Put breakpoints on every single button's click event handlers, then when as you click the buttons, the corresponding event handlers will be invoked and you might get a clue as to which button is getting clicked first. Try it...
-Anurag
Anurag Sinha V
8-Mar-13 5:52am
View
Hi, guess you are using WinForms..
drop a picture box control to your winform, browse and add the src of the pic using the properties window..there you go.you are done...
regards
Anurag Sinha V
7-Mar-13 8:52am
View
hey,
does ur stored procedure support parameters? I mean to say that when you are calling your SP in the purchase.cs class, does it compile properly coz i guess you are not providing any parameters over there??
Am i successful in interpreting your situation?
-anurag
Anurag Sinha V
7-Mar-13 8:36am
View
mate,
what's a selected record as per you?
Are you talking about, when you select something from a dropdownlist, then the corresponding record should be displayed in the gridview? Its my wild guess.
Can you please be more detailed? Or post the code in which you are having problem.
regards
anurag
Anurag Sinha V
6-Mar-13 10:59am
View
np..keep coding..:)
regards
Anurag Sinha V
6-Mar-13 7:26am
View
hey..check your gmail..found some code and emailed u..
happy coding...
-anurag
Anurag Sinha V
6-Mar-13 4:28am
View
Hi,
Le me search and i will mail you the sample code in a while.
-Anurag
Anurag Sinha V
5-Mar-13 12:44pm
View
Hey,
i dont think there is any pre-defined method or function as such, but may be you can write a sp, where you might wana count the number of 'and' and 'or' keywords, after the where clause.
You would have to do some customizations so that the sp doesnt take into account the sub-query and stuffs.
And in the end if you are bale to make out the correct number of 'and' and 'or' keywords, then add one to them and you would get the count of conditions in the where clause.
You might wait for some experts opinion too.
Hope the above helps.
Regards
Anurag
Anurag Sinha V
5-Mar-13 11:27am
View
hi...let me see mate..i had done a similar kinda thing..le me search n i will send u...
cn u drop ur email id here?coz its gonna be an application n pretty big...
anurag
Anurag Sinha V
5-Mar-13 6:31am
View
Hey, You can have an event called OnBlur() on the HTML input box.
And OnBlur will be defined as a Javascript function.Whenver the first input box looses focus your text in the second input box would change.
Will it help??
-Anurag
Anurag Sinha V
5-Mar-13 0:07am
View
Hi, I guess you can use lil Javascript trick to dynamically induce a field near to the grid view. Javascript provides a method similar to createElement and AppendChild.
Or am I not understanding your question?
Regards
Anurag
Anurag Sinha V
4-Mar-13 4:27am
View
Hi, Can you post the code as to what have you done?
It will be quite easy to catch the bug or else..
regards
anurag
Anurag Sinha V
4-Mar-13 2:53am
View
np...keep coding..
regrds
anurag
Anurag Sinha V
4-Mar-13 2:45am
View
hi,
went through ypur article on your blog.
crisp write up..cheers
regrds
anurag
Anurag Sinha V
4-Mar-13 2:43am
View
Mate,
It looks that you haven't added the code for SMTP server.
May I ask what SMTP server are you using??
Also you need to configure the port number..
Anurag Sinha V
4-Mar-13 0:36am
View
np..happy coding.... :)
regards
anurag
Anurag Sinha V
3-Mar-13 23:44pm
View
Hi, It doesnt matter whether urs a web app or a win app...Page_Load() and stuffs are quite common and yes .NET framework supports VB.Net too, hence i guess you can implement the above via VB.net..:)...i wrote asp.net coz i thought you wud be havin some troubles in ur web app..nevamind...
hope it helps...
regards
anurag
Anurag Sinha V
20-Feb-13 4:04am
View
A very detailed explanation Mr. OriginalGriff.Hats off... :)
Regards
Anurag
Anurag Sinha V
19-Feb-13 4:59am
View
Yeah, the simplest process will be to call a procedure in a step of the SQL job where the procedure has the updation logic...
regards
Anurag Sinha V
14-Feb-13 23:14pm
View
yeah..keep on digging
Anurag Sinha V
14-Feb-13 8:16am
View
Hi,
Let me see if i can help you.
regards
anurag
Anurag Sinha V
14-Feb-13 5:49am
View
Hi,
Can you post some more code?
Need to see how you have defined your class.
Does it have any parameters being passed or else?
Posting more relevant code will help us to assist you better.
regards
anurag
Anurag Sinha V
14-Feb-13 2:46am
View
Hi,
For developing an android app, plz follow developer.android.com.It has all the tools, documentations required.
Regarding how to control Android app via a PC and vice-versa, the below link might help you.Have a look.
http://stackoverflow.com/questions/12730876/android-app-to-control-pc
Hope it helps
regards
anurag
Anurag Sinha V
13-Feb-13 23:36pm
View
Hi,
What kind of status are you talking about?
Please elaborate your question.
regrds
Anurag
Anurag Sinha V
13-Feb-13 4:12am
View
np..happy coding.. :)
-anurag
Anurag Sinha V
13-Feb-13 3:34am
View
Hi Janani..
No i dont think so.MouseEnter isnt a predefined event of an asp.net Button...You need to add code for MouseEnter..have a look at the asp.net Button class..you might get some idea...
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.aspx
Hope it helps..
Anurag Sinha V
13-Feb-13 1:30am
View
np...happy coding.. :)
Anurag Sinha V
12-Feb-13 8:23am
View
Hi Pete...thx fr the comment..I appreciate it...I am aware of Mono by Xamarin..but I knew that we can code Android apps with Mono in C# as against Eclipse in Java...does it work for Iphone and Blackberry apps too??
Anurag Sinha V
12-Feb-13 0:55am
View
Hi,
your question is not clear..what platform are you targeting to perform this task?
Have you considered the option of having SQL tables?
In my opinion, you would be having a large datawarehouse from where you need to extract your relevant data and stuffs...This can be achieved by using SSIS in SQL..
Please edit your question and let us know what are you exactly looking for?
Regards
Anurag
Show More