|
Request.UserHostAddress
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
|
Request.ServerVariables["REMOTE_ADDR"]
|
|
|
|
|
ASP.NET Ajax doesn't support in .NET 1.1.
So, you have to choose other Ajax frameworks.. there are a lot of free ajax framework for ASP.NET 1.1. Check-out the link below if you interest..
Ajax Frameworks and Others.
If you are good at Javascript, you can probably use Prototype Javascript Library.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I have data I want to filter it according to 3 caracters. the problem is that it is in a details view control.
BiG RaLpH
|
|
|
|
|
details view control or data grid control ? From where does your filter criteria come from.
|
|
|
|
|
In the insertitemtemplate in the details view.
in the dropdownlist I can show the items all I need is to filter these items to a 3 char input from the user.
BiG RaLpH
|
|
|
|
|
sir i had applied javasript validattion in our application if client disable javascript on his syatem then all validation are failed .
i want to know how we enable javascript at runtime in asp.net application
thanks
|
|
|
|
|
RegisterClientScriptBlock("validationscript", "function......");
Button1.Attributes.Add("onclick", "validate");
|
|
|
|
|
puspendra napit wrote: lient disable javascript on his syatem
Your client disable Javascript on his/her browser?
It is not possible to change the client's setting from web application. It is for security reason. So, what all you can do is that check whether the Javascript is enabled or disabled for the user's browsers. If it is disabled, you should check the validation from code-behind.
Since Ajax web application are so popular day by day, I don't care about those users who are disable the Javascript in my project. But Yes, the requirement may be varied from project to project....
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
i need to how to disable/Enable Javascript at runtime in asp.net
Thanks in Advance
|
|
|
|
|
As I wrote in previous post, it is not possible to do that...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
puspendra napit wrote: how we enable javascript at runtime in asp.net application
You can not. That would mean intruding into user's personal browser preferences. I would say, you can have a disclaimer or an instruction to the user about required support for JavaScript in the web browser for your application to perform normally without insanity.
|
|
|
|
|
hi , i have to sort rows by drag and drop rows
how to drag and drop rows in grid view or
how ro drag and drop rows in repeater
can any one give me code for this , it will be very help full for me
|
|
|
|
|
column customization feature is not available for gridview.
GV Ramana
|
|
|
|
|
hai all,
i want access sqlserver database using javascript from aspx page......
Thanks and Regards,
vidyasankar N
pain gives gain
|
|
|
|
|
I am no sure how to do that..But do you really wan to do it. Accessing your database from a client side script can impose high security risks.
|
|
|
|
|
|
Hai ,
I implemented paging in datalist,But only with next and previous Buttons.It is working fine.suppose a user wants to go to 10 th page means, he need to click the next button 10 times.He cant directoly reach in page 10.Please help me to solve this problem and i need to display the recors number also...
with regards
and thanks
Bijesh
|
|
|
|
|
You can add a pager template then add a dropdown list box on that template which shows the page number. So every time you select on that dropdown the datalist will cange according to the page number you selected. =p
|
|
|
|
|
Hai
Thanks...I am very new to .net..am using 2003 with .NET 1.1 (C# coding) From where we add pager template.By adding dropdown How datalsist shows the page number???
Bijesh
pain gives gain
|
|
|
|
|
I did the following to fill tha datagrid
1.Through the vb code ,dyanmically add the template column and bound column in my datagrid.
In that template column i add a link button .
2.In the page load call the function to fill the datagrid
3.In datagrid item command event i wrote the code for the link button to redirect to someother page.
4.It's working properly
5.Next I add a button in the page
6.In the button click event i wrote the code to delete the selected items in the grid.
7.It's not working
8. If i write the code in the page load like this,
If Not IsPostBack Then
FillDataGrid()
End If
the button event is working. But link button event is not working.
9..If i simply call the funtion FillDataGrid() in page load means Link button event is working,
but the button event is not working11:18
|
|
|
|
|
i have a problem
i have multiple web pages and when i move from one page to another though the control moves to the other page but when i user this.PreviousPage it gives null value
in some page there is no problm this.PreviousPage gives the previous page
thanx
|
|
|
|
|
are u specified the this in u r current page?
<%@ PreviousPageType VirtualPath="~/PreviousPage.aspx" %>
also u have specify for the button from where u r navigating. other it will gives null
<asp:Button ID="Button1" Runat="server" Text="Submit"<br />
PostBackUrl="NextPage.aspx" />
GV Ramana
|
|
|
|
|
Hi all,
I am using asp.net and C# Visual studio 2005.
Let me explain the scenario. I have stored procedure which return very no of column based on condition. Becoz I have to show columnwise record I used datalist.
And becoz of query return different no of column based on condtion I created template class for design and itembinding at run time .
I manage to create template column() but confuse over how to bind data. As no of column differ at runtime.
Code I used I am attaching it below . if you have better approach please tell me
Please guide me .
1 public class MyTemplate:ITemplate
2 {
3 ListItemType templateType;
4 String para1, para2, para3, para4, para5;
5
6
7 public MyTemplate(System.Web.UI.WebControls.ListItemType type,string parameter1)
8 {
9 templateType = type;
10 para1 = parameter1;
11 }
12
13 //
14 public void InstantiateIn(System.Web.UI.Control container )
15 {
16 PlaceHolder ph = new PlaceHolder();
17 ImageMap imp = new ImageMap();
18 //declaration
19 imp.ID = "img1";
20
21 switch (templateType)
22 {
23 case ListItemType.Header:
24 // ph.Controls.Add(new LiteralControl("<html> <body>"));
25 ph.Controls.Add(new LiteralControl("<table border=\"1\">" ));
26 break;
27 case ListItemType.Item:
28
29 ph.Controls.Add(new LiteralControl("<tr align = left><td align = left >"));
30 ph.Controls.Add(imp);
31 // some code
32 //optional parameter
33 if (!((para1 == "categoryid") || (para1 == "customerid") || (para1 == "retailprice") || (para1 == "subcategory")))
34 {
35 ph.Controls.Add(item5);
36 ph.Controls.Add(new LiteralControl("<br />"));
37
38 }
39
40 ph.Controls.Add(new LiteralControl("</td></tr>"));
41 ph.DataBinding += new EventHandler(Item_DataBinding);
42 break;
43
44 case ListItemType.Footer:
45 ph.Controls.Add(new LiteralControl("</table>"));
46
47 break;
48 }
49 container.Controls.Add(ph);
50 }
51
52
53 // container code end
54
55 static void Item_DataBinding(object sender, System.EventArgs e )
56 {
57 PlaceHolder ph = (PlaceHolder)sender;
58 DataListItem ri = (DataListItem)ph.NamingContainer;
59 //RepeaterItem ri = (RepeaterItem)ph.NamingContainer;
60 string impValue = (string)DataBinder.Eval(ri.DataItem, "photopath1");
61 // item1Value = (Int32)DataBinder.Eval(ri.DataItem, "CategoryID");
62 String item1Value = (String)DataBinder.Eval(ri.DataItem, "Categoryid1");
63 String item2Value = (String)DataBinder.Eval(ri.DataItem, "subcategoryid1");
64 String item3Value = (String)DataBinder.Eval(ri.DataItem, "customerid1");
65 String item4Value = (String ) DataBinder.Eval(ri.DataItem, "retailprice1").ToString() ;
66 ((ImageMap)ph.FindControl("img1")).ImageUrl = impValue;
67 ((Label)ph.FindControl("item1")).Text = item1Value.ToString();
68 ((Label)ph.FindControl("item2")).Text = item2Value.ToString();
69 ((Label)ph.FindControl("item3")).Text = item3Value.ToString();
70 ((Label)ph.FindControl("item4")).Text = item4Value;
71
72
73 }
74
75 }
76
77
}
thanks
imaran khan
|
|
|
|