|
No - click once puts apps in a folder outside of the program files structure, you can't control that ( which is one reason click once is crap ). You need to put a web app in the right folder for it to work, so it's not going to work for you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks Chris
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi all I am a new user of dotnet
I want to set the default setting of control so that I can paste the control any where in asp page
|
|
|
|
|
I suspect you're used to winforms. ASP.NET generates HTML, which is a flow design. It's not about pasting a control into a specific location, you design the flow of your page. You can use CSS to position things, but absolute positions, while possible, are generally a bad idea. Your site should work to fit any users screen resolution.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
if you are talking about visual inheritance in windows forms application then you need to understand asp.net masterpages..
as far as user controls are concerned you create and place where ever you want....and for positioning you can have style sheet and themes for server side control at a common place..
Government Dyal Singh College Lahore.
|
|
|
|
|
There are a few ways of positioning controls. As mentioned in the previous replys, your best bet is to use a style sheet(css) to position controls on your web page.
1)You can create tables with rows and columns and basically just drag and drop controls into table cells and let them postion themselves but I don't recommend this. You'll run into a ton of cross browser positioning issues.
2)Use the cssClass attribute of your control and assign it to a class in your style sheet. Your css class can be set to postion a control relative to other controls on your page, or set you control to an absolute position on the page. Personally I like using relative postion to something like a main div on the page. Using relative postion will keep your controls in the same spot relative to the main div when a user resizes the page. Using absolute position will leave a control in the same spot when a user resizes the page. You might want to play around with both till you get comfortable...
Css examples:
.relativeControl
{
display:block;
postion:relative;
top: 100px;
left: 100px;
}
.absoluteControl
{
display:inline;
positon:absolute;
z-index: 100;
top: 100px;
left: 100px;
}
I hope this helps. Have fun
|
|
|
|
|
hi sir,
can i change crystal report connection string from web.config if yes then how.
please help me.
i want if i am on pc1 then my connection string for crystal report should be for pc1 and if i am on pc2 then connection string of crystal report should be for pc2.and i am using connection string from web.config.
and i can change my web.config connection string as per requirement.now same i want for crystal report.
thanks
|
|
|
|
|
How is your web.config going to know if the user is on PC1 or PC2 ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
actually i can save my connection string in web.config from the front end.developer can enter the connection string initial catalog=database name;uid=sa;pwd=;server=system11 or what ever it is .
and my application is working fine but now i want my crystal report connection string also use this connection string .
please help me.
|
|
|
|
|
OK, I'm not sure what your reply means. Your users will all be developers ? If they enter a custom connection string, how do you hope to store all those in your web.config ? A cookie or a database seem more likely candidates to me. Why would users of your site use different connection strings ? Are you sure you understand the division between client and server ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Sometimes I get confuse when creating custom web control that what should I use. I mean should I create properties like this :
public string Text
{
get
{
String s = (String)ViewState["Text"];
return ((s == null) ? String.Empty : s);
}
set
{
ViewState["Text"] = value;
}
}
or like this
string text = "";
public string Text
{
get
{
return text;
}
set
{
text = value;
}
}
I know ViewState saves in client-side but the second way also works...I'm just wondering what is the difference b/w 'em ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
If you don't store in viewstate, the value will only exist for a single postback. It's reset on every page lifecycle.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I designed a online registration form with some text box and dropdown box and i used two button.
i want to get the message from the text box and dropdown when the user click the button1 the data should send to a particular email adders.
In this i dont know how to get the message and email that message to a particular ID when the user click the submit button can you please help me
|
|
|
|
|
|
may i know where we have to put from id and where we have put to id in .cs file
|
|
|
|
|
I didn't get your point . can you be little bit more specific ?
|
|
|
|
|
Thanks to reply
where i have to put email id in that code
i host that demo file in my server but its say mail not send
so only i ask where i have to put to address (email id) in that code
public partial class _Default : System.Web.UI.Page
{
#region "Send email"
protected void btnSendmail_Click(object sender, EventArgs e)
{
SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();
try
{
MailAddress fromAddress = new MailAddress(txtEmail.Text, txtName.Text);
smtpClient.Host = "localhost";
smtpClient.Port = 25;
message.From = fromAddress;
message.To.Add("admin1@yoursite.com");
message.Subject = "Feedback";
message.CC.Add("admin1@yoursite.com");
message.CC.Add("admin2@yoursite.com");
message.Bcc.Add(new MailAddress("admin3@yoursite.com"));
message.Bcc.Add(new MailAddress("admin4@yoursite.com"));
message.IsBodyHtml = false;
message.Body = txtMessage.Text;
smtpClient.Send(message);
lblStatus.Text = "Email successfully sent.";
}
catch (Exception ex)
{
lblStatus.Text = "Send Email Failed.<br>" + ex.Message;
}
}
#endregion
#region "Reset"
protected void btnReset_Click(object sender, EventArgs e)
{
txtName.Text = "";
txtMessage.Text = "";
txtEmail.Text = "";
}
#endregion
}
in this where i have to give my email id
when i upload this code i have to change any to execute
|
|
|
|
|
As you are sending mail while user register with site, you should have to talk the Email ID as input. And this id should be TO id for your email sending function. You should have to configure SMTP Server before that !!
|
|
|
|
|
the smtp is already configured. i have the id.
|
|
|
|
|
kn.nageshwaran wrote: the smtp is already configured. i have the id.
Then what is the problem ?
|
|
|
|
|
i ask where i have to put that id in that code
can you please refer any tutorials to study asp.net form basic
|
|
|
|
|
|
If you've set smtp in web.config then you won't need to set while creating SMTPClient. However if you want to set while sending email or any different email setting then you can pass UserName and Password when creating SMTPClient.
eg
SMTPClient client = SMTPClient("UserName", "Password");
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
hello everyone -
I want to know how I can use my variable from the backend code in the designer code for a page. I have a url, and I want to attach a variable to it, something like this:
|
|
|
|
|
You mean you want to add a variable or a script. ??
If you want a variable.. you need to write using <% %> tag.
Just like :
<%= this.MyText %> (provided MyText is a class level variable with atleast protected access specifier is applied).
On the other hand if this is a script, in Page_Load use
string scriptelement = "if (document.all||window....";
if(!this.ClientScript.IsClientScriptBlockRegistered("myscript"))
this.ClientScript.RegisterStartupScript(this.GetType(), "myscript", scriptelement, true);
|
|
|
|