|
I saw this link before itself. In this they are just drawimg the pie chart with their own inputs, i need this inouts to come from DB. Please help me with some code example.
Thanks,
Santa
|
|
|
|
|
yes.. I know. In that article it is doing using Random function, so that data always comes at random. Use SQL data instead of Random.
Minor modifications will give you the output.. I guess..
|
|
|
|
|
I have two web sites i want to access website2 in Website1
means in Website2 it contains two textboxes one is firstname and anothere is last name and one save button.
so i am calling this website2 in my wbsite1 using Iframe.
Requirement is: i want to pass the both first name and lastname values to website 2 and do some modifications with
out using any querystrings because the website2 is not in my control,then i will click save button in website2
i want to strore this modified textbox values in my website1 databse.
is there any way to pass values to other site and do the process and save in our current site.
|
|
|
|
|
You mean you have an existing website which you want to load in Iframe and find some textboxes ??
Check the code below:
<iframe id="myframe" name="myframe" src="http://yoursite/test.aspx"></iframe>
<script type="text/javascript">
var iframe;
iframe = document.getElementById('myframe');
iframe.onload = function() {
var iframedoc;
iframedoc = iframe.contentWindow ? iframe.contentWindow.document: iframe.contentDocument;
iframedoc.getElementbyId('yourinputcontrol').value="anything";
}
</script>
where yourinputcontrol is the control in the iframe document.
Hope it works.
|
|
|
|
|
Can anyone give me the introduction abt the Google Analytics ga.js
modified on Tuesday, September 15, 2009 9:38 AM
|
|
|
|
|
|
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));
|
|
|
|