|
I have a password mode textfield and a check box and a button.After giving password in textfield when checkbox is checked i.e. do true then button is enabled.But problem is,then password doesn't exist in textfield.How i can retrieve that password when button is clicked.
|
|
|
|
|
sorry its a default property for the password field......it will automatically clears the values when any event fires....
Padmanabhan
|
|
|
|
|
In the page load event, write the following code,
yourPasswordTextBox.Attributes["value"] = yourPasswordTextBox.Text;
|
|
|
|
|
Hi, I have a grid, which has an ItemTemplate and an EditItemTemplate, my concern is how do I get the controls in the EditItemTemplate, my grid columns looked like this...
<asp:TemplateField HeaderText="Price Type" HeaderStyle-CssClass="first" SortExpression="PriceType"><br />
<ItemTemplate><br />
<asp:Label ID="lbl_pricingtype" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "PriceType[0].PriceTypeDesc[0].Description")%>'<br />
ToolTip='<%# DataBinder.Eval(Container.DataItem, "PriceType[0].PriceType")%>'></asp:Label><br />
</ItemTemplate><br />
<EditItemTemplate><br />
<asp:DropDownList ID="ddl_pricingtype" runat="server" CssClass="first" Width="90px" onchange="ddl_pricingtype_change(this.value)"><br />
<asp:ListItem Text="Please Select" Value="-1"></asp:ListItem><br />
<asp:ListItem Text="0 - Price1" Value="0"></asp:ListItem><br />
<asp:ListItem Text="1 - Price2" Value="1"></asp:ListItem><br />
<asp:ListItem Text="2 - Price3" Value="2"></asp:ListItem><br />
</asp:DropDownList><br />
</EditItemTemplate><br />
<HeaderStyle CssClass="first" /><br />
<ItemStyle CssClass="first" /><br />
</asp:TemplateField>
Now I can get the value from the ItemTemplate label using OnRowEditing event but I can't seem to find the Dropdownlist control to set the selecteditem.
|
|
|
|
|
|
|
there is a sample program in which using EditItemTemplates are given..
Padmanabhan
|
|
|
|
|
thanks dude. twas a great article.
|
|
|
|
|
its my own article.. if u like that then vote for that article...
Padmanabhan
|
|
|
|
|
Hi all,
Since i am using ajax,so to display the messages i am using ScriptManager.RegisterStartupScript. and i am getting messages but the problem is after getting message when i click ok other controls on the page doesn't work.
can any one tell me the solution for it.
Thanks in advance.
|
|
|
|
|
// I am not sure how your code looks like, but i am using like this and it works fine for me.
ClientScript.RegisterStartupScript(this.GetType(), "Open", "OpenPopup('"+ ... +"')");
Padmanabhan
|
|
|
|
|
Is there a global coding standard for asp.net development? What is it called?
|
|
|
|
|
Google[^] not working where you live?
|
|
|
|
|
I guess it isn't. If you know i would appreciate if you could share.
|
|
|
|
|
Could AnyOne Answer To MY Question?
I am using 2 reorderlist Controls.
My Module is by selecting year & State from listbox Dropdownlist, Import the data from database to the table1(Reorderlist1) W.R.To State And Year.I have to move that data to another table2(Reorderlist2).
I have to add checkbox in Table 1 & 2.By selecting Checkboxes i have to move the data from one table to another table using reordering.
QQ) How to add checkbox to the Reorderlist?after adding checkbox what is the nexy step?
Mahitha
|
|
|
|
|
mahichandu wrote: Could AnyOne Answer To MY Question?
The more descriptive your question, the better chance you have, provided someone knows an answer to your question.
mahichandu wrote: I am using 2 reorderlist Controls.
Are you talking about asp.net AJAX reorder control?
mahichandu wrote: My Module is by selecting year & State from listbox Dropdownlist, Import the data from database to the table1(Reorderlist1)
Ok, no issue here, right?
mahichandu wrote: W.R.To State And Year.I have to move that data to another table2(Reorderlist2).
Are you moving the data from table1 to table2? Why can't you load table2 in the first place?
mahichandu wrote: I have to add checkbox in Table 1 & 2.By selecting Checkboxes i have to move the data from one table to another table using reordering.
Are you trying to copy individual items or all at once?
Does this[^] helps?
|
|
|
|
|
Yes am using Ajax XOntrol Reorder List..
and am copying indivisual items from one table to another table.
Could anyone send me the code..
I din't get u load table2 in first place???
after checking records in table 1 to move into table 2 ..in bettween the table am going to add one button.
After selecting records in table 1 by clicking tht button the data should moved to table 2.
** Anyother way to move data?
Mahi
|
|
|
|
|
Hi,
I have a table named "Customers" which has 6 columns with 15 rows. I want to
show all athe records in Gridview using linq quieries. I am using this query
but it is not giving me all the records. How can I show all the records in
Gridview.
var type = (from p in entities.Customers select p)
this.Gridview1.DataSource = type;
this.GridView1.DataBind();
|
|
|
|
|
//use like this
var type = from p in entities.Customers
select p;
this.Gridview1.DataSource = type;
this.GridView1.DataBind();
Padmanabhan
|
|
|
|
|
Hi
I have webservice which retrieves the users data from sql server. If one of the user uploads a doc with a small rectangle in the data retrived from database, my webservice is failing. Could any one please tell me, how can remove those Unicode characters before returning results.
Thanks in advance,
--
http://ashakthi.blogspot.com
http://kids-articles.blogspot.com
|
|
|
|
|
You'll either need to fix the webservice to work fully with unicode or you'll need to convert the string retrieved from the database into an encoding your webservice can work with.
Take a look at the various encoding classes under System.Text.
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
|
|
|
|
|
Hi,
We are migrating an ASP application to ASP.Net 2.0. As It takes long time to develop complete .Net application, We want to add .Net pages what ever we develop into existing ASP application. Here I confused, like how to do it. Do we need to add .net pages to ASP application or ASP pages to .Net application. We are using Master Pages and AJAX controls, update panels in my .Net application, We are using div menu in asp application. I tried to add .net pages to existing asp application, its giving lot of errors like master page not exits and update panel not identified etc.
Please help me in resolving this.
Thanks,
Satheesh M
|
|
|
|
|
You're going to rewrite the entire application, that's about all there is to it. I would start a new project, and then migrate one page at a time. Well, in fact, it would be better to not migrate at all, b/c you will fail to use ASP.NET properly if you're focused on the minutae of each asp page. I'd just plan the whole thing again, as an ASP.NET app, and write it.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Yes, you are rite. But my client wants to go page by page. Yes I started a new project, added one MasterPage and Content page called Statement.aspx. Now I want to add this Statement.aspx to in existing ASP application Menu (Div Menu). I changed the menu link to navigate to Statement.aspx and I copied the Statement.aspx and Statement.aspx.vb files to ASP application directory. It asked me for Master file, than I copied Master page and the required dlls also. Its giving me error "Object reference not set to an instance of an object. " in the statment "Private connString As String = ConfigurationManager.AppSettings("sqlConn").ToString".
Thanks,
Satheesh M
|
|
|
|
|
Your client is an idiot. It's not wrong to politely tell them so.
medasatheesh wrote: "Object reference not set to an instance of an object. " in the statment "Private connString As String = ConfigurationManager.AppSettings("sqlConn").ToString".
you're in way over your depth. Tell your client you have no idea what you're doing, and a complete rewrite is the only way you're likely to cope with this task.
Short version, you cannot just copy aspx files into an asp project, you need the web.config, etc. It still will plain not work, you won't be sharing session data for a start. It's a mess.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|