|
I do not want all page to be reloaded when a button clicked...
Only the necessary part will be reloaded.
I though Ajax, but the datalist paging requires whole page reload.
|
|
|
|
|
If you use properly UpdatePanel then it wont load all page.
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.
www.aktualiteti.com
|
|
|
|
|
there is a panel which holds page numbers in it. The page numbers are filled during page-pre_init so it is reloaded.
here is the html code
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Aşçılar</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="centrallarge">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<h1><img src="images\digersayfa.jpg" alt="photo" /></h1>
<div id="central" style="Width:900px">
<div id="leftsub" style="Width:250px; height:200px">
<h1 style="height:200px">
<asp:Image ID="Image1" runat="server" Height="130px" Width="130px"
BorderColor="White" BorderStyle="None" BorderWidth="10px" />
</h1>
<p>
<asp:Label ID="lblAd" runat="server" Text="" Font-Names="Tahoma" Font-Size="Small" ForeColor="Red" ></asp:Label>
<br />
<asp:Label ID="lblAdres" runat="server" Text="" Font-Names="Tahoma" Font-Size="Small" ForeColor="Red"></asp:Label>
</p>
</div>
<div id="rightsub" style="Width:600px; font-family:Tahoma; font-size:small; color:Red;" >
<asp:ImageButton ID="ImageButton1" ImageUrl="images\icons\delete.png" runat="server"/> Seçili Menüleri Sil
<br style="height:2px"/>
<img src="images\menu.gif" alt="photo" style="margin-top:5px"/>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DataList ID="dlListe" runat="server" RepeatColumns="4"
RepeatDirection="Horizontal" ItemStyle-Font-Names="Tahoma"
ItemStyle-Font-Size="Small" ForeColor="Red"
ItemStyle-HorizontalAlign="Left" Height="450px" ShowFooter="true"
>
<ItemTemplate>
<asp:Image ID="Image1" ImageUrl= <%#DataBinder.Eval(Container.DataItem, "Menu_Image")%> runat="server"
Height="70px" Width="100px" BorderColor="White" BorderWidth="5px" />
<br />
<asp:CheckBox ID="CheckBox1" runat="server" />
<%# DataBinder.Eval(Container.DataItem, "Menu_Adi")%>
<br /> Fiyat:
<%# DataBinder.Eval(Container.DataItem, "Fiyat")%> TL
</ItemTemplate>
<AlternatingItemStyle HorizontalAlign="Left"/>
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Font-Names="Tahoma"></ItemStyle>
</asp:DataList>
<asp:Panel ID="pnlBottom" runat="server"> </asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div id="footersub">
<ul>
<li><a href="Default.aspx">Anasayfa</a></li>
</ul>
</div>
</div>
</div>
</form>
</body>
</html>
|
|
|
|
|
|
hai every body !!!
i got a small doubt . how can i insert dummy data into gridview manually not bind from database.
try and try untill reach success..
|
|
|
|
|
With code. Why do you want to do that ?
Any collection is a valid data source for a grid view.
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.
|
|
|
|
|
Actually i m doing designing part i need to show my form with data to my boss
try and try untill reach success..
|
|
|
|
|
Your best bet is to put dummy data in your DB, so you can show him the actual working code, not write code just for the sake of showing him a demo
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.
|
|
|
|
|
the thing is i m not creating my db at this moment .. just i need look and field ..
try and try untill reach success..
|
|
|
|
|
Then create a struct, and a list of that struct, and bind to that
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.
|
|
|
|
|
ok thanks. dude.
try and try untill reach success..
|
|
|
|
|
Actually the thing is . ineed dummy data bcos of i took one gridview and i declare boundfield names and i put autogenerationcolunm =False , so when i m going compile in browser the gridview not showns rest of thiing ll be appears.
try and try untill reach success..
|
|
|
|
|
Add BoundFields on GridView.
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.
www.aktualiteti.com
|
|
|
|
|
Create DataTable with rows and Column in code behind.
then Bind it to GridView.
|
|
|
|
|
Christian Graus wrote: Then create a struct, and a list of that struct, and bind to that
I would've used an xml doc. Not because it's better than your solution, but just because it's the way I think.
' mypath is derived from something like Server.MapPath("App_Data\XMLFile1.xml")
Public Function GetXMLTable(ByVal mypath As String) As DataTable
Dim myDS As DataSet = New DataSet()
Try
myDS.ReadXml(mypath)
Catch ex As Exception
dim exc as Exception = new Exception("Cannot read file " + mypath + " in GetXMLTable. " + ex.Message)
Throw exc
End Try
Return myDS.Tables(0)
End Function
modified on Wednesday, August 5, 2009 11:00 AM
|
|
|
|
|
Hi every body
i am trying to use mail in my form i have a form name as order form i am taking all the values from the form and i create body of the mail i add from,to,and subject and body to the mail but when i try to send the mail i got some error and i make changes in web.config file also please any one can tell me what are the exact field i have to use in web.config file i will show you what i write in config file
<system.net>
<mailSettings>
<smtp from="">
<network host="" port="3535" userName="" password="" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
please tell me what i have to write in from=
and in host=
i am very much confused with this please help me its very urgent
|
|
|
|
|
mdazeemuddin wrote: please help me its very urgent
No, it's really not. We are glad to help you, but your inability to do your job, is not urgent to us at all.
mdazeemuddin wrote: please tell me what i have to write in from=
and in host=
You need to configure this code so that it has a mail server to connect to. I didn't know you could configure this in your web config, I've just written my own code in the past, but the end result is the same. You need a mail server to send mail, and it needs to be visible to your machine for testing, and your server for running live
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.
|
|
|
|
|
thanks for your support
which is the mail server i don't and from were i can get this mail server
and i am very new to .net i didn't did this before this is my first time
|
|
|
|
|
Hi all,
How to validate the date using JS. For ex, Im giving 02/30/1983 as input.It shows server error because Feb doesnt contain 30 days.Please help me to validate this sort of error.
|
|
|
|
|
|
You can use a Compare Validator.Please check Type and Operator Properties.
Otherwise you can use a CustomValidator.
|
|
|
|
|
Hello,
I have a web application hosted on local machine. Ex: http://localhost/xyz.aspx
We have login page which prompts for user id and password. Once the user is validated, enters into another page. On all other pages, the user name gets displayed.
Can we determine is there any session for the website is running or not? if we can find it, we want to stop multiple users from logging in from the same system.
Please give me any ideas on this.
Thank you,
Raheem MA
|
|
|
|
|
You're going about it wrong. Store a list of logged in users on the application level and check it when a user tries to log in. Add a time stamp for the last access, so you can time out users who didn't explicityl log out.
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.
|
|
|
|
|
Thank you all for quick response,
The website is already in production. The user name gets displayed on all the pages once the login successful.
Suppose user A logged in and USER A is getting displayed on the next page.
In another browser window user B logged in and USER B is getting displayed on the next page.
Now, if you go th browser A, and do refresh the page, then USER B will be displayed on the page. this is the issue currently we have.
How to overcome this? Please give me ideas
Thank you,
Raheem MA
|
|
|
|
|
shah_tech wrote: How to overcome this? Please give me ideas
You have been given two ideas. Obviously, if you've released the product, you are going to have to change it to overcome this bug.
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.
|
|
|
|