|
Where did you written this code ?
cheers,
Abhijit
|
|
|
|
|
hi
page 3 at which i want to show the images .
at page_load event.
|
|
|
|
|
Hi,
I'm creating a project in ASP.NET 2.0 using the controls GridView, FormView, and SqlDataSource. Everything is working as expected, but if the grid is empty FormView is not displayed. I've used separate SqlDataSource for GridView and formView. FormView is populated based on the row clicked in the Grid.
Initially grid would be empty, and New, Edit, Delete options of the FormView is not displayed coz formview itself is not displayed, coz grid has no data to display initially.
Is it possible to display the formview even if Grid is empty?
Regards,
Blumen
|
|
|
|
|
You can show a default message in the gridview saying that no rows are displayed.
You could count the number of rows displayed in gridview and if its less then 1 then just set formview visible to true, think that might work.
|
|
|
|
|
I tried that already, changing Visible to True doesn't display the FormView.
|
|
|
|
|
check this article out:
http://www.codeproject.com/KB/aspnet/GridViewFormView.aspx
|
|
|
|
|
Hi All,
If we put our web app in our extranet(DMZ) is it possible to add external users to our companies AD? So if someone is given the address from outside they could access our web app. What sort of login would be needed if any?
DNM
|
|
|
|
|
We thought about creating a DMZ because we use citrix server and our app was hosted on there, so people would have to have access to our citrix to access it.
A DMZ is a good solution because it can act as a link between your network and a web server I think and therefore you can host your web app on a webserver.
Hope that makes sense
|
|
|
|
|
hi every one
i am using to show the image at page 3 database .to show image i am using execute reader() method .but i want to read only one row 1st row .i am using this code:
OleDbConnection con1 = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=c:/image.mdb;");
OleDbCommand cmd1 = new OleDbCommand("select * from picture2");
cmd1.Connection = con1;
con1.Open();
OleDbDataReader dr1 = cmd1.ExecuteReader();
while (dr1.Read())
{
Image3.ImageUrl = dr1[0].ToString();
Image4.ImageUrl = dr1[1].ToString();
Image5.ImageUrl = dr1[2].ToString();
Image6.ImageUrl = dr1[3].ToString();
}
con1.Close();
but this is not working properly .
plz tell me
thanks...gaurav
|
|
|
|
|
what is not working properly?
did you do a debug?
Did you try to check the dr1.HasRows for true before using the While
If it is only 1 row of data you receive you should you if (dr.Read()). Only then you read the first row.
What type of object is .ImageUrl? Is it a String?
|
|
|
|
|
iam using update progresss control. iam having the controls contentplaceholder and literal control.
whenever my page load i put
system.threading.thread.sleep(10000).
but its not showing LOADING message . update progress control is not working.
how to resolve?
|
|
|
|
|
I thought that the loading message only works if the page takes a while to load.
Is your page loading quickly?
|
|
|
|
|
in page load , i put sleep to 30 seconds.that time also not showing update progress control message.
|
|
|
|
|
Can you post all of your code please?
|
|
|
|
|
]]>
]]>
]]>
<asp:content id="Content1" contentplaceholderid="cphmain" runat="Server" xmlns:asp="#unknown">
<asp:scriptmanager id="ScriptManager1" runat="server" enablepartialrendering="true">
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="UpdatePanel1">
<progresstemplate> Processing........
<asp:literal id="ltrAudioPlayer" runat="server"> |
<asp:literal id="ltrPageContent" runat="server">
|
IN THE PAGE LOAD I PUT THREAD.SLEEP(10000).NOT WORKING.
|
|
|
|
|
|
Hi,
I want to call a JScript File method. Is there any way through which I can call it using "Page.RegisterClientScriptBlock Method". The method residing in JScript.js file.
Please give me a solution.
d'kng
|
|
|
|
|
Yes, you should be able to do so.
Just pass the entire script in this method itself.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi friends,
I have learnt to use mock objects with hot coded value and have written test cases to check them and they are working fine. But i am in need to use these mock objects to use the Db Structure and retrive values.So will there to be need to create a new test DB in my test case and use it. Iam not clear of what to do please explain me in detail.
Thanks in Advance,
Praveen
|
|
|
|
|
Good Morning Everybody,
i done one web project using ms visual studio 2005. in this project i am uing crystal report with ODBC Connection & crystalreportviewer.
when i run the the report it's working fine.
i want to use sub report,so i insert sub report & give the link to this report. the subreport are working fine, but taking long time to load the report minimun 5 to 7 min. if i click print or next page the same time taking again & again.
i want to reduce the loding time.
Any one can help me.
Thank you,
Azfar.
|
|
|
|
|
How many pages is the report?
It could be you are generating a report which contains a lot of data and takes time querying the database
|
|
|
|
|
hi every one
i am using fileupload control in usercontrol ant set the property for fileupload control .by this way;
public string pic
{
get
{
return cchildpic.FileName;
}
}
now i am taking usercontrol at page 2 .and user submit the picture by using fileupload control which is in usercontrol .
now
if (Convert.ToInt32(Session["child"]) <= 4)
{
Session["b"] = ctcchild1.nameofthedauson;
Session["c"] = ctcchild1.dateofissue;
Session["h"] = ctcchild1.placeofissue;
Session["d"] = ctcchild1.dateofexpiry;
Session["e"] = ctcchild1.dateofbirth;
Session["f"] = ctcchild1.seat;
Session["g"] = ctcchild1.meal;
str3 = "C:/uploads/" + ctcchild1.pic;
}
and i am using this condition at page 2 .but when i am submitting the file name in database at the same page .
con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=c:/image.mdb;");
string ss1 = "INSERT INTO picture1 VALUES('" + str3 + "')";
com = new OleDbCommand(ss1);
com.Connection = con;
con.Open();
com.ExecuteNonQuery();
con.Close();
one blank submit in a row and in naxt line the the correct path store .why this blank submit in data base .
if any one have idea .what is going on.
i am also confuse about these points :
am i using correct property for filecontrol
thanks .....
gaurav
|
|
|
|
|
Hi guys
I have an issue regrading displaying chinese character in text box. I face the problem before using the datagrid. However once i set the HtmlEncoder = false in the column property, the chinese character can be show . Now Textbox doesn't have the property of HtmlEncoder to set to false
So how am i going to resolve this issue
Please advise
Thanks
KaKaShi HaTaKe
|
|
|
|
|
Hello everyone,
I am facing this problem lately, I will explain. I have this asp.net 2.0 application which needs to access data from the WindowsPrincipal user over an intranet. This is usually as easy as Dim name as string = HttpContext.Current.User.Name . Thing is, in the environment where the application is working, all computers have had the "Enable Windows Integrated Authentication" disabled.
So my question is, is there any way that I can access Windows/Active Directory user information without using Windows Integrated Authenticaton?
Thank you !
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
|
|
|
|
|
Hello everybody
I have created a Web application to show report in crystal report viewer.
I deployed it on server. when I click on export button in crystalreport viewer then it exports to excel successfully. But when I Export to excel on server it comes out from application.
What's wrong .
Can anybody help me ? Pls
Thanks and regards
Raghav
Raghvendra Kumar Roy
|
|
|
|