I have established a linq connexion with my database with this code behind.
And with manually set paging for 10 records.
data is shown in ListView.
How do I get the header sorting I'm using a linkbutton. Also I want to be able to insert a dropdownlist in the header. How do I receive this functionality.
With thanks in advance.
privatevoid DisplayData(int startRow)
using (Origo.Vefur.Linq.dbMainDataContext db = new Linq.dbMainDataContext(Origo.WMMain.Helpers.Global.ConnectionString))
var empList = from el in db.owm_USERs
where el.showOnWeb == 1select el;
ListView1.DataSource = empList.Skip(startRow).Take(10);
I've had problems with Yandex (and Baidu) in the past, they both hit harder than google. Given that I had 0% interest in the Russian/Chinese market where I was, I blocked them. I tried using robots.txt, but they didn't play well.
You might find this[^] discussion helpful I went down the URLRewrite route, it worked pertty well, but needed IIS7 plus the module installed.
Thanks for the article, I need to know that stuff anyway. Google is actually pretty courteous crawling at a rate of about 2 minutes each.
I think my strategy is wrong here. Perhaps for crawlers and bots, I should make them wait for the whole process to complete on a single thread. But on human users, I can put data writes on background threads so there experience is faster.
I'm sending mail to newly register Users in html format(Asp.net C#). It works fine but sometimes Some Unwanted html code(that dose not exist in my webpage) showing after mail body even mail content is correct. if anyone know the solution, plz help.
Here is that unwanted code that User getting.
With all do respect, how are we suppose to know where to look.
You should add a watch to your message body and run the program in debug, then make a copy of the body text, and send it to yourself. Then inspect both message body content and compare the two.
Then inspect the message content of the other email with the extra text and make a comparison as well. If the extra html only appears after relaying through the other mail server, then that mail server is injecting the html.
I have an asp.net application which is client for a java web service. The java web service internally talks to an IBM database through natural language.
It is said that this java web service doesnt work like "url?wsdl" format. So I am unable to use add service reference for this. I have to create the proxy by using physical path like this "\\xxx\xxx\xxxxx.wsdl" because it doesnt run with "http://xxxx?wsdl".
Is there any way to create proxy for this using wsdl tool.
wsdl.exe accepts both url or local path. You may run into problems using path to a network share, however you can try either copy the file locally or mapping drive for that share (look here[^] for example).
"My software never has bugs. It just develops random features."
I Have a gridview . When i click one of the files in the gridview , it will display the file details in a table in the grid.But if i am in 20th or 19th page of the gridview, after clicking on the file , the grid is comming to page 1. Is there any property for the grid to prevent this.
Basically Viewstate maintain all this information about current page of the grid. check if it is not disabled for you. another way is, you can also store page number in the session and update only when next,previous ,first, last button click or grid is refresh.
Never ever do that. I did twice and 2 diffrent apps and it was always mistake to store anything in session besides some user data valid to user not for some page. For example in one grid there was date filter. Stored in session and empty this caused app to crash in that particular page.