15,915,094 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 slayasty (Top 69 by date)
slayasty
23-Feb-14 12:51pm
View
I see. Ill try to check what is conflicting in my setup. Thanks!
slayasty
23-Feb-14 9:39am
View
the problem is that I am trying to access another page that uses the database. I have another aspx page that finds data from a website and that data is stored in the database.
now the other aspx page is used to display all the data that is in the database. when i switch between them i get the error above.
slayasty
23-Feb-14 9:39am
View
the problem is that I am trying to access another page that uses the database. I have another aspx page that finds data from a website and that data is stored in the database.
now the other aspx page is used to display all the data that is in the database. when i switch between them i get the error above.
slayasty
22-Feb-14 9:38am
View
no no, you misunderstood. I need to this in the code itself. If i restart the web application and go directly to that second page all works fine. I just need to stop the process and basically restart it so I can use it on the other aspxpage
slayasty
20-Feb-14 17:42pm
View
Thanks alot! :)
slayasty
20-Feb-14 17:29pm
View
I want to exclude them out of the list
slayasty
12-Feb-14 14:04pm
View
MM, I will try that and see what happens! :)
Edit: Well I just noticed that in your code in the button method the variables are already known, but that is not the case in my program as each method will generate their own Url and price, so I need to make the return type varible before doing anything right?
slayasty
11-Feb-14 16:38pm
View
oh yes, makes sense. I will try the proposed solution and keep you posted! :)
slayasty
11-Feb-14 16:32pm
View
may I ask why it is treated as object? I am using web forms and not web control, does that make a difference?
slayasty
11-Feb-14 15:59pm
View
Well, the thing is im not exactly sure how it is suppose to be done. Google only helped me a little but I dont know how I can get 3 return variables that are different type off 1 method
slayasty
9-Feb-14 15:46pm
View
I cant seem to find any similar parameter to match since it is not showing in my visual studio :/
slayasty
9-Feb-14 13:46pm
View
mm but in my case I have to type every character I dont want right?
slayasty
9-Feb-14 13:01pm
View
Thanks for the help, managed to solve it by getting the xPath properly
slayasty
2-Feb-14 7:28am
View
I will try! thanks :)
slayasty
1-Feb-14 11:33am
View
mm i see. well my site is just the local host so how would that work?
slayasty
31-Jan-14 12:44pm
View
Hi, I have tried that but im still having the same problem. It is not allowing me to drag the image where I would like to.
slayasty
30-Jan-14 12:09pm
View
Hi, here is the screenshot of the design view.http://s622.photobucket.com/user/kidown/media/backgroundpic.jpg.html
I would like to have that book picture to the right without having to seperate the label from the textboxes. I hope that clarifies my problem :)
slayasty
28-Jan-14 14:09pm
View
mm adjusting the px on the margin seemed to work. now if I want to add a picture, is it possible to put it anywhere I want in the page? how do I do so because it will only allow me to put it in the same line as a textbox and acts part of that same <p></p>. Thanks again!
for reference here is what I have for the image: <asp:Image ImageUrl="~/images/textback1.jpg" runat="server" Height="161px" Width="173px" />
slayasty
27-Jan-14 16:06pm
View
mm. well here is a screenshot: http://s622.photobucket.com/user/kidown/media/forbidden403.jpg.html
slayasty
27-Jan-14 15:07pm
View
ooh. can you tell me why never enable directory browsing? :) mm its still giving me the same error :x
slayasty
27-Jan-14 14:08pm
View
mm I did do that but now everytime I run the program it gives the The Web server is configured to not list the contents of this directory error. I did enable the directory browsing but did not work. hope it can be solved! :)
slayasty
27-Jan-14 13:15pm
View
ok i added the css. i tried to copy the style.css of the template into the site.css (i think thats the one that is used for the program) but now gives me the "Web server is configured to not list the contents of this directory." and i cant seem to fix it :/
slayasty
27-Jan-14 12:12pm
View
hi, im afraid I do not understand what you mean. how do I check this?
slayasty
27-Jan-14 4:43am
View
mm would it make a difference if here index.html is in the project or not? i cant improve the question right now because im not at my computer. i shall update the question when i get home later. thanks
slayasty
26-Jan-14 15:33pm
View
well this is also the problem with the default template.
but here is the link of the template: http://www.freecsstemplates.org/preview/stargazer/
slayasty
10-Jan-14 12:34pm
View
Oh I see. Since T have the 2010 I thought it is a different version.
slayasty
9-Jan-14 17:17pm
View
mm I see. I have VS2010 does that support merge being a more recent version or do I still need to get a more recent version?
slayasty
9-Jan-14 14:57pm
View
mm I am using the database from visual studio itself. how can i update the version?
slayasty
7-Jan-14 16:42pm
View
i see. i will try to elaborate on that!
slayasty
7-Jan-14 15:11pm
View
I see. Any idea on what it might be?
slayasty
2-Jan-14 17:43pm
View
Mmm I understand better now. Thanks for the help!
slayasty
2-Jan-14 13:28pm
View
well its too big to fit. here is the txt file i pasted:
http://www.mediafire.com/download/gg71q401f0759ui/responsedata.txt
slayasty
2-Jan-14 10:28am
View
mm. i tried doing htmlDoc.LoadHtml(url) because that url is the generated one but it gives me URI format are not supported.
The response data i get is the page source but seems to be incomplete as i cannot find the div class item class in the response data. perhaps there is a limit on how much response data can be stored?
slayasty
2-Jan-14 7:17am
View
I tried that but now when it is trying to load the responseData its saying illegal character in path
slayasty
1-Jan-14 15:18pm
View
I see. But the problem is that the book results variable is null (im guessing since html agility is not using the generated website
slayasty
1-Jan-14 15:18pm
View
oh. ok my bad. Thanks
slayasty
1-Jan-14 11:09am
View
I see. But the problem is that the book results variable is null (im guessing since html agility is not using the generated website
slayasty
26-Dec-13 16:08pm
View
I see. Well im a newbie at coding so its expected that the form is not good. thanks for the extra hand
slayasty
16-Dec-13 14:47pm
View
mm. ok i shall try that solution out :) thanks alot!
slayasty
13-Dec-13 18:56pm
View
i see. thanks alot i shall try that
slayasty
13-Dec-13 13:59pm
View
what i am trying to do is using my web application to enter the book title or isbn number, select the criteria i need and hit the search button. the problem is how to input this data from my web application to this website
slayasty
4-Dec-13 14:05pm
View
thats what i did the first time. mm i guess i mistyped the web browser name i gave it myself. :P
slayasty
3-Dec-13 13:47pm
View
When i type WebBrowser.Document.Links i get an error saying "n object reference is required for non-static field, method or property. 'system.Windows.Forms.WebBrowser.Document.get'
slayasty
3-Dec-13 12:21pm
View
ok thanks . i will elaborate on that.
slayasty
2-Dec-13 15:49pm
View
the problem is im trying to find how to capture the generated website link from webcontrol when submite a form in c#.
slayasty
4-Nov-13 9:41am
View
i see. thanks. I commented the search submit part of the attribute (invokemember)and it only looped twice. ill see what i can do with the debugging.
thanks for the help
slayasty
4-Nov-13 9:05am
View
Deleted
i see. thanks. I commented the search submit part of the attribute (invokemember)and it only looped twice. ill see what i can do with the debugging.
thanks for the help
slayasty
4-Nov-13 8:56am
View
mm is it suppose to show a commandline interface? coz it doesnt show anything. well if I comment out the code in the handler it doesnt loop so it must be something in the handler thats making it loop
slayasty
4-Nov-13 7:46am
View
at the end of the event, the eventArgs is empty. is this normal?
the whole event receiver is looping. regards to what is the debugger saying, what exactly should i look for?
slayasty
4-Nov-13 7:14am
View
i see. even if i remove the if condition it will still loop tho :/
slayasty
4-Nov-13 6:23am
View
mm i dont seem to understand what you mean. what do you mean add it once or remove it? the bool searchsubmit doesnt have anything to do with the attribute searchsubmit. i just named the bool that way coz it seemed logical to me. I think its better i name the bool something else to reduce the confusion.
thanks
slayasty
1-Nov-13 6:45am
View
its a WPF application using the systems.web and other related ones. I opening the app.config but the only code that is written is:
<configuration>
<startup><supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0">
slayasty
31-Oct-13 8:23am
View
im using VS 2010. thats the first place i looked. I checked each folder of the solution but i dont see any file named web.config or similar
slayasty
31-Oct-13 8:04am
View
hi, where can i find this web.config file?
slayasty
29-Oct-13 10:22am
View
ok i got an idea. i could use an Else condition to wait until the if condition is true. that would work right?
slayasty
29-Oct-13 10:10am
View
mm I changed abit that code. used an if condition if the readystate == webbrowserreadystate.complete. inside the if condition I transfered that filter availability code with the avList but it still didnt work :/
if (webBrowser1.ReadyState == WebBrowserReadyState.Complete)
{
//Application.DoEvents();
bookCollection = webBrowser1.Document.GetElementById("filterAvailability").GetElementsByTagName("option");
List<HtmlElement> avList = new List<HtmlElement>();
foreach (HtmlElement avItem in bookCollection)
{
avList.Add(avItem);
}
pElement = avList.Where(avOption => avOption.GetAttribute("value").Equals("1")).FirstOrDefault();
if (pElement.GetAttribute("value").Equals("1"))
{
pElement.SetAttribute("Selected", "1");
pElement.InvokeMember("click");
}
}
im not sure what difference does application.doevents() makes if it is the code or not tho.
i made the if condition because it makes sense that way because the filter of availability option can be chosen once the search button has been clicked
slayasty
29-Oct-13 8:36am
View
So i tried using systems.timer to make a delay. The following code:
System.Timers.Timer myTimer = new System.Timers.Timer(5000);
myTimer.SynchronizingObject = webBrowser1;
myTimer.Enabled = true;
myTimer.Start();
myTimer.Stop();
the problem is the timer is not engaging. what am I doing wrong? It is completely bypassing the timer (as the 5 seconds are not timed)
thanks
slayasty
29-Oct-13 7:18am
View
i see. ill try that and come back with the results
slayasty
28-Oct-13 15:44pm
View
i c. ok thanks :)
slayasty
28-Oct-13 15:23pm
View
thats true but I cant figure out why the pList only shows one count. cant be because the option values are numbers can it?
slayasty
28-Oct-13 14:50pm
View
well the pList shows only 1 count and its the All option value i dont know why. as it should have 3 values I think. considering the code I gave
slayasty
28-Oct-13 7:53am
View
yea it needs to be select and the form is submitted using the search button. that link will help alot. thanks for all the help you gave me :)
slayasty
25-Oct-13 10:27am
View
oh i see. thats why you where confused when i asked you about the pElement. the format was screwed up so i didnt understand very well :P
i debugged that code and it seems that even tough the price low to high is found, its not setting that option do i need to use setattribute or something like that?
slayasty
25-Oct-13 9:53am
View
sure, this is the code currently:
string entry = Titleentry.Text;
HtmlElementCollection theElementCollection;
HtmlDocument filters = webBrowser1.Document;
theElementCollection = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement curElement in theElementCollection)
{
if ((curElement.GetAttribute("id").ToString() == "searchTitle"))
{
curElement.SetAttribute("value", entry);
}
}
List<HtmlElement> pList = new List<HtmlElement>();
foreach (HtmlElement pItem in theElementCollection)
{
pList.Add(pItem);
}
HtmlElement pElement = (HtmlElement)
filters.GetElementById("filterSortBy").GetElementsByTagName("option");
pList.Where(pOption => pOption.GetAttribute("value").Equals("price_low_high", StringComparison.InvariantCultureIgnoreCase)).SingleOrDefault();
slayasty
25-Oct-13 9:09am
View
Cannot convert type 'System.Windows.Forms.HtmlElementCollection' to 'System.Windows.Forms.HtmlElement'
the one line htmlelement pElement = (HtmlElement) is saying this.
slayasty
25-Oct-13 7:38am
View
ah i see. regarding pElement since I it is only being declared as an htmlelement and not used in the code directly(forgive my newbieness in this)
I tried that new code and it says that pCollection does not exist in the current context, what do i need to declare? where can i find this collection that supports linq? i have searched google but with no good answer.
another problem that it gives me is System.Windows.Forms.HtmlElementCollection' does not contain a definition for 'pList' and no extension method 'pList' accepting a first argument of type 'System.Windows.Forms.HtmlElementCollection' could be found (are you missing a using directive or an assembly reference?)
thanks and sorry for all the troubles.
slayasty
24-Oct-13 10:31am
View
mm i did try this tho it gave this error:
System.StringComparison.InvariantCultureIgnoreCase cannot be used like a method
also how was pElement used in that structure since it isnt directly used?
slayasty
24-Oct-13 9:51am
View
yep thats exactly what i want to do. here is the html for the filter sort:
<select name="searchSortBy" id="filterSortBy">
<option value="popularity" label="Most popular" selected="selected">Most popular</option>
<option value="price_low_high" label="Price, low to high">Price, low to high</option>
<option value="price_high_low" label="Price, high to low">Price, high to low</option>
</select>
thanks
slayasty
24-Oct-13 8:42am
View
what i am trying to do is selecting the option: setting price lowest first from the filters of the website. maybe i need to use different html elements or something?
Show More