|
Hi
I want to know how to import connects form gmail, yahoo in our website, so I am looking for code
for this purpose.
Regrards
Azad Yadav
|
|
|
|
|
azad yadav wrote: I want to know how to import connects form gmail, yahoo
You need to contact them and ask about the APIs they provide.
|
|
|
|
|
I have a dynamic modal popup extender and I am only using a single panel for popup on each modal extender, is it possible?
yours truly,
hyperalergelo
|
|
|
|
|
Hi,I want to access a session variable of one application from another web application.How can I achieve that?
ARINDAM
|
|
|
|
|
you can't, not without some sort of intermediary, like a service on the server that hosts them both, to store/pass the value. Of course, your next problem is, which session on app a, is related to the session I am accessing in app b, I assume there's a username the two apps have in common or similar that you can use for this.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi, please tell me the advantage of it
|
|
|
|
|
So that it is in sych ( aka what the hell are you talking about, and what does it have to do with ASP.NET )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i have form in whixh there is update button to update the data from grid.
when i click on update button its give an error as followes:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'PrjDailUpdatesExtElt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'PrjDailUpdatesExtElt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at DailyUpdatesExtEleSchedule.Form1.btnUpdate_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|
|
|
|
|
It seems that your are accessing the file PrjDailUpdatesExtElt in the button click event handler...Make sure that the file actually exists..Also see FileModes if you are writing to the file...
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
i think erro is is in wwb config file.
but i am not geeting it..
|
|
|
|
|
Hi,
I am working with asp.net page.I have a drop down list which displays values(like 1,2,3,4....).Now what i want is based on these values we must generate a textbox.
E.g: Dropdown list value = 1 1 Textbox must be generated.
value = 2 2 Textboxes must be generated...So on...
I have added a place holder and tried with Events of Dropdown List...
But i am unable to generate any text boxes...Please help
Thanks in Advance
Fast
|
|
|
|
|
First set the AutoPostBack property True for DropDownlist and handle the SelectedIndexChange Event.
void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
int txtCount = int.Parse(DropDownList1.SelectedValue)
for(int i=0;i<;txtcount;i++; )
{
TextBox txtBox = new TextBox()
....
.....
placeHolder.Controls.Add(txtBox)
}
}
Be careful, there is no Undo Button(Ctrl+Z) in life.
|
|
|
|
|
That approach will generate the texboxes, but since it is created after viewstate events, ASP.NET will not maintain viewstate for it. Thus the values entered in the texboxes will not be persisted across postback.
|
|
|
|
|
Thanks for correcting my mistake.... I haven't try that way so I wasn't sure just give him a hint.
Be careful, there is no Undo Button(Ctrl+Z) in life.
|
|
|
|
|
You are welcome. Happy to help
|
|
|
|
|
Think textbox doesnt use viewstate for maintaining the text across postbacks
Even if the viewstate is false,text will be still maintained during postbacks
Correct me if i am wrong.
|
|
|
|
|
Sundar_R wrote: Even if the viewstate is false,text will be still maintained during postbacks
You can read This [^] article.
|
|
|
|
|
I suggest you to put the textbox in a template column inside a GridView, and bind the gridview with a datasource which will have necessary rows. If 1 is selected, make a 1 row data source and bind it to the grid. ASP.NET will maintain viewstate for the texboxes along with parent control, GridView.
|
|
|
|
|
That is a good one...but i am also trying to store this data which is entered in textboxes into a database..How can i handle this...
Eg: I am working on registration in Hotel:
I can select values from drop-down list(From 1 to 8) and dynamically creating the text boxes.
I need to enter user information of all the residents.
So,If there are 2 text boxes and user enters information how can i bind and store into database...like the number of people keeps on changing right dynamically.....
My database have name field,address field..
All the members required to enter the names but on same address...
How to store these names into database as they are in random number.
Thanks,
|
|
|
|
|
fasttoshiba wrote: So,If there are 2 text boxes and user enters information how can i bind and store into database...like the number of people keeps on changing right dynamically.....
Loop through the gridview rows, find each texbox and save value to database.
|
|
|
|
|
Hi
I am very new to this, but I would like to know how to pass a value to AccessDataSource as a parameter in order to update a table.
I have a dropdownlist, and I am able to grab the selected item from the dropdownlist, but I am to get the value into the DataSource and to then update the table.
Can someone explain to me or show me how.
Thanks
|
|
|
|
|
you can use : (If you have set NONE to parameter field while configuring datasource)
Accessdatasource1.UpdateParameters.Add("@parametername","parametervalue");
parameter value can be any value you are retrieveing from dropdownlist or textboz or any variable.
there are other ways too, by sessions or querystring etc
Good luck!
regards,
Sana
$@N@
|
|
|
|
|
Hi
thanks for your reply, but I couldn't get it to work. Below is my code snippet:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
ProviderName="<%$ ConnectionStrings:NorthwindConnectionString.ProviderName %>"
SelectCommand="SELECT [EmployeeID], [LastName] FROM [Employees]">
</asp:SqlDataSource>
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource1" DataTextField="LastName"
DataValueField="EmployeeID" AutoPostBack="true">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
ProviderName="<%$ ConnectionStrings:NorthwindConnectionString.ProviderName %>"
UpdateCommand="UPDATE [Employees] SET [NotActive]=@NotActive WHERE [EmployeeID]=@EmployeeID">
<UpdateParameters>
<asp:Parameter Name="NotActive" DefaultValue="YES" Type="String" />
<asp:ControlParameter ControlID="DropDownList1" Name="EmployeeID" PropertyName="SelectedValue" />
</UpdateParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource3" Visible="true">
<Columns>
<asp:BoundField DataField="LastName" HeaderText="LastName"
SortExpression="LastName" />
<asp:BoundField DataField="Active" HeaderText="Active"
SortExpression="Active" />
<asp:BoundField DataField="NotActive" HeaderText="NotActive"
SortExpression="NotActive" />
</Columns>
</asp:GridView>
I have been experimenting by using a parameter tag in order to hold a default value which when the Update query is run the default is passed to the query. Unfortunately, when I check the table it hasn't updated.
What do I need to do fix the problem?
Thanks
|
|
|
|
|
ok fine.. well in my last reply there was a mistake there should be no "@" with parameter name.
well u do...
on the UPDATE button or DropDownList_SelectedValueChanged event place the following lines!
SqlDataSource3.UpdateParameters.Add("NotActive","Yes");
SqlDataSource3.UpdareParameters.Add("EmployeeID",DropDownList1.SelectedValue);
I am passing paramters to my datasource in the above way and its working.
Set the placement of these lines as per ur code.
Hope its work!
Good Luck
$@N@
|
|
|
|
|
Sorry, I don't what's a matter with me on something that should be a breeze in the park, but I can't this work. I am not getting any error message, but no value is being passed.
So, I started again and tried to keep it simple. I have one dropdownlist and one button. Below is the markup followed by the VB Code behind:
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="AccessDataSource1" DataTextField="LastName"
DataValueField="LastName">
</asp:DropDownList>
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/Northwind.mdb" SelectCommand="SELECT [LastName] FROM [Employees]">
</asp:AccessDataSource>
<asp:AccessDataSource ID="AccessDataSource2" runat="server"
DataFile="~/Northwind.mdb"
UpdateCommand="UPDATE [Employees] SET [NotActive] = ? WHERE [EmployeeID] = @[EmployeeID]">
</asp:AccessDataSource>
<asp:Button ID="Button1" runat="server" Text="Click Me" />
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
AccessDataSource2.UpdateParameters.Add("NotActive", "YES")
AccessDataSource2.UpdateParameters.Add("EmployeeID", DropDownList1.SelectedValue)
End Sub
Can you please look through, correct and point out to me where I am going wrong!
Thanks
|
|
|
|