|
Hi I am having a problem in that I have a list box on the form and I have it so that depending on the value from an sql database the colour changes. The thing is I want to show more than one string (currently the data from the same table in the database) on the same line in the list box.
I know that I can concatinate all of the string values I want to from the database and display them as one string but I was wondering if there was a better way in which I can have some sort of structure to show where one value ends and the next starts instead of having random lengthed lines.
regards
gretna
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
|
|
|
|
|
i had an requiremnt for same case, but i have implement it using string concatination.
Gretna wrote: I was wondering if there was a better way in which I can have some sort of structure to show where one value ends and the next starts instead of having random lengthed lines.
you can use Table or GridView
or you use some CutomControl , in code project there is an sample for the same.
cheers,
Abhijit
|
|
|
|
|
Hi I have now moved back to my origianl problem which is the last thing on this screen to do. If i were to use a Gridview is there anyway I can add the data to it from a data reader with out having to bind it to a datasource at the start, and do you know if its possible to change the colour of the text so depending on the value of the row it changes the colour of the text.
Example
Row 1: firstname, lastname in red
Row 2: firstname, lastname in blue
Row 3: firstname, lastname in blue
Row 4: firstname, lastname in red
Row 5: firstname, lastname in green
Thansk for the help so far.
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
|
|
|
|
|
How to send the value of DDL to another form?
The Developer - CEH
|
|
|
|
|
Read this[^]
Seriously, your question doesn't made any sense.
|
|
|
|
|
N a v a n e e t h wrote: doesn't made
The Developer - CEH
|
|
|
|
|
|
I'm using QueryString in the Datagrid so it only can take one value in it. i tried to sedn the value of ddl but it took the string of it. "ddl.selectedvalue"
The Developer - CEH
|
|
|
|
|
You can use several several fields at the same time. Clickety[^]
|
|
|
|
|
you can send ddl value to another page there are lot of ways
you can create session and store value in session
you can send value through querystring
you can create cookie to store value.
try these.
I will do my best?
|
|
|
|
|
AspDotNetUser wrote: you can create cookie to store value.
tell me more about this
The Developer - CEH
|
|
|
|
|
Session["product"] = Convert.ToInt32(ddl_products.SelectedValue);
I will do my best?
|
|
|
|
|
Just two examples:
Save the value as a sessionvariable.
If both forms exist at the same time you can also set a property
|
|
|
|
|
how can i set the property?
The Developer - CEH
|
|
|
|
|
hi
what is wizard control in asp.net using c# i am searching on Google but i did not understand about this control what is this and how use this control. can any one given me one example for this control?
I will do my best?
|
|
|
|
|
I hope you have installed Windows on your machine many a times. The steps you perform while installing is actually a sequence. Whenever you have to perform a sequence of steps a wizard is used.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
thanks for reply.
but how to use in asp.net. can anybody given me one small example for this control.
I will do my best?
|
|
|
|
|
|
thanks its helpful for me to understand. thanks again
I will do my best?
|
|
|
|
|
|
Hi i have converted one vs2003 website into vs2008...,
After that i have add in one of my form script manager and updatepanel...,
But my page is getting postback...,
I dont know whats the probs...,
Plz give me some solution for this...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
i recomend reading some introduction articles to ajax. Dino Esposito has a pretty good book out called "Introducing Microsoft ASP.NET AJAX" that really explains how everything works and needs to be set up. it's given me a bunch of good ideas and i'm only halfway through it. or there's at least a dozen articles on CP and more elsewhere about ajax.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
No i have already implemented updatepanel in one of my application...,
In that its working fine...,
But i dont know this convertion project its giving probs...,
Thats y i asked u guys,
anything i have to add in webconfig or some thing else?,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
if you did the "Convert to Web Application" button in the context menu of the project, you "should" have all necessary web config enteries. if its not firing the update panel, you may need to set the triggers for it, and have a script manager on the page with all ajax controls inside a div tag under it i.e.
<ajax:scriptmanager runat="server" xmlns:ajax="#unknown">
<div>
... your stuff here(can be whole page)
</div>
</ajax:scriptmanager>
the div part took me a few minutes to figure out the first time. and i believe the script manager has to be in a runat=server form, just like any other server control.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi...
This is My eror....here i am sending complete error message.Kindly give me solution OR guide me.
Server Error in '/trialwebsite' Application.
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.]
System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +367
System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +83
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +51
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3837
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Regards,
Pinakin
pbbhatt@gmail.com
|
|
|
|