|
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."
|
|
|
|
|
I think there might be some other issue with this. Opera takes cellspacing well.
|
|
|
|
|
hi
am new to ajax,am facing a big problem,
my requirement is to add the item details to the grid,by using modal popup.
In the modal popup i give a option to search the itemname
this search details will be shown on grid in the same modal popup,in that grid i added button for selecting rows.
once the user click the select button, i want to assign the
values in the modal popup textbox, by using java script fucntion.
My problem is javascript fucntion working well, i tried by alert fucnction working fine but the
function shopModalPopup(itmid,itmno,itmdesc,onhand){
********** working *************
alert(itmid);
alert(itmno);
alert(itmdesc);
********** not working *************
document.getElementById('itemid').value=itemid;
document.getElementById('itemno').value=itmno;
document.getElementById('itmdesc').value=itmdesc;
document.getElementById('onhand').value=onhand;
********** not working *************
$get("<%=this.itemid.ClientID %>").value = itemid;
$get("<%=this.itemno.ClientID %>").value =itmno;
$get("<%=this.itemdesc.ClientID %>").value =itmno;
$get("<%=this.onhand.ClientID %>").value =onhand;
}
|
|
|
|
|
does it work if you use innerHTML?
<br />
document.getElementById('<%=this.itemid.ClientID%>').innerHTML = itemid;
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
|
|
|
|
|
Thanks for your reply
i tried your code
document.getElementById('<%=this.itemno.ClientID%>').innerHTML = itmno;
but still the value is not visible in textbox.
view soruce look like this
<td>
<input name="itemno" id="itemno" style="height: 21px; width: 263px;" type="text"><input>E-4005
"E-4005" is my itemno it is not visible in textbox.
|
|
|
|
|
Thanks it works
document.getElementById('<%=itemdesc.ClientID %>').value
|
|
|
|
|
Hey Zapss,
Great! I probably skimmed through the question too quickly, but I wasn't sure what type of control you were using. I just remember having an asp:label control one time and the .value would not change! I then stumbled across an article where someone mentioned that the label is putting a "" tag on the html and you need to use innerHTML to change what is displayed.
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
|
|
|
|
|
have you used document.getElementById('<%=this.itemid.ClientID %>').value = itemid;
Also check what browser renders. If it is input, you can use value, if its container you use innerHTML..
|
|
|
|
|
hello
Friends
i want String Compairions function
like
str1=This is demo
str2=this is Demo
above str1 and str2 are same
Thank you @};-
|
|
|
|
|
Microsoft investa lot of money to write a great knowledgebase about its various tools and languages in MSDN.
Did you even try to look at it?
Here [^]is the whole explanation you may ever need about it.
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.
|
|
|
|
|
How to use MS-Word Eqution Editor in asp.net textbox control?
Is it possible are not?
If possible how to implement?
Thanking you
abglorie
|
|
|
|
|
|
Hi
I have a problem. i have write a code to send mail in asp.net and now i ahve to publish it on Windows Server 2003. but It gives error message . Can anybody let me know that how can I configure SMTP server on windows Server 2003. Plz Plz It's very urgent.
thanks
Raghvendra Kumar Roy
|
|
|
|