|
That was the exact ticket! Thank you.
oooo, the Jedi's will feel this one....
|
|
|
|
|
hellow i want email sending program in vb
|
|
|
|
|
If you want one, write one or search one. If you are expecting someone to spoon feed, try some other site.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
sura945 wrote: hellow i want email sending program in vb
Then why are you asking in ASP.NET Forum ?
TRy This[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
People post here before doing a google search, even if their problem is a general one. ..
good job.
|
|
|
|
|
actualy, i want to give data for modification in the modal popup. but after filling info through code behind i want to call showmodal()method(which is in javascript )through scriptmanager. jst like this,
'ScriptManager.RegisterStartupScript(frmtest, frmtest.GetType, "clientScript", "showTestModal('mpe');", True)'
but at it shows an error of 'null' means,it didn't find the behaviour id of modalpopup extender.
then i tried to add attribute at page load method for button, like this,
btnMod.Attributes.Add("onclick", "showModaltest('mpe');")
this time it shows modal popup but immediately modal popup get closed automatically.
plz help me i need it urgently.....
|
|
|
|
|
To show the modal in one event of the codebehind you only have to use:
ControlWithExtender_ModalPopupExtender.Show(); is that what you need??
|
|
|
|
|
actualy, i don't know much about handling modal popup i am new in asp.net..
so didn't get meaning of solution suggested by you... so i told u what i actualy want...
i have asp table, its one column contains asp button when i click on that button
i want to show all deatils of that row which contains that button in the modal popup and
modify some data and click on save button which is in modal popup.afer saving the data which
get modified should be display in the same row of asp table....
for that u set data if row to the controls which are in modal popup in codebehind but after
setting data i want to show modal popup through code behind i through script manager as i told
in previously but i shows an error of 'null'
i tried that, to add the 'showmodal'(javascript function to show modal popup)as an attribute to that
asp button it shows modal popup but get disappered immediatly automatically as i told previously....
do u got?wh i actualy want?...
so plz help me, i need it urgently
thanks & regards
madhuri....
|
|
|
|
|
ok sorry for the delay! i was working ^^
so, you need to show the modal when the user clicks on a row of a asp table?? isn't a Gridview?? with gridview is easier!
well let's start from zero, if you're using ajax ModalPopUpExtender you can give the extensor to any asp control... like
<asp:button ID="MyTestButton" Text="I dont know" runat="server">
<cc1:ModalPopupExtender ID="MyModal" runat="server"
Enabled="True" TargetControlID="MyTestButton"
BackgroundCssClass="modalBackground"
PopupControlID="Pnl_Modal"
CancelControlID="Btn_Cancel" DropShadow="True">
</cc1:ModalPopupExtender> and your panel to show must be hidden
<asp:Panel style="display:none;" CssClass="modalPopup" ID="Pnl_Modal" runat="server" Height="99px" Width="297px"
BackColor="#66CCFF">Here the textboxes you need and the save button<asp:panel> ok then! assuming you've a grid like
<asp:GridView ID="GV_MyData" runat="server" AutoGenerateColumns="False"
DataKeyNames="Id_Pelicula" DataSourceID="LQDS_MySource"
onselectedindexchanged="GV_MyData_SelectedIndexChanged">
<Columns>bla bla bla and your button in every row</Columns>
</asp:GridView>
so in the OnSelectedIndexChanged Event you can add
MyTextBoxInsideTheModal1.Text = values.Actor_Estelar;
MyTextBoxInsideTheModal1.Text = values.Titulo;
MyModal.Show();
assuming values is obtained from a qry using the SelectedDataKey.Value of the GV... i'm explaining myself?
|
|
|
|
|
its ok.... thanks for reply..
but i want asp table and i generate it dynamically so the asp button on which i want to show modal popup also
generated dynamically...
so how can i show modal popup on it..???
for testing i create one test.aspx like this...
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" language="javascript">
function onOk(){
return true;
}
function ShowModalForNew(){
var myBehavior = $find('mpe');
myBehavior.show();
$find('mpe').show;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ACT:ToolkitScriptManager runat="server" ID="ScriptManager1" EnableScriptGlobalization="true" EnableScriptLocalization="true" />
<div>
<asp:UpdatePanel ID="uptmp" runat="server" UpdateMode="conditional">
<ContentTemplate>
<table>
<tr>
<td>
<asp:Button ID="Button1" runat="server" Text="Button" />
<a href="#" style="display:none;visibility:hidden;" onclick="return false" id="dummyLink" runat="server">dummy</a>
</td>
</tr>
</table>
<act:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="dummylink"
popupcontrolid ="Panel1"
backgroundcssclass="modalBackground"
dropshadow="True"
cancelControlId="CancelButton"
BehaviorId = "mpe" />
<asp:Panel ID="Panel1" runat="server" style="display:none; width:200px; background-color:White; border-width:2px; border-color:Black; border-style:solid; padding:20px;">
Are you sure you want Delete Text?
<br /><br />
<div style="text-align:right;">
<asp:Button ID="OkButton" runat="server" Text="OK" />
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</div>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
and i called the javascript thr codebehind like this,....
Partial Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Button1.Attributes.Add("onclick", "ShowModalForNew();")
End If
End Sub
End Class
if you run this it shows, modal popup but, it get disappeared...
if it worked properly, then i can add attribute to the dynamically generated asp button, as shown in code behind....
now you get what i want..? but thanks for reply... it also helpful to me related to modal popup extender...
madhuri
|
|
|
|
|
Ok i understand your problem! I had try your test.aspx and asign the modal pop up dinamically and use it with javascript is a problem... unless you work with datagrid. I personally recommend u to use a gridview and fill it dinamically like the asp table you use... Why i'm recommending this? is just because the asp table isn't have any event (in the server) that helps you in your problem, with gridview you only add the 'ShowSelectButton = true' and program (in server side) the OnSelectedIndexChanged (of the grid) the modalPopUpExtender.show(); and that's all! i think...
greetings
|
|
|
|
|
Sorry for delay...
thanks for suggestion but its requirement that use asp table instead of gridview.....
Your suggestion is useful.... but its requirement.. so can't use gridview...
but i can't understand, when i tring to call the javascript through script manager it didn't get
behaviour id of modal popup extender....thats why it shows 'null' error
Plz give me solution on it, as i give test example... plzzzz
help me....
thanks and regards,
Madhuri.
|
|
|
|
|
Hi,
In ADO.Net after finishing codeing, for deployment we can make setup(msi) for that project.
So can't I make some similar like setup to my ASP.Net website. Each and every time I have to run my complete website in Visual studio(Ctrl+F5). I don't know about deployment of website on Internet. I just want to know how can I run my website without Visual Studio by just double click to the website. Is it possible???
TIA
Regards,
Jaym
|
|
|
|
|
Only Executables can run when you double click. I think you need to read the basic books on Web based Client/Server architecture.
You need to host it to IIS and you might create a shortcut to the website to run it.
|
|
|
|
|
Why you are asking same question again and again ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
In ADO.Net after finishing codeing, for deploment we can make setup(msi) for that project.
So can't I make some similar like setup to my ASP.Net website. Each and every time I have to run my complete website in Visual studio(Ctrl+F5). I don't know about deployment of website on Internet. I just want to know how can I run my website without Visual Studio by just double click to the website. Is it possible???
TIA
Regards,
Jaym
|
|
|
|
|
JayPatel21 wrote: I run my website without Visual Studio by just double click to the website
What do you mean double click? A website is a website. It is not an executable like console or windows application.
You need to deploy the website in IIS. Search google on how to publish website in IIS and you will get a lot of articles explaining that.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
|
Is there any shortcut to get applicationname in asp.net?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Gamzun wrote: Is there any shortcut to get applicationname in asp.net?
I didn't get you? What application name you are asking about ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Try this :
Request.ApplicationPath.Substring(1,Request.ApplicationPath.Length-1)
|
|
|
|
|
Sorry my mistake, I didn't ask clearly in first place. I've a provider in web.config and in that ApplicationName is placed. My question was, is it possible to get that name?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Yes.. If you placed the Application name in web.config, use
ConfigurationMageanr.AppSettings to get it.
|
|
|
|
|
Thanks but I was talking about application name in provider
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hi,
i'am looking for a hint how i can create something similiar to the article search on this website.
My goal is to enter a seach string in a textbox and after every keystroke i want the filtered resultset in a listbox.
If possible evterything should be done programatically without a webservice if possible.
Regards, Alex
|
|
|
|