|
Unfortunately it's not .NET, just classic ASP.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Sometimes debugging web applications may drive you nuts. I have seen so many issues in development machines. When ever I change cookies settings, I wipe clean from the client machines and start clean. While this have no merit, I would also delete the cache and start clean.
For added benefit, if you are using IE developer toolbar, you can wipe cookies only for a given server from the "cache" menu.
Yusuf
|
|
|
|
|
|
grr, youve been told about this already.
How is anyone supposed to make sense of that jargon you have put above
|
|
|
|
|
Hi,
If I would like to retrive the article from the database and display in - using asp.net like the link below
http://www.asp.net/
Or put some bullet that I create, how can I do that?
Thanks.
Regards,
Katelva
|
|
|
|
|
From your message above I can derive that you want the following:
1. Display an article which is stored in a database
(Dont store the actual article in the database, store the address for it and then just retrieve that as you would do with a normal field.)
2. Create a bullet point list for which the articles display in
(This is easy just write a loop to loop all articles in your database which match todays date and then in the loop put <li> and then the field name)
|
|
|
|
|
i am developing a web based application
where i use
i want to pass textbox ID which is in a grid view to the java script.
how it can be possible
Sourav ghosh
|
|
|
|
|
Don't repost.
Check Ignore HTML tags check box to post HTML code
please don't forget to vote on the post that helped you.
|
|
|
|
|
Would you not just use var myValue = document.getElementbyID('mytextBox').value;
|
|
|
|
|
No, because a GridView is a NamingContainer so will give a UniqueID to your textbox.
|
|
|
|
|
Yeah forgot about that, he would have to find the control within the gridview.
|
|
|
|
|
<asp:GridView id="GridView1" runat="server" Font-Size="X-Small" ForeColor="#333333" Width="802px" AllowPaging="True" GridLines="None" CellPadding="4" ShowFooter="false" AutoGenerateColumns="False" CssClass="grid-view" OnDataBound="GridView1_DataBound">
<EmptyDataTemplate>
<asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" Text="No Data Found"></asp:Label>
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="ORDER_NO" HeaderText="ORD_NO" ></asp:BoundField>
<asp:BoundField DataField="ITEM_NO" HeaderText="ITEM_NO" ></asp:BoundField>
<asp:BoundField DataField="BALTONS" HeaderText="BALTONS" ></asp:BoundField>
<asp:BoundField DataField="ORDDATE" HeaderText="ORDDATE" ></asp:BoundField>
<asp:BoundField DataField="DUEDATE" HeaderText="DUEDATE" ></asp:BoundField>
<asp:BoundField DataField="MATNR" HeaderText="MAT_NO" ></asp:BoundField>
<asp:BoundField DataField="DESCRIPTION" HeaderText="MAT_DESCP"><HeaderStyle Width="5000px" /><ItemStyle Width="5000px" /></asp:BoundField>
<asp:TemplateField HeaderText="PLANQTY">
<ItemTemplate>
<asp:TextBox ID="txtplanqty" runat="server" BackColor="#ffffcc" OnTextChanged="txtplanqty_TextChanged" AutoPostBack="true" Font-Size="x-Small" Text='<%# Eval("PLAN_QTY") %>' Width="70px"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TRGT_PRD">
<ItemTemplate>
<asp:TextBox ID="txttrgtprd" runat="server" Font-Size="X-Small" onfocus="getdata(this)" OnTextChanged="txttrgtprd_TextChanged" BackColor="#ffffcc" Width="70px" Text='<%# Eval("TRGT_PRD") %>' AutoPostBack="true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<script language="javascript">
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
</script>
it is my code.plz help me
sourav ghosh
|
|
|
|
|
<asp:textbox id="txttrgtprd" runat="server" font-size="X-Small" onfocus="getdata(this)" ontextchanged="txttrgtprd_TextChanged" backcolor="#ffffcc" width="70px" text="<%# Eval("TRGT_PRD") %>" autopostback="true" xmlns:asp="#unknown"></asp:textbox>
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
note in the above snippet that you are passing a reference to the textbox (this) to the javascript method, hence you dont need the getElementById at all - you already have a reference to the element.
therefore, your javascript method can simply be
function getdata(obj)
{
obj.value='0';
}
or your textbox's onfocus could simply be:
onfocus="this.value='0';"
|
|
|
|
|
Please give more info about what you are trying to achieve, as often you dont even need the ID of the textbox. If you do, a textbox has a UniqueID property which you can use from Javascript
|
|
|
|
|
<pre>
<asp:GridView id="GridView1" runat="server" Font-Size="X-Small" ForeColor="#333333" Width="802px" AllowPaging="True" GridLines="None" CellPadding="4" ShowFooter="false" AutoGenerateColumns="False" CssClass="grid-view" OnDataBound="GridView1_DataBound">
<EmptyDataTemplate>
<asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" Text="No Data Found"></asp:Label>
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="ORDER_NO" HeaderText="ORD_NO" ></asp:BoundField>
<asp:BoundField DataField="ITEM_NO" HeaderText="ITEM_NO" ></asp:BoundField>
<asp:BoundField DataField="BALTONS" HeaderText="BALTONS" ></asp:BoundField>
<asp:BoundField DataField="ORDDATE" HeaderText="ORDDATE" ></asp:BoundField>
<asp:BoundField DataField="DUEDATE" HeaderText="DUEDATE" ></asp:BoundField>
<asp:BoundField DataField="MATNR" HeaderText="MAT_NO" ></asp:BoundField>
<asp:BoundField DataField="DESCRIPTION" HeaderText="MAT_DESCP"><HeaderStyle Width="5000px" /><ItemStyle Width="5000px" /></asp:BoundField>
<asp:TemplateField HeaderText="PLANQTY">
<ItemTemplate>
<asp:TextBox ID="txtplanqty" runat="server" BackColor="#ffffcc" OnTextChanged="txtplanqty_TextChanged" AutoPostBack="true" Font-Size="x-Small" Text='<%# Eval("PLAN_QTY") %>' Width="70px"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TRGT_PRD">
<ItemTemplate>
<asp:TextBox ID="txttrgtprd" runat="server" Font-Size="X-Small" onfocus="getdata(this)" OnTextChanged="txttrgtprd_TextChanged" BackColor="#ffffcc" Width="70px" Text='<%# Eval("TRGT_PRD") %>' AutoPostBack="true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<script language="javascript">
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
</script>
it is my code & i want to pass the ID="txttrgtprd" to the getdata() function
thanks & Regards
Sourav Ghosh
|
|
|
|
|
Please send me source code for integrating ExpressCheckout API or any help
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
We cant just send source code to you, we are trying to help you not do the work for you.
Try searching google for some code and then come back here when you are struggling to implement it.
|
|
|
|
|
i am developing a web based application
where i use
<asp:gridview id="GridView1" runat="server" xmlns:asp="#unknown">
<column><asp:templatefield>
<itemtemplate>
function getdata(obj)
{
var txt = document.getElementById(obj);
txt.value='0';
}
i want to pass textbox ID which is in a grid view to the java script.
how it can be possible
Thanks & Regards
Sourav Ghosh
|
|
|
|
|
generally text box is used to edit item in edit mode..
so find that text box in row editing
now attach txtboxid.attribute.add("onkeypress","return getdate(this);");
i think this will help u....
|
|
|
|
|
I had a problem with my User Control write by VB Code
when i apply this control to my Web form and try to set the focus. i get a error Message "cbCustomerID is NULL or not an Object"
here this some of the Web Form code:
ASPX:
<![CDATA[<%@ Page Language="vb" codebehind="InvoiceHeaderDetail.aspx.vb" autoeventwireup="false" Inherits="EnterpriseASP.InvoiceHeaderDetail" ><br />
<%@ Register TagPrefix="cc1" Namespace="EnterpriseASP" Assembly="PopupControl" %>]]>
<cc1:popupcontrol id="cbCustomerID1" tabindex="6" runat="server" cssclass="fieldeditor" width="80%" autopostback="True" targeturl="../../EnterpriseASPAR/CustomerInformation/CustomerInformationLookup.aspx" xmlns:cc1="#unknown"></cc1:popupcontrol>
VB Code Behind:
RegisterStartupScript("focus", "<script language="" javascript="">" & vbCrLf & _<br />
vbTab & "document.all." & cbCustomerID1.ClientID & ".focus();" & _<br />
vbCrLf & "<" & "/script>")</script>
anybody has any idea why this happening and how to resolve?
modified on Wednesday, July 30, 2008 3:05 AM
|
|
|
|
|
Please help me to resolve. if required any addtional info please tell me. thank you in advance
|
|
|
|
|
Hi,
I m trying to use http://www.dimebrain.com/2007/07/a-dual-slider-f.html[^]
dual slider control in asp.net c# project.
When I add this control to my project it replaces the previous dll of ajax that I have installed.So i m not able to use the default ajax controls.
any suggestion how I can use both of them together??
Vijay V.
Yash Softech
|
|
|
|
|
hai all,
i am using .net 2005.i do my project in asp.net webapplication.
i write the connection named as "connstring_card" in web.config using xml.
i done the following code in web.config using xml.
<appSettings>
<add key="connstring_card" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Kantech\Server_SE\Data;Extended Properties=Paradox 5.x;"/>
</appSettings>
then i access that connection named as "connstring_card" in c# coding side from web.config.
The following code done in c# coding side.
string conn = ConfigurationSettings.AppSettings["connstring_card"];
con = new OleDbConnection(conn);
con.Open();
com = new OleDbCommand("select CardInfo1 from Card where State=1", con);
dr = com.ExecuteReader();
the error "External table is not in the expected format." are showed in the line dr=com.executereader().
how to solve this?
|
|
|
|
|
sathyan_8294 wrote: the error "External table is not in the expected format." are showed in the line dr=com.executereader().
how to solve this?
Search in google with error text "External table is not in the expected format". You will give reason why this error cause.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Everybody want code or perfect solution.Nobody wants to try yourself.
Dude I have searched in google and I have found a lots of reason thats why I told you to search in google.You needn't to avoid this answer.
Believe me if you search in google you can solve this problem in a minute.
please don't forget to vote on the post that helped you.
|
|
|
|