|
|
I needed something in the elaborative manner and i am not able to understand all the functions. So pls send me some practical examples that where and how it is used.
|
|
|
|
|
Perhaps you need to advertise for a tutor on the job board then ?
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.
|
|
|
|
|
Google Analytics actually captures informations about the visitors of the page and sends the data to the analytics server. The server then analyses each visitor and gives you a complete report based on where the user is most hitting, which area is getting most of attraction etc.
This is a very handy service for commercial web sites. Many of websites uses this feature. If you need all information regarding this please refer :
http://code.google.com/apis/analytics/docs/concepts/gaConceptsOverview.html[^]
and
http://www.google.com/analytics/[^]
Hope this will clear your idea.
|
|
|
|
|
pls can you send some website addresses which are using these services?
|
|
|
|
|
|
I'm using Multiple Dropdown list in my website... When country dropdownlist is selected, the appropriate states are loaded, When state dropdownlist is selected, the city will be loaded..... Now, the problem is I cannot able to assign selecteditem for states and city.... Country is loaded at the pageload event... States and cities are loaded dynamically, when selecting the country... How to assign selecteditem for states and city??
|
|
|
|
|
1 - Make sure to load the country list with check not post back like
Page_Load event...........()
{
If( !IsPostBack )
{
Load Country list
}
}
2- In Country drowdown event SelectedIndexChanged
Load the State list
3 - In State dropdown event SelectedIndexChanged
Load the City list
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
S.... Country is in postback only. It is also loading the relevant states and cities..
"liststates.Text=myvalue"
Even, this statement also showing correctly.. But the selectedtext is not changing
|
|
|
|
|
Shalini_U wrote: "liststates.Text=myvalue"
Whats the purpose of doing this?While selecting country drop down just fill the state dropdown and so on.
|
|
|
|
|
The country,state and city are already stored in a database for each user.
When the user opens his profile, the state he selected should appear in the text of dropdownlist in page load event
|
|
|
|
|
Fill Country DropDown make selected item as saved country.Fill State by that country id, make selected item as saved state and so on.Whats the difficulty for doing that?
|
|
|
|
|
How you are making the selected value?Can you plz post some snippet?
|
|
|
|
|
Hello Friends,
I've to increase the size of the webpage as one click on + link as shown in the url given http://www.postbank.de/[^]
|
|
|
|
|
You will need to assign a different Css class on the click of it. This Css will have a bigger font size. This is the simpest solution you can have.
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.
|
|
|
|
|
Create CSS classes like
.fs12
{
font-size : 12px;
...
}
.fs14
{
font-size : 14px;
...
}
Now when you load apply one default settings. And use javascript to change the class of each.
|
|
|
|
|
Hi Everyone,
I've setup a simple shopping application and have created a shopping cart using a session DataTable. I've added a delete button column to my grid and then supplied code to remove the indexed row when someone clicks the button. What's weird, is I keep receiving an error indicating that the selected row index does not exist! when I place a debug on my code, it appears as though the logic is working correctly, but right after the row is deleted, it fires the page_onload event, works through all that logic (which reloads the new updated datatable), and then tries to delete the row again.
Here's my page_onLoad:
protected void Page_Load(object sender, EventArgs e)
{
double est_ship = 100.00;
try
{
DataTable dt1 = (DataTable)Session["myCart"];
if (dt1.Rows.Count > 0)
{
itemsGrid.DataSource = dt1;
itemsGrid.DataBind();
double subt = 0.0;
foreach (System.Data.DataRow row in dt1.Rows)
{
subt += Convert.ToDouble(row["LineTotal"]);
}
double tax = (subt * 0.06);
sub_total_lbl.Text = subt.ToString("c");
tax_lbl.Text = tax.ToString("c");
est_ship_lbl.Text = est_ship.ToString("c");
total_lbl.Text = (subt + tax + est_ship).ToString("c");
make_order_btn.Enabled = true;
}
else
{
emptyCart();
}
}
catch (NullReferenceException)
{
emptyCart();
}
the emptyCart method simply set's the various labels on the page to indicate there's no items in the cart.
and here's the row_deleting event:
protected void itemsGrid_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
DataTable dt1 = (DataTable)Session["myCart"];
dt1.Rows.Remove(dt1.Rows[e.RowIndex]);
}
I've been looking at the asp.net page lifecycle diagrams, but from what I've seen there it doesn't explain why the row_deleting event is being executed twice. Could it be a control issue?
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
|
|
|
|
|
Ok... did you put your OnRowDeleting="GridView1_RowDeleting" attribute in your ASPX and also register the event with
GridView1.RowDeleting+=new GridViewDeleteEventHandler(GridView1_RowDeleting);
??
That would fire it twice...
I guess.
var question = (_2b || !(_2b));
|
|
|
|
|
No, I only have it listed in the aspx attribute OnRowDeleting="GridView1_RowDeleting" I wonder if ripping it out of the ASPX page and registering in the code behind would make a difference? hmm...
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
|
|
|
|
|
<br />
DataTable dt1 = (DataTable)Session["myCart"];<br />
if(dt1.Rows[e.RowIndex]!=null)<br />
{<br />
dt1.Rows.Remove(dt1.Rows[e.RowIndex]);<br />
}<br />
should take care of it i guess...
I know it's not the best of solutions, but at least it should work.
var question = (_2b || !(_2b));
|
|
|
|
|
Hi Greg,
Thank's for the work around. I was googling it again and found this article: forums.asp.net Looks like there is a known bug when using an image instead of a regular text hyperlink! I would have never guessed that!
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
|
|
|
|
|
hi
i am new to asp.net i serched for loop example from google but the extension.asp is working.
i have to implement for loop .aspx .
what is the best tutorial for .aspx example ?
bye
Naga
|
|
|
|
|
ASP.Net does not has any loop. Its the underlying language which you use to write the ASP.Net application.
Look here [^]to see how to write a for loop in c#.
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.
|
|
|
|
|
|
Hi there,
I have a problem that applied cellspacing is not working in Opera browser. It's working fine in IE, Firefox, Chrome and Safari.
Here is my code where i m using cellspacing....
tbl = New Table
tbl.Style.Add("background-color", "#FFFFFF")
tbl.BorderWidth = "0"
tbl.CellPadding = "0"
tbl.CellSpacing = "1"
Plz let me know the solution if you have.
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|