|
Hi all,
Following are my sceanarios :
1. I am opening a popup window through showmodaldialog() method and made some changes through the popup window and save the data and close the window.
2. When I open the popup window in edit mode then the changes doesnot reflect for first time but after onwords the changes are reflected.
3. To solve this problem I have used the following codes but it doesnot work.
<meta http-equiv ="CACHE-CONTROL" content="no-store, must- revalidate,private,no-cache"/>
<meta http-equiv="Pragma" content="No-Cache"/>
<meta http-equiv="Expires" content="-1" />
Please Provide Some Solutions for the above issue......
Thanks & Regards
Bikash
|
|
|
|
|
Sounds to me like you're binding to data in page load instead of prerender, so you bind to data before it's updated.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi
my menu is on masterpage.my contentpage has a dropdown list.according to
value selected in dropdownlist my should be populated.i am sending the code
please help me fast
cmd = new SqlCommand(sql,conn1);
dr = cmd.ExecuteReader();
Master.Pr.ChildItems.Clear();
while (dr.Read())
{
MenuItem mi = new MenuItem(dr["Actionname"].ToStrin());
Master.Pr.ChildItems.Add(mi);
}
pr is property through which i m getting menu control.
|
|
|
|
|
naveen attri wrote: please help me fast
Why ?
I'm not sure that I even get what your issue is ? What is this code doing ? What's going wrong ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi
actually my menu control is on master page.i m trying to populae it from
cild page.
on chid page i have a dropdown list.
on DropDownList1_SelectedIndexChanged I am trying to access the master page menu control.and then trying to populate it.but it is not populating.
but if i m trying from pageload of child page.then it is working.
but i want that it should work on DropDownList1_SelectedIndexChanged.
|
|
|
|
|
Hi All,
Anybody have an idea where can i get Filtered numeric textbox with comma seperator on thousands. I know there is one in ajax control toolkit and it is nice, however i need to do some formatting when exiting and while writting this control (again aim aware that it is doable by javascript), but is there something ready to use.
thanks in advance
|
|
|
|
|
samerh wrote: again aim aware that it is doable by javascript
so, what else would you like to know?
samerh wrote: is there something ready to use.
not as a control. see your message and you will figure it out.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Someone know how to convert a System.Web.UI.WebControls.FontInfo to System.Drawing.Font?
Thanks
Thomas
|
|
|
|
|
You probably need to create a font using the info in the FontInfo object (name, etc )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All,
Now a days all browsers pop-up's get bolcked for security purpose.
So i'm thinking to use alternative for pop-up in my web site, which should not get blocked say like pop-in calling through java-script.
The purpose of pop-up's in my webapplication is for confirmation msg (eg. you want to save YES/NO)
Any body have great idea for alternate of pop-up.
Please share
Waiting for reply
Thanks in advance
Ashwini
|
|
|
|
|
ashwinibhalerao wrote: The purpose of pop-up's in my webapplication is for confirmation msg (eg. you want to save YES/NO)
Then why you are not using Java script Confirm
<script type="text/javascript">
var repl = confirm ("You want to save?")
if (repl )
alert ("save.....")
else
alert ("no...")
</script>
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
There are something like three billion (OK - I exaggerate) methods of popping up - just google for, say, javascript popup alternative for 200,000 hits. surely you'll find something.
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
create popup through HTML Divs .. yourself. .
Just floating over your page.
|
|
|
|
|
can u give me example/demo...so that i'll get idea
|
|
|
|
|
I have one page which will store inventory detail (inventory.aspx). While clicking on confirm button
pop-up will show (confirmpopup.aspx). this pop-up will show invetory detail and ask do you wan to save. It will get redirect to invetory.aspx as per clicking button 'Save' or 'Cancel'.
Inventory.aspx
<asp:button id="approvalHistoryButton1" text="Confirm" runat="server" onclick="ShowApprovalHistory(this)" xmlns:asp="#unknown">;
function ShowApprovalHistory(obj)
{
wind=window.open(obj.getAttribute('URL') ,'DenyOrder','width=650,height=300,left=150,top=200,toolbar=0,scrollbars=1,status=0,menubar=0');
}
Inventory.aspx.cs
#region ApprovalHistory Button PopCode encryption
approvalHistoryButton1.Attributes.Add("URL", System.WebController.SecureQueryString.QueryStringEncode("../Orders/ViewApprovedOrders.aspx?OrderRequestId=" + OrderRqstId + "&corpId=" + ordersCorpId + (Request.QueryString["Source"] != null && Request.QueryString["Source"].Trim().Equals("OrderManagement") ? "&Source=" + Request.QueryString["Source"] : string.Empty)));
#endregion
|
|
|
|
|
Hi all,
Could any one help me?
i created radio button in a gridview when i click this radio button i call a javascript function . in this function i am using the code for changing background color of current row.
I want to change the index of gridview.
is there any code for this pls reply me...
|
|
|
|
|
What do you mean by 'change the index'. Do you want to swap two rows ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i mean to say gridview.selectedindex
if i click row no 1 then it should be
gridview1.selectedindex = 0; this is c# code
i want this code into javascript
|
|
|
|
|
Oh, OK. A gridview is rendered as a table. You need to work out what changes in the HTML when a table row is selected, and then do that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
how to create sub menu dropdown in a menu dropdown in asp.net
|
|
|
|
|
Look this code...
Dim itm As New MenuItem("hi")
Dim itm1 As New MenuItem("me")
Dim subitm As New MenuItem("subhi")
itm.ChildItems.Add(subitm)
Menu1.Items.Add(itm)
Menu1.Items.Add(itm1)
The miracle is this--the more we share, the more we have.
|
|
|
|
|
Hello All,
i have a gridview, dropdownlist, textboxex on web page, when i select dropdown item based on selection(from database) button shuld b created ,some of the button are enabled/disabled, red/green based on condition from database.
Then how to add these button to the gridview , and handling event of these button, if i click the button it should not be vanish.
How it could be.
please give me complete code
Thanks
|
|
|
|
|
shoyebaziz123 wrote: please give me complete code
When did your last servant die ?
Your best bet is to add a hidden control, and to store details of controls you have created in there, as XML perhaps. You need to create those controls on each postback before page load, for viewstate to be restored.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: When did your last servant die ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
i have to text bax fromdt and todt i have used ajax calender control extender to select date format is dd-MMM-yyyy i want to compare values of date in textt box using javascirpt how i can do that
|
|
|
|