|
just3ala2 wrote: first, it's not in one form, it's 2 forms parent and pop up
so what?? the popup could be any page with.aspx
just3ala2 wrote: third, to get highest performance u need to reduce the sessions in ur app
they are just 2 variables !!!
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
can u reach the variable from both forms??!
and if u think like this, 2 variable * 1,000 user = 2,000 session opened with the server, that would exhaust the server
so what about 10,000 user
what would happen?
anyway, i implemented it by myself without using sessions
if u need the code tell
Best Regards
3ala2
|
|
|
|
|
Put the values in an array and assign the array to window.returnValue, then close the window. The array becomes the return value of the showModalDialog call.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
i have class in asp.net appication Like
Public Class AsyncTaskHandler
Implements IRequiresSessionState, IHttpAsyncHandler
Public Function BeginProcessRequest(ByVal context As HttpContext, ByVal cb As AsyncCallback, ByVal extraData As Object) As System.IAsyncResult
end function
end calass
when and how BeginProcessRequest is called
|
|
|
|
|
Hi,
I want to implement a DropDownList control in IE with the same features as the drop down lists seem to have in Mozilla. In IE I currently have a DropDownList of width 150px, but the text that is displayed in the drop down takes up more than 150px. I'd like to be able to have the list of choosable items to stretch to allow all text to be seen, but at the same time keeping the combo box itself to 150px width. This happens by default in Firefox, does anyone have any ideas how this is done in IE?
Thanks,
Stuart
|
|
|
|
|
how to avoid caching in show modal dialogue box?
sree
|
|
|
|
|
Hi,
In my website, I have used a Master Pages concept, wherein I have created a pop down menu in the master page and called various child pages in the Master's container.
One of the child pages have a following style applied at page level
<style type="text/css">
<!--
a:link{color:Blue;}
a:visited {color:Red;}
-->
</style>
Because of this whenever the user goes to this page, the Master page's menu Root options also change color to Red or Blue, depending on which was clicked earlier. When I saw the View Source of the whole page, it shows the menu rendered as Hyperlink.
How can we stop the menu options from changing colors ?
Pls help me.. Else I am gone
Omkar
|
|
|
|
|
Hi there..........
In ASP.NET 2003
I created one web page and i used inline codings in that with validation controls.
In local machine, it's working very fine. But if i uploaded in remote server, validation controls are not working....
So, i include this line in my page as :
</b>
and also i gave the specific location for the src in that. Now the validation working very fine, but the clicking event[ no other event ] can't generated.....
Please help me..........
Regards n Thanks n Advance
Sam.M
|
|
|
|
|
hello to everyone,
i want to upload only doc file.but i m unable to do dat.
can any body help me to solve dis problem.
thanx
rahul saini
|
|
|
|
|
Try using the FileUpload Control
and the command FileUpload1.PostedFile.SaveAs(SaveToAddress);
keep Learning and you never will be out of date...
|
|
|
|
|
a little comment:
you should check if a file was really sent before trying to save it
<br />
if(FileUpload1.PostedFile != null)<br />
{<br />
}<br />
have fun.
|
|
|
|
|
Dear Talkain,
thanx for ur comment, can u help me to sort out other problem.
please check my new post.
again thanx
rahul saini
|
|
|
|
|
DEAR Britney S. Morales
thanx,
for providing me solution of my problem.
Njoy
bye
again THANX.
rahul saini
|
|
|
|
|
Please check my new post,
thanx
rahul saini
|
|
|
|
|
hi,
i have one site which is in ASP. now in that site i have a link which will redirect to another ASP.Net site.
Now i want to open that ASP.Net site within a ASP site so how can solve this problem ?
I have put Iframe in ASP site but in that I have to specify height. But my ASP.Net page's size is not fixed it will vary as per my data as i have put dataGrid in ASP.Net site.
Please solve this..
|
|
|
|
|
Hi guys
i am developing one website and it is having mane forms. and all those forms have many textboxes. so after inserting data from textbox i want to make all text box clear. for that i dont want to write each and every textbox.text="" so if any one knows other solution please help
(
Regards,
DJ Rock
|
|
|
|
|
I'm not sure, but I think you should play around with viewstate. You can set EnableViewState property of your textboxes to false, or you can set this property to be false for whole page, if you don't need viewstate at all. Or you can override LoadViewState or SaveViewState methods of your Page class. Or you can simply go through all controls and if a control is type of TextBox set its text to ""
<br />
foreach(System.Web.UI.Control control in Page.Controls)<br />
{<br />
SetTextBoxesText(control);<br />
}<br />
<br />
public void SetTextBoxesText(System.Web.UI.Control control)<br />
{<br />
if (control.GetType() == "System.Web.UI.WebControls.TextBox")<br />
{<br />
((System.Web.UI.WebControls.TextBox)control).Text = "";<br />
}<br />
foreach (System.Web.UI.Control childControl in control.Controls)<br />
{<br />
SetTextBoxesText(childControl);<br />
}<br />
}
Pilo
|
|
|
|
|
|
hello everybody,this is my first time to here,I am a Chinese and my English is poor,so I will try my best to make myself clearly.When I run my code on server I received an er ror like this "System.IO.IOException: The device is not ready." but it work correctly on my local machine.It's very strange,I don't know how to resolve it,I need your help,please give me a favor,thank you.
This is the error description.I just use ajax to get data from database .
[ErrorInfo]:System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.IO.IOException: The device is not ready.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at IVan.Public.Function.RealFromXMl(String id)
at ChinaOnline.Events.Events_posting.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-- modified at 20:19 Thursday 16th November, 2006
learning more everyday
|
|
|
|
|
Paste a code here, where this exception is thrown. Otherwise nobody will be able to help you
Pilo
|
|
|
|
|
Dear All
i made a webform that contains a listbox, and a pop up window.
the pop up window contains two text boxes, what i want is to know how can i pass the values of the text boxes to the parent form to ass them to the listbox?
i want the first textbox to be the listitem's text and the second textbox to be the value of that listitem
i know i should use java script (maybe window.opener ...) but i need some clues to do the implementation
Thanx everyone
Best Regards
3ala2
|
|
|
|
|
u can use the session variables hope tht'll help u.
assign value to session variable.
session["txt1"]=TextBox1.text;
retrive value from session variable
string sessiontxt=session["txt1"].tostring();
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
suppose i put the values in a session variable, would they be moved between forms?
i mean i'll assign the session value from the pop up window and i want to read it from the parent window.
another thing, how will i add the list item to the listbox of the parent page?
suppose i want to reload the form again, in this case it will only add the last list item only and the previous ones will be lost
hope there is another way
Best Regards
3ala2
|
|
|
|
|
This is my code, where I open modal dialog to create new category entry (in parent page):
public static string OpenCreateCategoryModalDialog(string url)<br />
{<br />
return @"<script type='text/javascript'>"<br />
+ "function CreateCategory(){"<br />
+ "ret = window.showModalDialog('" + url + "');"<br />
+ "document.getElementById('hdnCategoryReturn').value = ret;}"<br />
+ "</script>";<br />
}
you have to register it using
Page.RegisterClientScriptBlock("OpenMocalDialog", MyJavascript.OpenCreateCategoryModalDialog(modalDialogUrl));<br />
and call it when user clicks on button.
then in child modal dialog, you have to add to your submit button attribute:
submitButton.Attributes.Add("OnClick", "javascript:window.returnValue = #myreturnValue#")
replace #myReturnValue# with javascript that gets values from your textboxes. you can separate these values by semicolon or something, so you can get them from hidden field and split them on parent page in event handler.
I hope you understand what I mean
Pilo
|
|
|
|
|
That is great although i needed to convert it to VB
but where should i put the code to add the values of the text boxes from the pop up window to the parent form?
i mean where or how can i call the addToList() function for example?
Best Regards
3ala2
|
|
|
|