|
Thanks For Reply,
He is not selecting color he is just selecting theme from DropDown list box.But Actually I am showing my all error messages in div tag using javascript.When error comes it popup message in that div tag.I want to apply same theme to that Div tag.I am not able to do this thats why I was asking for retrieving color.So that after retrieving color I could pass it to my javascript function.If you know how apply theme to div tag then please tell me.
Thanks.
|
|
|
|
|
No... You are running on Wrong Direction !! You do not need to pickup the color. I believe for every theme name , you are having the Theme, and You are Changing the Theme. I am just giving you one suggestion , that Try to use HttpHandler , which will apply the theme to all of your pages, including popup at runtime. Do not need to pick the color and applying it.
cheers,
Abhijit
|
|
|
|
|
Thanks For Reply,
Can you tell where to find information to use HttpHandler to apply the theme to all of pages including popup.
|
|
|
|
|
Here It is[^]
Use session to store Theme Name, and Apply Change using HttpHandler .
Check This Two methods
context.Session.Add()<br />
context.Response.Redirect()
Now, Its on you to implement it. If I give you complete code, that does not help you to learn .
cheers,
Abhijit
|
|
|
|
|
I have a dropdown in UpdatePanel, while clikcing a particular field in the dropdown , some fileds should not be visible and these fields are in a seperate table, and this table has its own id, but while clicking a field in the dropdown the table is not disappearing, but if i remove the updatepanel of the dropdown its working properly,
Any Solution,
Plz help................
|
|
|
|
|
chinnumol wrote: while clikcing a particular field in the dropdown , some fileds should not be visible and these fields are in a seperate table, and this table has its own id,
You want to mean that when you select some value from dropdown list, based on that you want filed should be visible true or false. if yes,'
As you said, you have placed Dropdown list inside updatepanel , Did you place Those filed inside the updatepanel or not ? if no , then place then also . Because, when you change the content of Dropdownlist, then only it postback, not the other control of that page. Or even you can use multiple updatepanel and you need to change the updatemode="Conditional" and Explicitly update them when required.
chinnumol wrote: but if i remove the updatepanel of the dropdown its working properly,
Yes, The reason I have already discuss !!
cheers,
Abhijit
|
|
|
|
|
hi abhi,
I tried that also, I put the second table inside the update panel, while clicking a particular field in dropdown the fields in the second table should not display, I gave an id for the second table inside the update panel,
but not working, i put the code in the dropdown's selected index changed, if i remove both the update panel its working, I also tried the updatemode ="conditional"
wht to do?
|
|
|
|
|
If that table is present outside update panel then you have to put that table in another update panel.
|
|
|
|
|
Basically I have a main form and then child forms that are activities of the main form. What I want to do is instead of popping the child forms into new windows I would really like to do a modal DHTML popup as part of the original form... anyone know an easy way of doing this or something similar? Thanks
|
|
|
|
|
cwhittl wrote: would really like to do a modal DHTML popup as part of the original form... anyone know an easy way of doing this or something similar?
This[^] should make it easier if you can use AJAX toolkit.
|
|
|
|
|
Thanks for the post!!!
Do you know if there anyway to do it with forms? My forms are sorta special and I'd rather not have to re-write them into panels...
|
|
|
|
|
Well, AJAX tookit just makes the implementation easier. But you can implement same functionality without the need to that toolkit, but it requires more effort. Unfortunatly, I don't know any other methods.
|
|
|
|
|
Hi,
In the main page add the following Javascript in the .aspx form(design)
// register for our events
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);
function beginRequest(sender, args)
{
// show the popup
$find('mdlPopup1').show();
}
function endRequest(sender, args)
{
// hide the popup
$find('mdlPopup1').show();
}
2. Add a Script MAnager and Update panel, Hidden field, ModalPopupExtender,button
<asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
<contenttemplate>
<asp:hiddenfield id="btnHidden" runat="server">
<cc1:modalpopupextender backgroundcssclass="modalBackground" popupcontrolid="Panel1" xmlns:cc1="#unknown">
BehaviorID="mdlPopup1" TargetControlID="btnHidden" ID="ModalPopupExtender1" runat="server" DropShadow="true" >
<asp:button id="Button3" runat="server" text="Click" onclick="Button3_Click">
<%--<cc1:modalpopupextender id="Button3_ModalPopupExtender" runat="server" xmlns:cc1="#unknown">
DynamicServicePath="" Enabled="True" TargetControlID="Button3">
--%>
<asp:panel id="Panel1" runat="server">
3. Add code for the button on the (aspx.cs) page
protected void Button3_Click(object sender, EventArgs e)
{
Thread.Sleep(500);
Response.Redirect("MainPage.aspx");
ModalPopupExtender1.Hide();
}
4. In the page load add this
Panel1.Visible = true;
5. add css for modalpopup in the style sheet
/* Model Popup */
.modalBackground
{
background-color: Gray;
background-image: url(Images/indicator.gif);
background-position: center;
background-repeat: no-repeat;
filter: alpha(opacity=60);
opacity: 0.60;
}
Hope this will help You..
|
|
|
|
|
Hi,
I have created a sample web app for testing in .NET Framework 3.5, used web parts added grid view into web part on the page to display the data. the button & link click events on these controls does not fire on IE 7.0 such as edit, select, delete, buttons, paging & sorting in GridView and web parts restore button click events.
I have executed the same application on Fire Fox, which is working fine.
Please help me in fixing the problem how to run the same on IE 7.0
Shyam Sundar
|
|
|
|
|
The first step is to look at the generated HTML and work out how the button is working and why IE7 can't fire it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
the button control on the form is working, it has onclick event, the grid view's pager template & data template button controls does not have click events.
does this mean that these controls should have server side events...
in such case, how this is working in Chrome and Firefox browser.
Is there any other cause...
|
|
|
|
|
Hi,
This is Srinivas, i am doing one web Application. so that i need to check the incoming mail has attachment or not to the admin email ID.
plz provide code Snippet
Thanks in Advance
|
|
|
|
|
Hi
Please read this
http://www.codeproject.com/KB/IP/despop3client.aspx
Marcello Turnbull
|
|
|
|
|
HI,
Thanks to provide the link as per my request.
I study the code ,and i understood but i can not know where i can write that code
I am beginner , so that plz tell me where can i write the code.
|
|
|
|
|
Hi all, I have a problem with event onclick i don't know why this event is fire 2 times when I make click in 2 place diferent.
I put the little code for best sample:
Dim linkVer As LinkButton = CType(e.Row.Cells(0).Controls(2), LinkButton)
'This button go to a url
linkVer.Attributes.Add("onclick", "javascript:window.open(" + url + "," + parametros + ")")
'this is a link to other page in the same gridview but in other cell and is controlled by event gridView_SelectedIndexChanged
e.Row.Cells(8).Attributes.Add("onclick", Me.ClientScript.GetPostBackEventReference(gridView, "Select$" + e.Row.RowIndex.ToString()))
The problem is that when I push the button linkver the program open url of linkver and url of e.row.cells(8)
Some idea?
thanks for all guys
|
|
|
|
|
Solved
I have changed this
e.Row.Cells(8).Attributes.Add("onclick", Me.ClientScript.GetPostBackEventReference(gridView, "Select$" + e.Row.RowIndex.ToString()))
by this
e.Row.Cells(8).Attributes.Add("onclick", "window.location='NuevoExpediente.aspx?Id=" + e.Row.Cells(6).Text + "&Nuevo=0" & "'")
because always fire the event gridView_SelectedIndexChanged, now all is more easy
regards
|
|
|
|
|
Hi all
How can i make a colander type of box and put A, B, C, D up to Z in .net website.
Thanks in advance
|
|
|
|
|
reogeo2008 wrote: How can i make a colander type of box and put A, B, C, D up to Z in .net website.
Frankly , I didn't get your point ? Are you trying to create some table and put A, B, C...bla bla on that or something else ?
reogeo2008 wrote: colander type
cheers,
Abhijit
|
|
|
|
|
I have Alphabets a to z on the home of my websitte for displaying adverstisement links.By clking on an alphabet i have to display all the links starting with that letter.Now I need a colander type of box and put A, B, C, D up to Z to do the same
can you help me out in this.
Thnak You for your timely reply
|
|
|
|
|
What you need to do, is sort your links by the first letter, then show the letters as links. Make them all link to the same page with a querystring like MyColander.aspx?letter=A
Then you can write one page that gets the letter, passes it to the database and returns just those links. Just write a proc that returns a LIKE query using that querystring value, then you could also support any sort of substring search
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|