|
and how can i add it in every postback, by the way i have 5 menus and each one loads a different webusercontrol.
Thanks for ur help
yasso
|
|
|
|
|
in the Page_Load event...
<< >>
|
|
|
|
|
I would bulid a switch in your page load, to detect what user is who, and set what visible you need them to see.
|
|
|
|
|
i configured a webserver right in the company to host pages i developed for them.
when i try accessing the site by http://fedexghana.com (short url), i get an error but i can access it by the full url (http://www.fedexghana.com). please, anyone with the solution
i realised that most sites can be access via a short url.
i most thankfull to anyone who help me, for i really need it
leo1
|
|
|
|
|
I think that you have only added the host header name for the subdomain www.fedexghana.com in the web site identification for the site. Also add the host header name for the domain itself: fedexghana.com.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks for your concern. i tried using both www.fedexghana.com and fedexghana.com as host header names(HHN) and both HHN have the same port number but the web site wouldnt run. Pls any more solution
leo1
|
|
|
|
|
i am visual basic 6.0 programer and i want to update my self
so can you tell what is the process to conect database ms access 2003 with web page
usign ASP.Net 2003
if possible then please give me login example in ASP.net 2003
Thanks
Rikin Pandya
|
|
|
|
|
|
i need asp.net code for C# not for vb.net
can you tell me vb.net is used for creating a web site ?
Thanks for give me code because it will usefull for my another project
Thanks again
Rikin Pandya
|
|
|
|
|
|
I use a data connection web.config file stores path to access database.
private string strConnection =ConfigurationSettings.AppSettings["MYDATACon"];
Then in my pages I string my connections settings.
And here is an example of a page loading a data grid using sql statements.
private void LoadGrid()<br />
{<br />
GetHelpDeskTIR();<br />
strSQL="Select RecNumber, TIR,WorkOrder,ShadowStartDate,ShadowStartTime,ShadowEndTime,MethodInvoke from Test_Incident_Report where HelpDesk ='Yes' "+strCondition;<br />
int count=0;<br />
bool bIsError=false;<br />
con = new OleDbConnection(strConnection);<br />
<br />
ds = new DataSet();<br />
<br />
try<br />
{<br />
OleDbDataAdapter da = new OleDbDataAdapter(strSQL,con);<br />
count=da.Fill(ds);<br />
}<br />
catch(Exception err)<br />
{<br />
bIsError=true;<br />
}<br />
finally<br />
{<br />
con.Close();<br />
}<br />
if(!bIsError)<br />
{<br />
if(count!=0)<br />
{<br />
DataGrid1.DataSource=ds;<br />
DataGrid1.DataBind();<br />
}<br />
else<br />
SendUserAMessage("There are no HelpDesk records to validate at this time.");<br />
}<br />
}
|
|
|
|
|
Are you getting any error? is this not working?
|
|
|
|
|
No, works just fine for me, was offering some code examples like the guy asked for.
|
|
|
|
|
I am sorry. Since it was reply to my post, I thought it was RikinPandya asking for suggestion.
|
|
|
|
|
VB.NET Visual basic is nothing but a language like C# you can use it similar to C#.
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Hi,
I have a master page and content page. In content page I have to validate the text boxes for
name,address, phone number and email address etc. But as content pages doersn't have html section not head or body section so, where I use this java script in content page to validate the form.
Thanks
seema
|
|
|
|
|
If it is something used by several pages you might want to put it in the master page. Since in your case it is specific to your content page you can just put the script tag right after the content tag. so something like:
<asp:Content ID="Content1" ContentPlaceHolderID="YourContent" Runat="Server">
<script type="text/javascript" language="javascript">
<!--
function TextBox
{
...
Hope that helps.
Ben
|
|
|
|
|
You could try the following. Put your javasscript in a .js file.
<br />
<br />
public void AddJavascript(string javascriptUrl)<br />
{
HtmlGenericControl script = new HtmlGenericControl("script");<br />
script.Attributes.Add("type", "text/javascript");<br />
script.Attributes.Add("src", ResolveUrl(javascriptUrl));<br />
this.Master.Page.Header.Controls.Add(script);<br />
<br />
}<br />
<br />
AddJavascript("~/Scripts/Default.js");<br />
<br />
The above is used to put the code in the master file, but you don't have to.
|
|
|
|
|
Another alternative is to use the ASP.NET ClientScriptManager class which provides methods (e.g., RegisterClientScriptBlock) to add javascript either at the top or bottom of a page. The class also provides methods to test whether a chunk of code has already been added.
|
|
|
|
|
Please, anybody, I need to display an image from an access database. Can you show me how? I can't seem to get any of the example I've found to work
|
|
|
|
|
Oh come on guys, do I ask that much? I'm sure you know, it's not hard, it's just that I get a picture that "cannot be displayed" and when I look inside (with mozilla) I see
/�'���
���!�ÿÿÿÿBitmap Image�Paint.Picture�"��'������PBrush����������Õ"�BMöÔ"��
and more stuff just like that. What am I doing wrong?
OleDbCommand command=new OleDbCommand("SELECT imagine FROM produse WHERE produse.cod_produs=10",dbconn);
Byte[] imagedata=(byte[])(command.ExecuteScalar());
Response.ContentType = "image/bmp";
Response.BinaryWrite(imagedata);
|
|
|
|
|
nc3b wrote: Oh come on guys, do I ask that much?
A bit patience perhaps? If you want 24/7 support with immediate response, you have to pay for it...
nc3b wrote: Response.ContentType = "image/bmp";
Response.BinaryWrite(imagedata);
Is it a bmp file that you have stored in the field?
---
single minded; short sighted; long gone;
|
|
|
|
|
|
Make sure that there is no markup in the page that gets sent along with the image data, only the @Page tag.
---
single minded; short sighted; long gone;
|
|
|
|
|
There isn't, and more, I say response.Clear(); before BinaryWrite()
|
|
|
|