User Profile
Collapse
-
qwedster replied to Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pagesin ASP .NETThanks for the reply -
qwedster started a topic Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pagesin ASP .NETImplementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pages
Hi Experts!
Apropos MSDN link:
http://msdn.microsoft.com/en-us/library/ms178208.aspx
[.NET Framework 4 - ASP.NET]
Implementing Client Callbacks Programmaticall y Without Postbacks in ASP.NET Web Pages
Using the code from the above link in the following code snippet, if you keep a break point on the statement "if (IsPostBack)" in the Page_Load event. The control moves into the "if (IsPostBack)"...Last edited by Frinavale; May 6 '10, 01:29 PM. Reason: Please post code in [doe] ... [/code] tags. Added code tags. -
Creating User Defined Function (T-SQL) programmatically into database
Hola!
In the following code snippet, I am creating User Defined Function (T-SQL) programmaticall y into database from C# Code:
BTW, this code originally I wrote for creating StoredProcedure programmaticall y, which worked fine. Now, I am trying to create User Defined Function programmaticall y (by just replacing "StoredProcedur e" class with "UserDefinedFun ction" class).
The User Defined...Last edited by tlhintoq; Jan 25 '10, 06:20 PM. Reason: [CODE] ...Your code goes between code tags [/CODE] -
Passport Authentication .NET 3.5?
Guys!
What happened to Passport Authentication .NET Framework 3.5? Then MSDN for .NET Framework 3.5,
http://msdn.microsoft. com/en-us/library/eeyk640h.aspx
describes only about,
Windows Authentication Provider
Forms Authentication Provider
whereas MSDN for .NET Framework 3.0,
http://msdn.microsoft. com/en-us/library/eeyk640h(VS.85) .aspx
describes only about,
Windows... -
I want to use object in Global.asax:
Code:<object runat="server" scope="application" ID="MyInfo" PROGID="MSWC.MYINFO"> </object>
If I use this code, the I get Parser Error Message: Cannot load type with ProgID 'MSWC.MYINFO'.
Can you give me the right code for Global.asax and Default.aspx.cs ?Last edited by Frinavale; Dec 14 '09, 02:40 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.Leave a comment:
-
ASP.NET Application State
Hello!
I tried to use Application State as given in MSDN (http://msdn.microsoft.com/en-us/library/ms178594.aspx):
I opened a WebApplicaion (C#) in Visual Studio 2008 and added Global.asax file.
And added the following code (from MSDN) in Global.asax:
Code:<%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" Language="C#" %> <object
Last edited by Frinavale; Dec 14 '09, 02:39 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. -
-
ASP.NET/C# TextBox1_TextChanged like Windows Application
Folks!
I have an ASP.NET WebForm with 2 TextBoxes for user to enter, however I want update the TextBox2 with TextBox1 Text as the user enters in TextBox1 (without submitting back to the page) like a Windows Application. I tried the following code in vain, please help!
Code:protected void TextBox1_TextChanged(object sender, EventArgs e) { TextBox2.Text = TextBox1.Text; }
Last edited by Frinavale; Nov 23 '09, 04:11 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. -
C# Custom Event Handler replicating textBox1_TextChanged event handler
Howdy!
I want to write a Custom Event Handler replicating textBox1_TextCh anged event handler to update textBox2 with textBox1 text as I type. I tried the following in vain. Please help.
The code snippet:
// CustomEventArgs .cs
[code=c#]
using System;
using System.Collecti ons.Generic;
using System.Linq;
using System.Text;
namespace... -
qwedster started a topic C# How to get the next value of identity(1,1) from database table before any insert?in C SharpC# How to get the next value of identity(1,1) from database table before any insert?
Hi!
Every time when I want to add a row, I call this method in the code snippet to get the next identity value.
Code Snippet:
[code=c#]
private int GetNextRowID()
{
int NextRowID =0;
try
{
using (SqlConnection ConnectionSql = new SqlConnection(C onnectionString ))
{
StringBuilder SqlQuery = new StringBuilder() ;
SqlQuery.Append ("USE... -
It doesn't help, because I want to query from C# code
Hi!
It doesn't help, because I want to query from C# code. Every time when I want add a row, I call this method to get the next identity value like:
private int GetNextRowID()
{
int NextRowID =0;
try
{
using (SqlConnection...Leave a comment:
-
SQL Server, how to the next value of identity(1,1) before insert
Folks,
How to the next value of identity(1,1) before insert?
SELECT IDENT_CURRENT(' ExampleTable') + IDENT_INCR('Exa mpleTable');
--does not work when the table is empty!
USE [master]
GO
IF EXISTS (SELECT name FROM sys.databases WHERE name = 'ExampleDatabas e')
DROP DATABASE [ExampleDatabase];
GO
CREATE DATABASE [ExampleDatabase];
GO... -
qwedster started a topic C# How to check if null value exists in database table (using stored procedure)?in C SharpC# How to check if null value exists in database table (using stored procedure)?
Folk!
How to programatticall y check if null value exists in database table (using stored procedure)?
I know it's possble in the Query Analyzer (see last SQL query batch statements)?
But how can I pass null value as parameter to the database stored procedure programatticall y using C#?
Although I can check for empty column (the following code passes string.Empty as parameter but how to pass... -
qwedster replied to How to check if a value (null/non null) exists in database table using stored proin SQL ServerBut how to check if the string is empty?
Hi!
Your answer failed when I called the stored procedure from my C# code as the code actually sends string.Empty or "" as the parameter or when queried using Query Analyzer it'd be like:
DECLARE @ReturnValue INT
EXEC @ReturnValue = CheckForeignKey Fax @Fax = '' -- FAILS
SELECT ReturnValue=@Re turnValue;
GO
Please hel...Leave a comment:
-
-
-
qwedster started a topic How to check if a value (null/non null) exists in database table using stored proin SQL ServerHow to check if a value (null/non null) exists in database table using stored pro
Howdy folks!
I am using stored procedure to see if a value exists in database table and return 0 if exists or else -1, in the following SQL queries.
However how to check if a value (that is null) exists in database table and return 0 if exists or else -1 using stored procedure? Please help.
USE [master]
GO
IF EXISTS (SELECT name FROM sys.databases WHERE name = 'ExampleDatabas e')... -
How to retain ViewState while Page Refresh when using UpdatePanel?
Folks!
The following is a "Hello World" kind of code for ViewState. I just want to know how to retain the ViewState 1) while Page Refresh when using UpdatePanel and also 2) While I reverting back to the page after round trip when using UpdatePanel?
In the following code snippet the ViewState is killed when I click page refresh or when I go some page and revert back
Code Snippet:
Code:// Default.aspx:
Last edited by Frinavale; Oct 27 '09, 01:32 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
No activity results to display
Show More
Leave a comment: