|
|
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..
|
|
|
|
|
It is likely that a new session is being created when you hit the page after the 20min time out and its being posted back.
Place this at the top of your Load.Page or place other code in your Global.aspx Session Start. Note: Session End will not effect client page view.
if (Session.IsNewSession)
{
// New Session
// Take your pick
Server.Transfer("Default.aspx");
Response.Redirect("Default.aspx");
}
Look where you want to go not where you don't want to crash.
Bikers Bible
-- modified at 6:44 Tuesday 25th April, 2006
|
|
|
|
|
Hi All,
I need a clarification?
How to open a windows application from the asp.net page.
Pls give a suggesstion with sample code.
Thanks
PAUL
PAUL
-- modified at 5:14 Tuesday 25th April, 2006
|
|
|
|
|
You cannot open a windows application on the users machine from a webpage. You can give the user the optin to download your program, and it is then in their control as to whether to execute it.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
I am creating html file at run time using the StreamWriter object. After creating 2000 files throws an error Arthimetic operations results in overflow?
Can any one help me ?
Thanks in Advance
|
|
|
|
|
msharmamahesh wrote: After creating 2000 files throws an error Arthimetic operations results in overflow?
What's the code? What are the inputs to the "Arithmetic operations"? What are the expected results of the arithmentic operations?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
What I am doing is just fire a query from sql server, If the number of records are 30000 then there is no problem but after 32000 records is show an error.I am releasing memory after every 50 page like that
If gstrHTMLFileCounter Mod 50 = 0 Then
GC.Collect()
GC.GetTotalMemory(True)
GC.WaitForPendingFinalizers()
End If
I am not using integer all the fetch records are string ?
Thanks
mahesh
-- modified at 6:14 Tuesday 25th April, 2006
|
|
|
|
|
msharmamahesh wrote: If the number of records are 30000 then there is no problem but after 32000 records is show an error
I would guess that it is actually after 32767
You have an Int16 somewhere in your .NET code or a SMALLINT in your database. However, since you show neither I cannot see what it might be.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
But I am not using Int16 in dot net code and SMALLINT in database, still getting error.
|
|
|
|
|
Well, something has a signed 16bit limit on it and that is the most likely cause of your overflow error.
You need to post appropriate code - that includes the declaration of variables so the types are known.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Thanks Dear your are very right My problem is solved.
Thanks a lot
Mahesh
|
|
|
|
|
Hi colin, I am calling our own API for creating a PDF files at run time. Also I am releasing memory after every 10 pages created at run time like that
If gstrPDFFileCounter Mod 10 = 0 Then
GC.Collect()
GC.GetTotalMemory(True)
GC.WaitForPendingFinalizers()
End If
But after 1046 files created successfully It stops creating pdf files and does not show any error. I think there is some memory leak. How do i fix it.
Thanks
Mahesh
-- modified at 0:56 Wednesday 26th April, 2006
|
|
|
|
|
Do you have an int somewhere that you are indexing and maybe not setting back to zero between writes?
|
|
|
|
|
Hi paddy,
Dear my Arthimetic opeartions overflow problem is solved.
Now my problem is
I am calling our own API for creating a PDF files at run time. Also I am releasing memory after every 10 pages created at run time like that
If gstrPDFFileCounter Mod 10 = 0 Then
GC.Collect()
GC.GetTotalMemory(True)
GC.WaitForPendingFinalizers()
End If
But after 1046 files created successfully It stops creating pdf files and does not show any error. I think there is some memory leak. How do i fix it.
|
|
|
|
|
hi all
can anybody tell me the advantage of using multiple config files.
coolsweety
|
|
|
|
|
You can define custom settings for different folders? What exactly would you like to know?
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|