|
vik20 wrote: But I would like to know how do i specify a CultureInfo or NumberFormatInfo whenever you convert the values to strings. Do I use a common function which would be doing the job and pass all the conversion through this function
You pass the CultureInfo or NumberFormatInfo to the ToString method.
---
b { font-weight: normal; }
|
|
|
|
|
Hello, as my title says, I'm trying to find a way of referencing an Iframe within a Multiview View.
Currently I have a map created in flash, the user clicks on a postcode say "LN1" and I want to pass the postcode as a variable into an Iframe to bring up a datagrid of results.
My old code in Flash was for use with ASP:
on (release) {
var pcode = "LN1"
get URL("map.asp?pcode="+pcode, "search_results");
}
That refernced the Iframe 'search_results' and brought up the page 'map.asp'.
With my new ASP.net page I have 1 page with a multiview, and the flash map. The Active Index is set to display Current News of the Day kind of thing, and then when the user searches the map for an area I want the news to dissappear and the results of the search to be displayed. It keeps it all nice and user friendly.
Maybe I'm going about this the wrong way, could there be a better solution than using Iframes?
thankyou, Mark.
|
|
|
|
|
I have added two project in a single solution. how can I authoticate second web applicaton.
eg: localhost/monthly/june.aspx
is calling another application
localhost/daily/default.aspx
lokesh
|
|
|
|
|
I have added two project in a single solution. how can I authoticate second web applicaton.
eg: localhost/monthly/june.aspx
is calling another application
http://localhost/daily/default.aspx
lokesh
|
|
|
|
|
I m using untyped dataset in asp.net using C#.
I want to update the record only in a dataset. The code is given below(this code is also given in MSDN).....
ds.Tables[0].Rows[0].ItemArray[1] = "New value";
Interestingly it doesnot throw exception and at the same time does not update the record....
what could be the reason...................
Do good and have good.
|
|
|
|
|
What steps do you take after this? In what way does it not update the record (to the DB, or to screen...?)
|
|
|
|
|
I just want to assign dataset to a datagrid after updating some values in the dataset only not in Database.
Do good and have good.
|
|
|
|
|
Things to check:
1. (apologies if this insults your intelligence) Are you rebinding the datagrid after setting the updated dataset as the source?
2. Have you got the current view of the dataset as unchanged rows?
|
|
|
|
|
when using context.rewritepath() i lose my session values any one can help?
Hosam Kamel
Software Developer
|
|
|
|
|
Hi,
Why should we keep user controls only between and tags?
|
|
|
|
|
|
HI,
I know they don't work.But I want to know in details why they don' work.
|
|
|
|
|
i want to call a client side javscript methot after completing some of server side operations
the server side operations are under one ascx control and atlas ajax update panel
I want when we click a save button some of the textbox values to be updated into a dropdown list
The dropdown list is outside the atlas update panel
-
|
|
|
|
|
You can not call a JS function from the server directly. You have to put a call to a JS function somewhere in the markup.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Like CWIZO said you need it in the html.
You can do this in a few ways:
1) RegisterClientScriptBlock
2) RegisterStartupScript
3) put a literal control on your page and set it's text property to your javascript code...
Examples of all three in vb.net (sorry don't have c# at work)
Dim myScript As String = "" + vbCrLf _
+ "alert(""Hello World!"");" + vbCrLf _
+ ""
Literal1.Text = myScript
Page.RegisterClientScriptBlock("myScript", myScript)
Page.RegisterStartupScript("myScript", myScript)
-Richard
|
|
|
|
|
|
i am selectin some data from database and through reader showing it in datalist as above now for radio buttons i have single column which returns 1,2,3 and according to that i want one of above radio button to be preselected in this datalist how can i do that
doing something like this
but this gives error "The type or namespace name 'rdbtn' could not be found (are you missing a using directive or an assembly reference?)"
as its in datalist
<itemtemplate>
<%#DataBinder.Eval(Container.DataItem,"FName")%> | | <asp:radiobuttonlist id="rdbtn" runat="server" repeatdirection="Horizontal">
<asp:listitem value="1">
<asp:listitem value="2">
<asp:listitem value="3">
<%string x=Request.Form.Get("txtPerm");%>
<% if(x=="1")
{
rdbtn.SelectedValue="1";
}
else if(x=="2")
{
rdbtn.SelectedValue="2";
}
else if(x=="3")
{
rdbtn.SelectedValue="3";
}%>
| <asp:button id="EditSubuser" text="Edit" runat="server"> |
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
HOw can i add Header and footer?
Hi i am using javascript code to print a datagrid in my page..is there a way to add header and footer in the document like a title on the header and page number in the footer?
this is the function am calling t print:
// quick browser tests
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;
function show(sw,obj) {
// show/hide the divisions
if (sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'visible';
if (!sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'hidden';
if (sw && ns4) document.layers[obj].visibility = 'visible';
if (!sw && ns4) document.layers[obj].visibility = 'hidden';
}
// End -->
//Print datagrid only function (print button 1)
function CallPrint(strid)
{
show(false,'srcPnl');
var prtContent = document.getElementById(strid);
var WinPrint =
window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
show(true,'srcPnl');
WinPrint.close();
}
|
|
|
|
|
Not sure this is what you are going for but if you can do this:
WinPrint.document.write(prtContent.innerHTML);
why not do something like this:
WinPrint.document.write(YourHeaderHTML);
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.write(YourFooterHTML);
-Richard
|
|
|
|
|
Thanks you Richard very much.. I will try it
|
|
|
|
|
Hi all
In my application i want put a label to display the Client Net speed
How can i write that
Can any one suggest me
Thx
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Load a very big image suppose 2-5MB and calcualate the time from the starting of the page to the end.
---
Eat Bytes Everyday
Zakaria Bin Abdur Rouf
zakaria7@gmail.com
|
|
|
|
|
Hi
Thx for reply
Can u give me Syntax how take the loding time
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Hi,
I have developed a web application and have set session timeout to 20 min.
Now here is the problem, I open a web page and does not take any action on it for about 1 hr.After 1 hr I take a action on that page and application handles it.I face this problem for few pages in application. I am not able to get why this problem occurs.
Thanks
|
|
|
|
|
You also set the property in global.asax.cs file
void Session_Start(object sender, EventArgs e)
{
Session.Timeout = 20;
}
bye..
|
|
|
|