|
I have a checkboxlist with different items. I have a comma separated values field that I need to bind to this cbl. The cbl is in a detailsview. I know that I need to loop through the dataset rows so each record in the detailsview is bound with the correct information, however I have only figured out how to bind the first row in the dataset for every record in the detailsview. I know I need to loop through the dataset but am not sure how to do it at the same time as looping through the rows in the detailsview. This below function is called onDataBinding. Can anyone assist?
Thanks in advance!
public void FillControls()
{
int intSN = Convert.ToInt32(Request.QueryString["LookUp"].ToString());
Selections db = new Selections();
DataSet ds = db.Services(intSNo);
int iCount = ds.Tables[0].Rows.Count;
if (iCount != 0)
{
if (dvGetMoreData.CurrentMode != DetailsViewMode.Insert)
{
FillMultipleCheckboxesWithValue((CheckBoxList)dvGetMoreData.FindControl("cblSvcs"), ds.Tables[0].Rows[0]["Services"].ToString());
}
}
}
~Candi
|
|
|
|
|
You maybe have better luck in the ASP.NET forum.
|
|
|
|
|
Hello,
I'am strugling with the following. In my .net 2 c# application i'am using the errorprovider to validate my form. On my form there is a tabstrip and all of the tabcontainers have their own controls. Basicly one form has one save button, now my problem is the following when i wan't to validate my form it validates also controls on the other tabpages. I've tried the extende errorprovider from Microsoft nut that one didn't work on usercontrols with valaidationcontrols.
Is there an solution form the problem described above?
Kind regards,
Wilbert
|
|
|
|
|
Hello...
My name is Henry Javier I study Engineering systems...
I need create an application for disabled keyboard and mouse...
please help me, this application is homework...
Excuse me my english is very bad... I speak spanish
thanks
Hola a todos...
Necesito hacer una aplicacion la cual pueda deshabilitar el teclado y el mouse...
ayudenme porfavor es una tarea de mi universidad...
gracias
|
|
|
|
|
If you mean system wide you could use Keyboard/Mouse hooks (google for these and check out www.pinvoke.net) but your users will hate you! I'd seriously reconsider.
If you mean for your application, set e.handled to true for the various events that may be fired???
Dave
|
|
|
|
|
, rew w rt wt w w wtr utw wt wre wer erw trwh sa uaedfu tu t434u44 4wuhutqwu wquqwttwqeut wqututwt
|
|
|
|
|
It's really tough, which algorithm did you use to encrypt?
|
|
|
|
|
|
My ability to google and comprehend things today appears to be not what it should - I've been up since 4am so go easy on me
Anyway, suppose I have a very simple class with a single property:
public string SiteName {
get{return siteName;}
set{siteName = value;}
}
Now SiteName has some very specific format requirements (ie not longer than 12 characters, first 4 chars are alpha only for example). Within the setter I can do some validation with a regex or whatever, and for validating this single property everything is great. It also seems to make sense to me that this is where the validation should take place.
However, it occurs to me that I might want to do a similar kind of validation on another property, perhaps even within in a separate class - or even multiple classes, and could get very messy with the same (or very similar) logic appearing all over the place. This looks to me like an ideal candidate for re-factoring... and this is where my googling has come unstuck!
What I'm really after is an insight on to tried an trusted techniques for validating properties, and also whether my intent is actually going to cause bigger problems than they're worth. I had a quick read about Custom Attributes, but I was not particularly clear on how to hook these up to know when a property is being modified, or how they interact with the property in question...
As always, any help greatly appreciated.
|
|
|
|
|
Martin - take a look at using INotifyPropertyChanged and something like this[^] article.
|
|
|
|
|
From the article: "Take note – in the screens above, the code that triggers the error to be shown is in the business object, not in the GUI. I didn't have to write a single line of GUI code – it's already done by data binding and IDataErrorInfo."
Today's epiphany sorted
|
|
|
|
|
Yup - binding's so cool - and so bloody useful.
|
|
|
|
|
ou install the utility and navigate to any url in CP from where you can post a message, the signature field is automatically filled with one of the quotes from an XML file. All you need to do is to write some quotes in an XML file either manually or using the CodePr
|
|
|
|
|
Hi
I'm working on some kind of html&javascript editor
Now I stopped at point that I cant get over it !!
When I set the script to DocumentText Property of webBrowser control And if the script has an error the webBrowser control would handled the errors internaly and shows a dialog with some text about the error.
How can I get the error with my code and handle it by my self
Thank !
|
|
|
|
|
You might have better luck posting this in either the Web Development or ASP.NET forums.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
Sorry
what I have to do now !
|
|
|
|
|
No worries. The best thing to do is decide which forum you want to post in, create the new post in that forum, and then modify your original post to include a link to the new one.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
|
wsy r4er reyresertre trhh th trtt swr erswtt retr swtrtf rertr reerr sersr r
|
|
|
|
|
|
Hi,
I am trying to publish the web service. I created a new web service in VS2005, by default it has one web method HelloWorld, that returns a string. If I run the web service, and then try to add the web reference from windows application, by using http://localhost:2205/etc... Everything works fine.
Now, If I create a virtual directory in IIS, and then use the Publish Web Service option from VS2005, now by trying even to open the web in the browser gives me the error. This is the path that I put into the browser window: http://my_pc_name/ISS_Virtual_Folder_Name/Service_Name.asmx
Is there something that I am missing?
Thank you!
|
|
|
|
|
Ok Solved the problem.
Just in case if anyone will run into the same thing.
In command line navigate to C:\Windows\Microsoft.NET\Framework\v2.0.50727
and run: aspnet_regiis.exe -i
|
|
|
|
|
public void foo() {...}
public void foo(int x) {...}
public void foo(int x, int y) {...}
...
There has to be a better way...
anyone?
Clive Pottinger
Victoria, BC
|
|
|
|
|
It shows up in intellisense. I suppose the only better way is to put it in the design document.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Well, not only does the current method mean having the same description entered over and over, but it is also prone to errors.
I have a number of these kind of functions where foo() and foo(int x) both end up calling foo(int x, int y). If I make a change to foo(int x, int y) and alter its documentation, I have to make sure that I go back and alter the documentation for the other two - which, sometimes I miss, or do incorrectly.
I was hoping for something more along the lines of
public void foo() {...}
public void foo(int x) {...}
public void foo(int x, int y) {...}
...
Something that would save typing the same function description over and over. And while I'm in pie-in-the-sky-land,
public void goo(int x, int y) {...}
...
Clive Pottinger
Victoria, BC
|
|
|
|