|
|
Thanks for the answer.
Well As far as I understand it should not be problem as long as the controls to be updated should be placed within Ajax-update panel. I checked them all necessary controls to be refreshed are placed in the update panel. But whole page is refreshed anyway.
.Net makes me feel that I am idiot. Each step brings another problem on the table. Did I really learn that I doubt now.
|
|
|
|
|
Ersan Ercek wrote: But whole page is refreshed anyway.
You are using Visual Studio 2005 or 2008 ? if 2005 then what kind of Web Site you are selecting Normal or Ajax Enabled web Site ?
|
|
|
|
|
|
hi all,
i don't know whether this is right forum or not...
i just want to know when the .net3.5 (WCF,WPF,..), ajax are released.. release dates
thanks alot in advance
|
|
|
|
|
suni_dotnet wrote: i just want to know when the .net3.5 (WCF,WPF,..), ajax are released.. release dates
Please Check Here[^]
And Check this
Check Here[^]
|
|
|
|
|
I've got web app that should create files and folders in its ~/somefolder at the root. While debugging in VS it works fine but when I linked the application with IIS 7.0 I've got Exceptions at the attempts to create a file or folder due to access rights.
Чесноков
|
|
|
|
|
I think you need to provide ASP.NET account write access on that path.
|
|
|
|
|
I have two tables both containing 3 columns each. In first table there were 3 columns(c1,c2,c3) and in second table there were 3 columns(b1, b2, b3). Now i have to display in gridview. But i want display only 2 columns i.e., c1 from first table and b2 from second column. How can i do that?
|
|
|
|
|
It should be simple, one possible solution could be write some wrapper class with two fields having compatible types to corrosponding database columns. For example
public class MyWraper
{
private string _column1
public string Column1
{
get{return _column1;}
set{_column1 = value}
}
private string _column2
public string Column2
{
get{return _column2;}
set{_column2 = value}
}
}
Now write some query that return data from both tables. Now depending upon those columns returned by query create for each record create a new wrapper object, populate its data from respective column values and finally add it some list. Now finally bind your grid to that list.
List<MyWraper> myList = new List<MyWraper>;
while(dataReader.Read())
{
MyWraper w = new MyWraper();
w.Column1 = dataReader["C1"].ToString();
w.Column2 = dataReader["C2"].ToString();
myList.Add(w);
}
gridView1.DataSource = myList;
gridView1.DataBind();
|
|
|
|
|
I am tried this. But i am not able to use the list it is giving error. Please help me. Which is the namespace i have to add so that i can use list.
|
|
|
|
|
hello every one
I work a special site for Real Estate
It is the services provided the service of the search for real estate and certain specifications such as the type of property to be either Villa or apartment number of floors neighborhood ....
So I need a search within the databases
How do I write a research and search data entered by the user who used a graphical user interface containing the by dropdwonlist and check box
plz help me
|
|
|
|
|
First of all create your UI and place desired control for example dropdown for selecting property type etc. In order to implement search function you would need to build query on runtime depending upon values selected by user. For example let say there is a table having 4 columns id,name,gender,age and you need to build some page where user can filter users upon age and gender.
Suppose you placed a dropdown box with two values Male,Female and a text box to enter the age, a button with caption filter to trigger filter and finally a grid view for showing filtered data. Now write a function that takes two parameters gender and age and returns matched customer records for example
public DataTable FilterUsers(string gender,int age)
{
string selectQuery = "SELECT * FROM c_Users WHERE Gender ='{0}' AND Age={1} ";
selectQuery = string.Format(selectQuery,gender,age);
//Code here to execute query
//finally return the returned data table with resutls
}
|
|
|
|
|
Hi all,
I want to Store All Textbox id's of Current Page into an Array..
Let me know this..
|
|
|
|
|
Why are you doing that?whats your requirement?
|
|
|
|
|
It is a part of my Project Requirement..
My TL Want's me to do this.
|
|
|
|
|
Loop for each control and collect IDs of TextBox control type.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
ok .you can iterate through this.Controls and then check if its typeof(TextBox) and do as per requirements.
|
|
|
|
|
Pawan Kiran wrote: It is a part of my Project Requirement..
Its quite understandable the its your requirement. But, what you are going to do with storing the Textbox ID ? Are they dynamic or Static ?
|
|
|
|
|
Pawan Kiran wrote: My TL Want's me to do this.
I did not think dirty, I swear!
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
I am making a web form in asp.net?/c#;
I want to know how to know the co ordinates; the x, y coordinates ( in pixels) of a control and also if possible what is the length and breadth( in pixels) of my form.
thanks
|
|
|
|
|
The x,y coordinates of a control are up to you, you can place an element anywhere you'd like.
Browser window size[^]
And, honestly, you could have answered these questions yourself with very little research.
only two letters away from being an asset
|
|
|
|
|
hi i have a link button...,
the link button have 2 modalpopupextender...,
based on the session value i like to view a modalpopupextender...,
but its showing two modal popup extender at a time...,
how to solve this...,
this is my piece code:
<asp:linkbutton id="LinkButton2" runat="server" onclick="LinkButton2_Click">Post Comment
<cc1:modalpopupextender id="ModalPopupExtender1" runat="server" targetcontrolid="LinkButton2"
="" popupcontrolid="divPopUp1" backgroundcssclass="popUpStyle" popupdraghandlecontrolid="panelDragHandle1" dropshadow="false">
<cc1:modalpopupextender id="ModalPopupExtender2" runat="server" targetcontrolid="LinkButton2"
="" popupcontrolid="divPopUp2" backgroundcssclass="popUpStyle" popupdraghandlecontrolid="panelDragHandle2" dropshadow="false">
code bolck:
protected void LinkButton2_Click(object sender, EventArgs e)
{
if (Session["uname"] == null)
{
ModalPopupExtender1.Show();
}
else
{
ModalPopupExtender2.Show();
}
}
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Member 3879881 wrote: protected void LinkButton2_Click(object sender, EventArgs e)
{
if (Session["uname"] == null)
{
ModalPopupExtender1.Show();
}
else
{
ModalPopupExtender2.Show();
}
}
Try To Hide other POPUP Extender alternately.
void LinkButton2_Click(object sender, EventArgs e)
{
if (Session["uname"] == null)
{
ModalPopupExtender1.Show();
ModalPopupExtender2.Hide();
}
else
{
ModalPopupExtender2.Show();
ModalPopupExtender1.Hide();
}
Any Problem with this?
Sundeep Ganiga
When the only tool you have is a hammer, everything looks like a nail.
Come Forth Yourself to Click "Good Answer" for any expected solution.
Let us Support our C Project Programmers who provide solutions here.
|
|
|
|
|
What I have done in the past is to use a dummy control as the TargetControlID and then set the display property of that control to 'None'. The problem you're having is that LinkButton2 activates both ModalPopupExtenders on the client, whereas what you really want to do is show one of them from the server. Placing a hidden dummy control on your form will mean that the ModalPopupExtenders never get activated from the client.
|
|
|
|