|
If there is no data to populate the checkboxlist with, then it wont display, simply as that.
The gridview has a default control which allows you to put a message if no rows are found.
Maybe with the checkboxlist you could just put a label when no data is displayed.
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
|
Hi all
I've had a look around and can't find any reference to this, which probably indicates that I'm stupid trying to do it, but here goes...
We've got an SEO consultant/master of the dark arts involved in one of our current projects and he's keen for the auto-generated __doPostBack to be in an include file rather than inline.
Has anyone got any ideas how to do this, or, indeed, if it's possible?
Thanks
Ben
|
|
|
|
|
So you want just the event postback to be an include file, why?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
I catch the scent of a consultant who doesn't have fricking clue what he's talking about...
|
|
|
|
|
Why...?
I didn't get any requirements for the signature
|
|
|
|
|
'Why' is a very good question....
The crux of his argument is that the cleaner the page (in his ideal world, the page would only be one css reference and H1 to H6 and P tags - obviously would not have functionality, but, hey, what does that matter), the better it will get indexed by the search engines - personally, I think this is a load of old horse sh!t, as I'm sure that Google have just about managed to figure out that it doesn't need to look inside script tags.
However, the business have engaged him to be involved in the project which means we either need to come up with reasons not to implement suggested changes, or find ways to do them.
If there's any easy way to do this, then I avoid a fight, if there isn't, and there's no value to it anyway, then I can go back to the business and suggest that most of what is being suggested has no value.
Oh, the joy of mixing politics with technology....
Thanks in advance!
Ben
|
|
|
|
|
My understanding was that google did not store scripted tags as part of their index criteria rather they look at the content text of the page.
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Thanks - that was my understanding as well.
A simple 'more clarification on the impact' question may head this off.
Ben
|
|
|
|
|
Also check this out:
Add website to google
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
I have a plan for you. Since you have to play the game...
Write a quick email to the consultant (and cc your boss) saying that you are not familiar with how to put all the javascript in an includes file.
Rather then wasting time trying to figure out something he is obviously familiar with, ask him for some sample code. If he can't produce any sample code of how to do this, then tell him you don't know any more than he does...
There's nothing wrong with admitting you don't know how to do something. No developer knows everything and since it is the consultants plan, surely he can show you some sample code.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks Todd.
The consultant is not familiar with .Net technology, so a combination of yours and .netmans answers should give us a enough to make it a non-issue.
Ben
|
|
|
|
|
how can I check whether item selected or not in ListBox.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Why are you double posting?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
for (int i=0;i<=ListBox1.Items.Count;i++)<br />
{<br />
if(ListBox1.Items[i].Selected==true)<br />
{<br />
}<br />
else<br />
{<br />
}<br />
}
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
How can we do it using java script?
|
|
|
|
|
check this link[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
I have 4 items in ListBox.
I want to check which is selected in test.aspx.cs page
how can I do?
ListBox.Selected property is not there.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
SelectedItem.value
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
i have a batch file (aa.bat)
when i run batch file in asp.net
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.RedirectStandardOutput = false;
startinfo.RedirectStandardError = false;
startinfo.UseShellExecute = true;
startinfo.FileName = "C:\\aa.bat";
Process.Start(startinfo);
then successfull run
when project run on the localhost
that time not run batch file, why ?
and filnally my question is that when run batch file open command window.
i want to that not show command window e.g hidden.
how hidden batch file.
|
|
|
|
|
You want to run a batch file using ASP.net. You know that this will always run it on the server, don't you - the open command window you're aiming for will be there for nobody to see...
|
|
|
|
|
Hey guys
currently i need a fucntion to delete file before i could create again. Currently i am using this
string dir = System.Configuration.ConfigurationSettings.AppSettings.Get("dir");
string[] imgList = Directory.GetFiles(dir, "*.*");
foreach (string img in imgList)
{
FileInfo imgInfo = new FileInfo(img);
imgInfo.Delete();
}
However when the file is stil in used this will hit an error
Please advise
Thanks a million bro
KaKaShi HaTaKe
|
|
|
|
|
The windows OS doesn't allow you to do this so the only way I've found to do this is to get a program call moveonboot which will move the file on restart.
Don't think there is a way to do it in code.
Hope this helps.
|
|
|
|
|
You can check to see if the file is locked or not using following code
public bool FileIsLocked(string strFullFileName) {
bool blnReturn = false;
System.IO.FileStream fs;
try {
fs = System.IO.File.Open(strFullFileName, IO.FileMode.OpenOrCreate, IO.FileAccess.Read, IO.FileShare.None);
fs.Close();
}
catch (System.IO.IOException ex) {
blnReturn = true;
}
return blnReturn;
}
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Guys Ive got a problem which I think should be straight forward to solve.
Basically Ive got this application which I am trying to make changes to the c# files.
However the changes are not registering. I can change the ascx files no problem.
My usual method of updating any c# files is to simply edit the page in vwd2005 and then save the file.
Any help or suggestions would be great!
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|