|
i have a text box, submit button and a gridview in a same page. by using textboxes i want to enter data in gridview. when i enter data using text box and clik on submit button is show successful entry of data. but girdview is not show the new data which i have entered by textbox. when i close that page and reopen it thn it shows the data which i have entered
|
|
|
|
|
Ok,when you submit that data from textboxes then do you call DataBind method of GridView?
This I asked you in my first reply to your question.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
i use wizard not a bind method.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="TransactionTypeID" DataSourceID="SqlDataSource2"
ForeColor="#333333" GridLines="None"
style="top: 492px; left: 323px; position: absolute; height: 133px; width: 407px" AlternatingRowStyle-HorizontalAlign="NotSet">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#E3EAEB" />
<Columns>
<asp:BoundField DataField="TransactionTypeID" HeaderText="Type ID"
InsertVisible="False" ReadOnly="True" SortExpression="TransactionTypeID" />
<asp:BoundField DataField="Transaction" HeaderText="Transaction"
SortExpression="Transaction" />
<asp:BoundField DataField="Description" HeaderText="Description"
SortExpression="Description" />
<asp:BoundField DataField="Category" HeaderText="Category"
SortExpression="Category" />
<asp:BoundField DataField="Active" HeaderText="Active"
SortExpression="Active" />
<asp:CommandField HeaderText="Edit" ShowEditButton="True" />
</Columns>
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#7C6F57" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:Coupon ManagementConnectionString15 %>"
DeleteCommand="DELETE FROM [TransactionType] WHERE [TransactionTypeID] = @original_TransactionTypeID AND [Transaction] = @original_Transaction AND [Description] = @original_Description AND [Category] = @original_Category AND [Active] = @original_Active"
InsertCommand="INSERT INTO [TransactionType] ([Transaction], [Description], [Category], [Active]) VALUES (@Transaction, @Description, @Category, @Active)"
OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT * FROM [TransactionType]"
UpdateCommand="UPDATE [TransactionType] SET [Transaction] = @Transaction, [Description] = @Description, [Category] = @Category, [Active] = @Active WHERE [TransactionTypeID] = @original_TransactionTypeID AND [Transaction] = @original_Transaction AND [Description] = @original_Description AND [Category] = @original_Category AND [Active] = @original_Active">
<DeleteParameters>
<asp:Parameter Name="original_TransactionTypeID" Type="Decimal" />
<asp:Parameter Name="original_Transaction" Type="String" />
<asp:Parameter Name="original_Description" Type="String" />
<asp:Parameter Name="original_Category" Type="String" />
<asp:Parameter Name="original_Active" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Transaction" Type="String" />
<asp:Parameter Name="Description" Type="String" />
<asp:Parameter Name="Category" Type="String" />
<asp:Parameter Name="Active" Type="String" />
<asp:Parameter Name="original_TransactionTypeID" Type="Decimal" />
<asp:Parameter Name="original_Transaction" Type="String" />
<asp:Parameter Name="original_Description" Type="String" />
<asp:Parameter Name="original_Category" Type="String" />
<asp:Parameter Name="original_Active" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="Transaction" Type="String" />
<asp:Parameter Name="Description" Type="String" />
<asp:Parameter Name="Category" Type="String" />
<asp:Parameter Name="Active" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Coupon ManagementConnectionString14 %>"
SelectCommand="SELECT [Description] FROM [CouponTransaction]">
</asp:SqlDataSource>
|
|
|
|
|
hi...to all...
I want to display a wikipedia link on my web page on perticular word(i.e. cancer).how can i do?is there any api is provided by wikipedia or any other way..?.Actually all the contents is coming from database.
My content is not static.it comes from database and it can be contain many number of word which are related to medicine/pharmacy.so using <a> tag it will nt possible.how can i do..?
thnxs in advance.
!- F - R - I - E - N - D - S -!
modified on Monday, July 27, 2009 4:17 AM
|
|
|
|
|
You can use an anchor tag, if you know that the term would be in there. For example, http://en.wikipedia.org/wiki/Google[^][^] is the wiki page for google. I don't know if they offer a webservice, you'd have to look on their site.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
You might want to have a look at this[^].
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
adkalavadia wrote: I want to display a wikipedia link on my web page on perticular word(i.e. cancer).
Why do you think you need API to add a link on wikipedia to your website.
<a href="http://en.wikipedia.org/wiki/Cancer">http:
Add this in your webpage.
|
|
|
|
|
For any word do you need a wiki link ? Are you going to bind it dynamically ? If static anchor tag is enough.
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
ya...i want the term which are relate to medicine.If i have such list of words on which i want such links den is it possible dynamically...?
!- F - R - I - E - N - D - S -!
|
|
|
|
|
|
kiranreddy wrote: i have made a small windows application with (loginpage and some functionality) ASP.NET2.0 and sqlserver 2000
Windows Application using ASP.NET ?
kiranreddy wrote: now i want this project to be run in different system
I guess you have to developed a web site and want to deploy on IIS ? Am I correct ?
|
|
|
|
|
actually i want to make that as a setup file
and install it in other system
|
|
|
|
|
The point is, you said it's a windows app. Is it, or is it an ASP.NET app ? Why do you need an installer ? Have you written a website that a lot of people will deploy to different servers ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
kiranreddy wrote: i want to make that as a setup file
Which Setup file? Is its a Windows Application or Web Application ? Are you looking for ASP.NET Web Setup Project ?
|
|
|
|
|
|
Then what the hell are you doing in the ASP.NET forum ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Are you asking for a windows application with a WebBrowser control in it?
this is weird. If it is so, then also this is not the correct place for you. This is an ASP.NET Forum
|
|
|
|
|
Hi to all,
How to convert bytes to file???
Thanks,
krishna.
|
|
|
|
|
Try
public bool writeByteArrayToFile(byte[] buff, string fileName)
{
bool response = false;
try
{
FileStream fs = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(buff);
bw.Close();
response = true;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return response;
}
|
|
|
|
|
thanks Aman Bhullar
|
|
|
|
|
hi sir,
i want to know the keypress event in web application with the language c# for a textbox.textbox should have only integer value.send me javascript also if there is any use of javascript.
|
|
|
|
|
You can write onkeypress event in javascript.And in that you have to check keycodes of numbers.
Life Is Beautifull
|
|
|
|
|
sir i want that code please
|
|
|
|
|
write this code in page load
txt.Attributes.Add("onkeypress", "javascript:return DecimalLength(Event)");
and in page source:-
function DecimalLength(e)
{
var KeyChar = (e.which) ? e.which : e.keyCode;
if(KeyChar > 57 && KeyChar < 48)
{
if(window.event)
e.returnValue = false;
else
e.preventDefault();
}
}
//Check keycode for numbers.
Hope this will help you...........
Life Is Beautiful
|
|
|
|