|
Datalist? Repeater? Just a bunch of textboxes. It really depends on what you want to show and how you want to show it... You can bind your data to just about anything.
|
|
|
|
|
hi,
I am working on asp.net appluication and i want pass value frm one
page to anotheter.
pl's help for the same;)
|
|
|
|
|
You have different approches
1. Use of Sessions variables.
2. Query String (Get or Post).
3. Application Variables.
4. Caching
Take a dession with your tech lead, as per your application.
Chinna Srihari
Tech Lead,Capgemini
|
|
|
|
|
Thanks a lot...................
|
|
|
|
|
How can i get Session.SessionID() on this event
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) in global asax.
Regards
rajesh
|
|
|
|
|
If the session is created, you can access it through HttpContext.Current.Sesssion.
The BeginRequest event is the first event to be raised for a request. It's possible that the session is not identified or created at this stage.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for help.
i have tried to write code in BeginRequest event
Dim str2 = System.Web.HttpContext.Current.Session.SessionID()
then i got this message
Object reference not set to an instance of an object.
Is there any way to get sessionid in BeginRequest event .
Regards
rajesh
|
|
|
|
|
As someone pointed out, the sessin may not be created. Alternately, you can check whether the session is created before trying to access it.
Try the Session_OnStart event instead if applicable.
Shreekar
|
|
|
|
|
Hi everyone,
I have an existing ASP.net application, there is no process flow diagram for the application, now I need to create a process flow diagram for this application. Is there any free available tool that can create a process flow diagram for the asp.net application. Your help will be highly appreciated.
Many Thanks.
happy coding!
|
|
|
|
|
Hi All,
I am new to this payment processing ways. Please send me some link or example code to understand how to work with payment gateway .
Thanx in Advance
|
|
|
|
|
|
I am developing a web application in ASp.net, for that I want the
number of hits on the site.
pl'z help me
|
|
|
|
|
Hi yuvraj
Well to count number of hits. What you can do is that you can increment a counter in global.asax's
protected void Session_Start(Object sender, EventArgs e)
{
i++;
}
this will give the number of hits on ur site
Rizwan Afsar
Associate Member, Technical Team
IAP Company Ltd, Gurgaon
INDIA
www.iap-online.com
"A winner is not the one who never fails,
But one who NEVER QUITS"
Hope this help's you
|
|
|
|
|
Thanks a lottttttttttttttttt;)
|
|
|
|
|
Visit this link. I think this link will help u
http://www.stardeveloper.com/articles/display.html?article=2002102501
Regard
rajesh
|
|
|
|
|
Sir,
I got it by incrementing the counter in global.asax.
But how to pass it to homepage or webpage.
|
|
|
|
|
keep that variable in session object
ex Session["Counter"]=i.ToString();
Rizwan Afsar
Associate Member, Technical Team
IAP Company Ltd, Gurgaon
INDIA
www.iap-online.com
"A winner is not the one who never fails,
But one who NEVER QUITS"
|
|
|
|
|
In Global.asax file write the following code
Application["counter"]=0
Now write the code on the form load
Application["counter"]= (int)Application["counter"] + 1
Label1.text = "You are visitor no = " + Application["counter"]
Enjoy
|
|
|
|
|
Hi all
Can any one please tell me the Error on this Iam unable to find it
CODE :
--------
TextBox1.Attributes.Add("onmouseover", "Form1.TextBox1.value = 'OK',Form1.submit()")
---------
when mouseover on the textbox
The page is submiting no.of times
But i want submit only ones
How can i give only 1 Form1.submit on mouseover
THX
Keerthi
|
|
|
|
|
TextBox1.Attributes.Add("onmouseover", "Form1.TextBox1.value = 'OK',Form1.submit()")
write a function in javascript at client side for Form1.TextBox1.value = 'OK',Form1.submit()" and call that function with Attributes.Add
for example, let assume that ur javascript name is 'xyz' and call this from serverside like
TextBox1.Attributes.Add("onmouseover", "xyz()")
Thanks
Bhasker P
|
|
|
|
|
i want calculate page by page the sum of records that are in datagrid
how can i do this.(i want calculate the sum of each page in end of page in datagrid)
|
|
|
|
|
Dim count as int
count = (current page index - 1) * (Number of records per page) + (Number of records current page)
Hope this helps
Chinna Srihari
Tech Lead, Capgemini
|
|
|
|
|
excuse me : what is count???
|
|
|
|
|
Count is to hold the no of recs up to the current viewing page.
suppose we have 10 pages in the drid and 5 recs per page.
And i am in the 6 th page so
Count = (6-1) * 5 + corrent page records
|
|
|
|
|
Just wondering if anyone can shed some light on the following:
Been coding in ASP.NET 2.0 for a few months now and I like it although
combining it with a 3 teir OO system can be annoying at times as the
amount of online help is minimal.
I have an issue with an objectdatasource and how to use a milti select
listbox as a control parameter.
<asp:listbox id="lstKeywords" selectionmode="Multiple" runat="server"></asp:listbox>
<asp:objectdatasource id="odsSearch" runat="server"
typename="Business.BLL.learningObject" selectmethod="SearchLearningObjectsWrapper">
<!-- Note that the following parameter may be wrong I just put one here to try and explain -->
<selectparameters>
<asp:controlparameter controlid="lstKeywords" defaultvalue=""
name="sKeywords" propertyname="SelectedValue" type="String" />
</selectparameters>
</asp:objectdatasource>
The <asp:controlparameter controlid="lstKeywords" only takes
SelectedValue not "selected valueS".
I want to be able to select more than 1 item from my listbox then pass
this ideally as List<items> to my business layer.
Even if I have to pass a string array this would be ok.
I even tried writing a custom parameter but could not get it to work.
Thanks
Russ
|
|
|
|