|
Just a guess but it sounds like you may be missing the user control assembly on the live server? Maybe try searcing for that dll on the live box and see if it is there. If it is then, post some code so we can have a look.
|
|
|
|
|
I have a drop down list in my asp page. when I selectg an irem and click on a button it appears in the Grid view. But when I again come to the same page and click on the same item from Drop down list it and click on button it again add the same item onin the Grid view. So I need some validatiobn that if this item appears in Grid view Don't add in the Grid view. I can use customValidation control. But I don't know how to use it.
seema
|
|
|
|
|
You can aslo accomplish it by clearing DropDownlist item Before adding new Item.
Call this dd.Items.Clear(); Before adding new Item.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi All,
I have a Gridview in my asp page. In first bound column I have Id field. I want this column to be invisible in Gridview but when I selecyt the row i should be able to get the value of that cell. I set the Column property Visible = False. and in my code behind page
GridViewRow grow = gdProxy.Rows[gdProxy.EditIndex];
int proxyId = Convert.ToInt32(grow.Cells[0].Text);
But it doesn't work but if I set Visible + true It works. But I don't want this column to be visible in my grid view but want to get the value of cell.
seema
|
|
|
|
|
They changed this in .net 2.0 so that the data in an invisible column is not accessible. What are you trying to do with the id? You can put it in the commandarugment property if you want to use it in a command button. Or use the DataFormatField and DataFormatString in a hyperlink column.
|
|
|
|
|
remove the column for id from the GridView and set the DataKeys property to "id".
Then you can access the id with gridview.DataKeys[someIndex].Value
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hi,
I have currently defined this control like:
<asp:LoginStatus ID="lsCE" runat="server"/>
When I click on the logout link I want it to go to my Default.aspx page in my root directory. How and where do I indicate this?
Regards
|
|
|
|
|
Bind an event to the LoggedOut event and do a Response.Redirect.
|
|
|
|
|
Hi friends
can any one help me for getting out of Iframe
in one aspx page i am having iframe
Iframe i am showing some third party url so that i can manage my session
upto this it work fine
my problem is
from this each url shows in Iframe
how can i get out from Iframe
thanks
|
|
|
|
|
It's not exactly clear what you are asking, but if you need code to break a page out of being iframed use this little bit of javascript on the page in the frame:
<SCRIPT type=text/javascript>if (top.location != location) { top.location.href = document.location.href;}</SCRIPT>
Hope that helps.
|
|
|
|
|
System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Decimal.Parse(String s, IFormatProvider provider) at System.Convert.ToDecimal(String value) at test.Button1_Click(Object sender, EventArgs e) in e:\MyProject\DOTNET2005\HR2005\test.aspx.cs:line 30
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
FormatException in System.Convert.ToDecimal(String value) means:
value does not consist of an optional sign followed by a sequence of digits (zero through nine) and an optional decimal point symbol.
Check if:
- the String to convert has no invalid chars (letters etc.)
- the String has the right delimiter for the used local settings (you can set the Culture with Convert.ToDecimal Method (String, IFormatProvider) ).
Maybe just put the string before converting to the trace so you can see the value used (or set a breakpoint).
Hope that helps
Roland
|
|
|
|
|
hi,
Thank you for your reply
I detetct the problem.
It was,in default my machine support "," instead of "." in decimal values.
How can i slove it???
i upgraded asp.net1.0 application to asp.net2.0.
In my applcation I am using convert.toDecimal function in numerous place.
how i solve it??
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
string a = "12.85";
decimal da = System.Convert.ToDecimal(a, System.Globalization.CultureInfo.InvariantCulture);
string b = "12,85";
decimal db = System.Convert.ToDecimal(b, new System.Globalization.CultureInfo("de-DE"));
hope that helps
Roland
|
|
|
|
|
I have a dropdown list control on my index.aspx. This index.aspx page includes a reference to a custom control (basically a modified gridview) contained within a separate ascx page.
My problem is I need the value from this dropdown list to be passed to the ascx page. This customized gridview needs to query the database based on the value within the dropdown list.
So how can I pass a value from the main page to my custom control on the ascx page?
Thanks.
-Goalie35
|
|
|
|
|
Define a property in your customControl.
Set the value for that property in your index.aspx page (from the drop down list)
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Hi all!
Sorry for my bad english!
I have one problem.
Now I working with WebInstall project which must install Web-service.
In time when my Web-service is install, installer must write to webConfig some information.
For that I need get physical patch to my IIS folder "http:\localhost\" for eg. C:\Inetpub\wwwroot\., but I don't know how I can do it!
If somebody knows how do this, please help me!
With Best regards!
Zvonimir!
|
|
|
|
|
|
I have a treeView and based on the Node Selected I populate a grid. I have my asyncPostback set to Collaspe and Expand events. The code fires Correctly but the JavaScript attached to the Node doesn't fire. Is there a way around this with out having it post completely back?
|
|
|
|
|
Hi All
I would like to Locked UserID (if user put 3 times worng password). I dont want to use ASP.NET 2.0 Role Management. I have a Table in sql server 2005 which will be collect UserID who put wrong password 3 times. Also how will I know the IP address.
Very Urgent
Thanks
Sarfarj Ahmed
|
|
|
|
|
How about adding a flag in your database table that shows if user has been locked or not and also a counter that shows users attempt to get in successfully.
|
|
|
|
|
how will I know the IP address.
Request.UserHostAddress;
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
i want to make "cascade treeview checkboxes" in other words when the checkbox of parent node checked, checkboxes of child nodes checked also
i tried "TreeNodeCheckChanged" event but this event don't make post back just see the checked nodes between postbacks
sorry for elongation
thanks in advance
Regards,
haitham
|
|
|
|
|
hi,
how can we check the input is decimal or not????
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|